Skip to content

Azurearm ​

Parity grade: B · SDK hashicorp/terraform-provider-azurerm@v4.81.0 · last audited 2026-09-12 (f973f0c90)

Category: Other · View PARITY.md on GitHub · All Services

Parity & Coverage ​

MetricValue
PARITY entries audited21 (15 ok, 3 partial, 3 gap)
Feature families28 (28 ok)
Known gaps34
Deferred items3
Resource leaksclean

Known Gaps ​

  • Microsoft.Search: network security perimeter configurations are not modelled (Microsoft.Network networkSecurityPerimeters is not a modelled type, so a perimeter cannot be created to associate a service with).
  • Flexible servers: not routed (generic store or 404): migrations (MySQL cutoverMigration), maintenances (platform-scheduled, nothing in the emulator creates one), logFiles (the engine exposes no log files), backupAndExport (no storage export target), resetGtid (no GTID state), private endpoint connections and PostgreSQL advanced threat protection (the specification has it, armpostgresqlflexibleservers v2.1.1 has no client). Entra administrators (PostgreSQL administrators/{objectId}, MySQL administrators/ActiveDirectory) and the MySQL forced failover are modelled, but the objectId is not resolved against services/azuregraph.
  • Flexible servers: max_connections defaults follow the documented per-SKU tables for both engines, but the docker engine is not started with that value (a parameter you set, or reset, is applied); the PostgreSQL max_connections range, every other parameter default/range/allowed value, and the MySQL storage IOPS formula (360 minimum, 3 per GiB) are not taken from a published table; azure.extensions (PostgreSQL) and require_secure_transport (MySQL) are stored but not pushed to the engine.
  • Flexible servers: firewall rules (including the 0.0.0.0 allow-Azure-services rule) and publicNetworkAccess are stored and validated but not enforced: clients connect straight to the container port published on loopback (gopherstackEndpoint) and no connection relay exists in the emulator (the dashboard proxy forwards ARM requests only), so a rule has nothing to be checked in; engines are not relaunched after a gopherstack restart or snapshot restore; the automatic restart of a stopped server (7 days for PostgreSQL, 30 days for MySQL per the Learn how-to pages), maintenance windows, HA failover of the data plane, data encryption and Entra authentication are stored but not acted on.
  • AKS: machines (node pools are metadata, so a machine's resource id, IP addresses and name would be fabricated), private endpoint connections (a private endpoint cannot target a managed cluster because the private FQDN and DNS record layout of the API server is not published), managedNamespaces, identityBindings and rotateServiceAccountSigningKeys are not modelled (the generic store keeps what is PUT); node pool snapshots (Microsoft.ContainerService/snapshots) are modelled and a node pool or cluster profile can be created from one, but managedClusterSnapshots have no client in armcontainerservice v9.7.0 and stay in the generic store.
  • AKS: node pools are metadata; no VMs back them and the k3s engine runs one server node regardless of pool counts.
  • Container Apps: subPath mounts, NfsAzureFile volumes, additional TCP ports, exposedPort/TCP transport routing, session affinity (the replica pool in pkgs/gcpscale has no way to ask for a given replica), startup probes and tcpSocket probes are stored but not run or enforced (liveness and readiness httpGet probes run in the Container Instances engine) (the replicas run in the Container Instances engine and ingress is served on the ARM listener, so these are buildable); init containers run before the app containers and ingress ipSecurityRestrictions and corsPolicy are enforced; custom domains, the Dapr runtime and managed-identity registry pulls are stored but need DNS, a Dapr sidecar and an identity token endpoint the emulator does not have.
  • Container Apps: only the azure-servicebus and azure-queue (and azureQueue) KEDA scalers read in-process queues; cpu, memory, eventhubs, kafka, redis and other custom scalers are stored but never scale replicas (services/azureeventhubs and services/azureredis exist but are not read by the scaler). Scale-in relies on the pool idle timer (cooldownPeriod) rather than the 300 s scale-down stabilisation window.
  • Container Apps: getAuthtoken, listCustomHostNameAnalysis (its customDomainVerificationTest needs a real DNS lookup of the hostname) and diagnostics are not modelled (the generic store keeps what is PUT); authConfigs, sourcecontrols (no GitHub workflow is written), sessionPools (no sessions run), daprComponents, certificates and javaComponents are modelled but components, sessions and authentication run nothing, and the Key Vault certificate source is stored without being fetched.
  • Container Instances: the profile revision deregister action named in the Learn permissions list has no route in the 2025-09-01 spec read, so it is not modelled, and standby pools are not modelled (properties.standbyPoolProfile is rejected as an unknown property).
  • Network: VPN gateways, local network gateways, connections and ExpressRoute circuits with peerings and authorizations are modelled as control-plane resources (no tunnel or circuit state beyond Unknown/NotProvisioned); ExpressRoute ports, links, cross-connections, gateway connections of virtual WAN, VPN sites, point-to-site configuration and every other Microsoft.Network type not listed as modelled stay in the generic metadata-only store (Network Watcher children other than flow logs, such as packet captures and connection monitors, included). DDoS protection plans, private link services, route filters and rules, service endpoint policies and definitions, network watchers with flow logs and virtual network taps are modelled but no protection, mirroring, flow capture or private link traffic runs; the query/set flow log status operations are not modelled; private link service visibility is not enforced on private endpoint creation.
  • Application gateways: not modelled - backendSettingsCollection/listeners/routingRules (TCP/TLS proxy), loadDistributionPolicies, entraJWTValidationConfigs, privateLinkConfigurations and privateEndpointConnections (refused with 400), backendHealthOnDemand, available WAF rule sets/SSL options/server variables listings, per-child GET (the armnetwork clients expose none), subnet size sizing (a /24 is recommended, not enforced), NSG and route table requirements of the gateway subnet, Key Vault certificate fetch (keyVaultSecretId is stored, not resolved), user-assigned identity existence, and traffic: no listener serves requests, so request routing, WAF rules, rewrites and redirects are never executed. backendhealth probes only loopback IP backends.
  • Azure Firewalls: not modelled - AZFW_Hub / virtualHub firewalls (refused with 400), hubIPAddresses, the read-only ipGroups changeNumber list, packet capture, learned prefixes, DNAT/network/application traffic enforcement, threat intel allowlists enforcement, SNAT private ranges, DNS proxy, Premium TLS inspection/IDPS signatures/overrides, firewall policy drafts and deployments, the FQDN tags listing, the same-resource-group rule for firewall and virtual network, the Basic policy/firewall rule limits, and the maximum counts of rules, IP groups per firewall and addresses per IP group.
  • Network: load balancing is control plane only (no traffic distribution, probe execution, SNAT or health state); Basic SKU availability set / same-virtual-network membership rules, Gateway SKU tunnel interfaces and chaining, cross-region (Global tier) backend rules, frontend zones against public IP zones, NAT gateway zone and StandardV2 SKU (rejected), NAT gateway versus Basic public IP or Basic load balancer conflicts, IPv6 load balancer frontends and the privateEndpointNetworkPolicies NSG/UDR behaviour are not modelled or enforced.
  • Network: private endpoints ignore cross-subscription authorization (a target in another subscription yields Pending), support static addresses only through ipConfigurations with groupId/memberName matching the group id, write A records for every customDnsConfig FQDN into every zone of a zone group without matching the zone name, and omit the Cosmos mongoClusters, Application Gateway and other private-link target types.
  • Network: IPv6 public addresses come from 2001:db8::/32. Subnet addressing with ipamPoolPrefixAllocations and NAT/gateway-subnet rules are not enforced (NICs report the virtualMachine and primary back-references of an attached Compute VM but never hostedWorkloads).
  • Private DNS: overlapping-namespace conflicts and Microsoft.Network/dnszones (public DNS; armdns is not in go.mod) are not implemented.
  • Compute: shared and community galleries stay in the generic metadata-only store; not modelled on placement resources: dedicated host redeploy, hostSizes, capacity reservation sharing across subscriptions and block schedules, disk access private endpoint connections, Key Vault key existence for encryption sets and disk encryption set rotation.
  • Compute: unmanaged (vhd) disks, inline networkInterfaceConfigurations, boot diagnostics (retrieveBootDiagnosticsData needs console blobs no guest writes), maintenance (performMaintenance, since the emulator schedules no platform maintenance), capture (needs unmanaged VHD blobs, which are rejected) and convertToManagedDisks answer 501 NotImplemented or are rejected.
  • Compute: disks accept Empty, FromImage, Copy, CopyStart and Upload; Restore (needs Azure Backup recovery points; Microsoft.RecoveryServices is not modelled), UploadPreparedSecure, CopyFromSanSnapshot and Attach are rejected, beginGetAccess/endGetAccess answer 501 (no disk bytes exist behind an SAS URL; an Upload disk stays ReadyToUpload), and Ultra/Premium v2 IOPS limits, shared disks (maxShares), bursting, encryption sets and zone-versus-VM zone matching are stored but not enforced.
  • Compute: Uniform scale set instances do not get the public IP addresses of publicIPAddressConfiguration (accepted, not realised); autoscale (Microsoft.Insights/autoscalesettings stays in the generic store, and no metric feeds rules); rolling upgrades complete synchronously, so batch sizing, pauseTimeBetweenBatches, health gating and maxSurge are recorded in the policy but not run; the instance-level update changes tags, protectionPolicy, licenseType, userData, diagnosticsProfile and additionalCapabilities, and other changed properties are refused.
  • ManagedIdentity: isolationScope is stored and echoed but never enforced; listAssociatedResources scans Compute, Web, Container Instances, Container Apps and AKS resources only; resource group deletion removes same-named groups of identities in every subscription.
  • API Management: not modelled - gateways (self-hosted), portal, user subscriptions, wikis, issues, tenant settings, backup/restore, soft-delete/restore, custom hostnames, virtual networks, multi-region, private endpoints, v2 tiers (BasicV2, StandardV2) and the Isolated sku; they fall to 404 or are rejected. $top, $skip, count and nextLink paging work on the child lists; $filter is honoured on the APIs, API operations, product API, products, backends, named values (displayName only), tags, authorization servers, OpenID Connect providers, groups, users, subscriptions, loggers and policy fragment lists, and ignored on the other lists (the SDK documents no $filter for them).
  • API Management gateway: policies outside the subset (authentication-managed-identity, policy expressions beyond the documented subset, on-error for built-in pipeline errors such as a missing subscription key or an unmatched operation, rate-limit nested api/operation, forward-request http-version/continue-timeout/buffer-*/fail-on-error-status-code, cors terminate-unmatched-request) are refused at PUT or not honoured; the backend section runs set-header/set-query-parameter/set-backend-service/forward-request in order and a chain with no forward-request answers an empty 200. The cors policy page gives two defaults for terminate-unmatched-request (false in the attribute table, true in the usage notes), so unmatched simple requests proceed without CORS headers. set-header on Connection, Content-Length, Keep-Alive and Transfer-Encoding is accepted but those headers are never forwarded (Learn: they cannot be changed).
  • API Management gateway: HTTP (non-TLS) calls are impossible because the ARM listener is HTTPS, so an API whose protocols exclude https answers 404; the gateway has no client-certificate checks (validate-client-certificate, context.Request.Certificate); failed upstream calls answer 502 where the real gateway answers 500 (unverified); the unknown-host 404 body Resource not found and the 503 body of a service that is still activating are gopherstack wording, not documented.
  • Authorization: with --azure-arm-enforce-rbac, ARM requests under a resource group are evaluated against the bearer token's role assignments (action derived as {namespace}/{type}/{read|write|delete|action}); data planes, subscription-level and management-group requests are not evaluated; there is no deny-assignment API because only Blueprints, managed applications and similar services create deny assignments and none is emulated, so evaluation has no deny source; no PIM/eligibility/schedule, classic administrator or provider-operations API, no management-group scope for locks, and management group scopes are accepted but never checked to exist; managed-identity token endpoints do not exist, so a system-assigned identity cannot obtain a token to be evaluated.
  • Authorization: ScopeLocked enforcement covers the ARM listener only (not data planes, as documented); it does not model the documented exceptions where services act on locked resources, resource moves, or Microsoft.Authorization extension resources other than the lock itself inheriting a lock (role assignments and policy assignments do inherit it).
  • Authorization: role assignment conditions (ABAC) are stored and validated (conditionVersion 2.0, balanced brackets) but never evaluated, because evaluation needs the request attributes of the data plane that carries the attribute namespaces; delegatedManagedIdentityResourceId is stored; the last-owner deletion guard does not exist; assignableScopes of management groups are not checked to exist; list calls are not paged (no nextLink/$skipToken).
  • Policy: deny, audit, append and modify are evaluated at write time (PUT of a resource group or resource) for rules that read type, name, id, location, kind and tags with parameters(), concat() and field(); rules that read aliases, requestContext() or resourceGroup() are skipped, as are auditIfNotExists, deployIfNotExists and denyAction, so no remediation, policy versions, tokens or allowed-locations deny on aliased types exist; compliance states are recorded per resource and definition and persisted, but there is no Microsoft.PolicyInsights read API because armpolicyinsights is not in the module cache; exemptions are honoured; policyDefinitions is limited to a 13-definition and 1-initiative built-in catalog; initiative parameters are not checked against their member definitions; the Guest Configuration provider does not exist.
  • Authorization: management-group scoped policy assignments have no Terraform fixture (azurerm_management_group needs a tenant-level group API the emulator does not model); azurerm_role_definition, subscription policy assignments and policy set definitions are applied, planned clean and destroyed by TestTerraform_Azure_AuthorizationScoped, and test/terraform/azure/flexible_test.go and apim_test.go cover the Flexible Server and API Management resources named there.
  • Logic: not routed (answer 404 NotFound): workflows move and generateUpgradedDefinition, and every Integration Account and Integration Service Environment API.
  • Logic: only Request, Recurrence, Http polling and HttpWebhook triggers fire. SlidingWindow triggers are stored but never run (the Learn trigger reference has no section on it).
  • Logic expression functions: date formatting and parsing know 19 cultures (en-US, en-GB, fr-FR, es-ES, de-DE, it-IT, pt-BR, pt-PT, nl-NL, sv-SE, da-DK, nb-NO, fi-FI, pl-PL, ja-JP, zh-CN, ko-KR, ru-RU, tr-TR); other locales are rejected.
  • Logic: the Http action authenticates with Basic, Raw, ClientCertificate and ActiveDirectoryOAuth (Secret and Certificate credentials); ManagedServiceIdentity is rejected (the emulator has no managed-identity token endpoint the Logic provider can reuse).

Deferred Items ​

  • M7 initial implementation. No prior audit passes to report.
  • M9 added the Microsoft.ServiceBus RP (ServiceBusNamespaceCRUD/ServiceBusQueueTopicSubscriptionCRUD/ServiceBusAuthorizationRuleListKeys). QC pass over the pre-existing implementation found and fixed two real bugs before any Terraform run (List not filtering by resource group for queues/topics/subscriptions; DeleteResourcesInGroup's cascade delete never matching due to a double-pipe key-prefix bug) -- see AZURE.md section 10.10's M9 entry for full detail.
  • M9's first real-CI run (PR #2466, terraform-tests (6) job on Linux, past the macOS TLS-trust gap) surfaced a third real bug: classifyServiceBusPath had no case for namespaces/{ns}/networkRuleSets/default, which terraform-provider-azurerm's namespace Read calls unconditionally on every namespace regardless of SKU or config -- see ops.ServiceBusNamespaceNetworkRuleSet above and AZURE.md section 10.10's M9 entry for full detail. Checked queue/topic/subscription/authorizationRule Read functions in the same pinned source for the same class of unconditional sub-resource probe; none exists (each Read function only calls its own client.Get).

Audited Operations ​

21 audited operations
OperationWireErrorsStatePersist
MetadataEndpointsokn/an/an/a
OpenIDConfigurationokn/an/an/a
InstanceDiscoveryokn/an/an/a
Tokenokpartialn/an/a
Subscriptionsokokokn/a
Tenantsokn/an/an/a
ProviderRegistrationokokokok
ResourceGroupCRUDokokokok
GenericResourcePlaneokokokok
ListKeysokokokn/a
StorageAccountCRUDokokokpartial
StorageAccountListKeysokokokn/a
ServiceBusNamespaceCRUDokokokgap
ServiceBusQueueTopicSubscriptionCRUDokokokgap
ServiceBusAuthorizationRuleListKeysokokokn/a
EventHubCRUDokokokok
EventGridCRUDokokokok
SearchServiceCRUDokpartialokok
AppConfigurationCRUDokokokok
ServiceBusNamespaceNetworkRuleSetokokokgap
DocumentDBAccountsSQLokokokok

Audited Feature Families ​

Feature FamilyStatus
RedisCacheCRUD—
ContainerAppsCRUD—
LogicWorkflows—
LogicTriggers—
LogicRuns—
LogicEngine—
ContainerServiceCRUD—
FlexibleServerCRUD—
generic_resource_planeok
endpoint_advertisementok
authok
tlsok
ContainerInstanceCRUD—
NetworkCRUD—
NetworkLoadBalancingPrivateLink—
NetworkGatewaysFirewalls—
ComputeCRUD—
ComputeExtensionsImagesGalleries—
ManagedIdentityResolution—
ManagedIdentityCRUD—
APIManagementControlPlane—
APIManagementGateway—
AuthorizationRoleDefinitions—
AuthorizationRoleAssignments—
ManagementLocks—
PolicyDefinitions—
PolicyExemptions—
PolicyAssignments—

Released under the MIT License.