Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AVM Module Issue]: Issues when identity set to null #4480

Open
1 task done
teemukom opened this issue Feb 19, 2025 · 2 comments
Open
1 task done

[AVM Module Issue]: Issues when identity set to null #4480

teemukom opened this issue Feb 19, 2025 · 2 comments
Assignees
Labels
Class: Resource Module 📦 This is a resource module Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Type: Bug 🐛 Something isn't working

Comments

@teemukom
Copy link

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Issue Type?

Bug

Module Name

avm/res/data-protection/backup-vault

(Optional) Module Version

No response

Description

Hi,

there is an interesting issue when the backup vault's identity is set to null. This can be achieved by not setting the managedIdentities parameter. After the initial deployment any update will cause an error "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'”. This can be reproduced also without AVM.

I opened a support case with MS and one possible fix would be to set the identity type to "none" (of course this is totally undocumented):

resource backupVault 'Microsoft.DataProtection/BackupVaults@2024-04-01' = {
  name: vaultName
  location: location
  identity: {
    type: 'None'
  }
  ...
}

Could this also be implemented to the AVM module so by not setting the managedIdentities parameter the identity would be set to "type: 'None'" instead of null?

(Optional) Correlation Id

No response

@teemukom teemukom added Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue labels Feb 19, 2025

Important

The "Needs: Triage 🔍" label must be removed once the triage process is complete!

Tip

For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Type: Bug 🐛 Something isn't working label Feb 19, 2025
@avm-team-linter avm-team-linter bot added the Class: Resource Module 📦 This is a resource module label Feb 19, 2025
Copy link

@teemukom, thanks for submitting this issue for the avm/res/data-protection/backup-vault module!

Important

A member of the @Azure/avm-res-dataprotection-backupvault-module-owners-bicep or @Azure/avm-res-dataprotection-backupvault-module-contributors-bicep team will review it soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: Resource Module 📦 This is a resource module Needs: Triage 🔍 Maintainers need to triage still Type: AVM 🅰️ ✌️ Ⓜ️ This is an AVM related issue Type: Bug 🐛 Something isn't working
Projects
Status: Needs: Triage
Development

No branches or pull requests

2 participants