Azure / bicep-types-az

Bicep type definitions for ARM resources
MIT License
83 stars 26 forks source link

Microsoft.DataProtection/backupVaults not able to set SystemAssigned Identity #2231

Open gKRFHG opened 1 month ago

gKRFHG commented 1 month ago

Bicep version azure-cli 2.61.0 Bicep CLI version 0.28.1 (ba1e9f8c1e)

Describe the bug It has been shown that the execution of 'Microsoft.DataProtection/backupVaults@2022-11-01-preview' and other versions was not able to create a SystemAssigned Identity

To Reproduce

resource BackupVault 'Microsoft.DataProtection/backupVaults@2022-11-01-preview' = {
  name: 'backupvault-lab'
  location: "westeurope"
  tags: tags
  identity: {
    type: 'SystemAssigned'
  }
  properties: {
    monitoringSettings: {
      azureMonitorAlertSettings: {
        alertsForAllJobFailures: 'Enabled'
      }
    }
    securitySettings: {
      immutabilitySettings: {
        state: 'Disabled' // 'Disabled'  'Unlocked' 'Locked'=very bad !!!!
      }
      softDeleteSettings: {
        state: 'Off'
      }
    }
    storageSettings: [
      {
        datastoreType: 'VaultStore'
        type: 'LocallyRedundant'
      }
    ]
  }
}

Additional context The bicep code was executed locally via “az deployment group create” and also in dev.azure.com as a script that is called from a YAML pipeline.

alex-frankel commented 1 month ago

This looks like an issue specific to the DataProtection resource provider. Can you open a support ticket and have it routed to the DataProtection team?