This release moves the lock, role assignments and diagnostic settings from the AzureRM provider to AzAPI, so the module no longer requires AzureRM. It adds the hashicorp/time provider (~> 0.13). No input changes are needed, and moved blocks adopt existing deployments in place.
Upgrading from 0.5.x
An upgrade from 0.5.1 was tested against real Azure. Nothing was destroyed or replaced, and the environment and its child resources were unchanged.
- Change a
ReadOnlylock toCanNotDelete, or remove it, until the upgrade is applied. - Cross-tenant role assignments, which set
delegated_managed_identity_resource_id, need aterraform state rmand animportblock. See the README. - Run
terraform init -upgrade, thenterraform plan. The environment moves toazapi_resource.thiswithout changes. The lock, role assignments and diagnostic settings are updated in place with the same settings, and child resources such as Dapr components and storages record the newretrysetting in the state only. The plan also adds state-onlyrandom_uuid,time_sleepandterraform_dataresources and, whenenable_telemetryis true, the AVM telemetry deployments. The oldmodtmtelemetry resources are removed from the state. Don't apply a plan that destroys or replaces anything. - Apply the plan. A second plan reports no changes, except that the AVM telemetry deployments update on every plan while
enable_telemetryis true.
See Upgrading from 0.5.x or earlier in the README.
Other changes
- Adds the
resource_types,retryandignore_body_changesinputs, with a slot for each submodule.retryretriesContainerAppEnvironmentDisabledby default, as the environment always did, and now also applies to child resources.timeoutsnow applies to every resource. - Adds
lock.notesandrole_assignments.name, and validatesparent_id. - Role names are matched, ignoring case, against the role definitions that can be assigned in the resource group, and an unknown name fails during plan. For a custom role that can only be assigned on the environment, use its ID.
- Diagnostic settings compare only the configured log and metric categories, so categories enabled outside Terraform are no longer reported as changes.
- Waits 30 seconds after deleting a lock before deleting the environment and its child resources, because Azure keeps enforcing a deleted lock for a few seconds.
- The examples use AzAPI.
Known issue
Dapr components that set secrets fail AzAPI schema validation (#240). 0.5.x is affected too.
What's Changed
Features
- feat: move lock, role assignments and diagnostic settings to AzAPI by @thomascoats in #239
New Contributors
- @thomascoats made their first contribution in #239
Full Changelog: v0.5.1...v0.6.0