-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
Resources that support user assigned identities cannot delete existing identities. From the API perspective, we need to set the value in the identity key:value map to null to delete the identity, but object in SDK is not pointer, we cannot set it to nil to tell the service delete the identity.
Affected resources: azurerm_redis_cache, azurerm_container_registry etc. that support user-assigned identities
Current SDK request:
{
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity": {}
}
}
}Expected Delete Request:
{
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity": null
}
}
}Metadata
Metadata
Assignees
Labels
No labels