Azure / Azure/terraform-azurerm-avm-res-sql-managedinstance

[AVM Module Issue]: TDE configuration fails because Managed Identity is not assigned before TDE deployment

Open
#101 3 comments 0 reactions 1 assignee Claimed by @chanakanissanka View on GitHub
Language: Terraform :globe_with_meridians: Needs: Triage :mag: Type: Bug :bug:
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.