Breaking changes
This release moves the module from the AzureRM provider to AzAPI. Existing deployments are adopted in place through moved blocks, and nothing is destroyed or recreated. Read the upgrade steps below before you upgrade.
- Requires Terraform 1.11 or later (was 1.9).
- Replaces the
resource_group_nameinput withparent_id, the resource ID of the resource group. - Manages every resource with AzAPI. The module no longer requires the AzureRM provider, and it now requires the
hashicorp/timeprovider (~> 0.13). - The
security_rulesoutput no longer includestimeouts. - Role names are looked up in the resource group, so a custom role that can only be assigned on the network security group itself must be given by ID.
Upgrading from 0.5.x
-
Replace
resource_group_namewithparent_id:parent_id = "/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>"
-
Run
terraform init -upgrade, thenterraform plan. -
Expect in-place updates, plus new resources that create nothing in Azure:
random_uuidresources that name role assignments, atime_sleepresource when a lock is configured, and telemetry resources whenenable_telemetryis true. Don't apply a plan that destroys or replaces anything. -
Apply the plan. A second plan reports no changes.
A ReadOnly lock and cross-tenant role assignments need extra steps. See Upgrading from a version that used the AzureRM provider in the README.
Other changes
- Adds the
resource_types,retry,ignore_body_changesandlock.notesinputs.timeoutsnow applies to every resource. - Updating the network security group, for example its tags, keeps every security rule, including rules added by other configurations, Azure services or policy.
- Fixes role assignments that set a tenant-level role definition ID (
/providers/Microsoft.Authorization/roleDefinitions/<guid>), which were replaced on every apply. - A role name that doesn't exist now fails during plan.
- Adds the
with_interfacesexample.
What's Changed
Other Changes
- feat!: migrate the network security group module to azapi by @thomascoats in #185
New Contributors
- @thomascoats made their first contribution in #185
Full Changelog: v0.5.2...v0.6.0