Azure / Azure/terraform-azurerm-avm-res-sql-managedinstance
[AVM Module Issue]: TDE configuration fails because Managed Identity is not assigned before TDE deployment
- Dominant language
- HCL
- Stars
- 0
- Forks
- 17
- Avg merge
- 1m
- Merged PRs (30d)
- 21
Description
### Check for previous/existing GitHub issues
- [x] I have checked for previous/existing GitHub issues
### Issue Type?
Bug
### (Optional) Module Version
v0.3.1
### (Optional) Correlation Id
_No response_
### Description
When deploying a SQL MI instance, I enable both Managed Identity and Transparent Data Encryption (TDE). However, the module tries to configure TDE before the Managed Identity is assigned to the SQL MI. This creates a dependency issue, causing the deployment to fail with the error below:
│ ----[start]----
│ {"name":"bec80aed-11ba-4114-8fd0-79e37c26b340","status":"Failed","startTime":"2026-07-16T08:24:12.31Z","error":{"code":"AzureKeyVaultNoServerIdentity","message":"The server identity is not correctly configured on server 'sqlmi-instance-name'."}}
│ -----[end]-----
Contributor guide
Assessment
This issue has not been assessed yet.