diff --git a/avm/res/recovery-services/vault/protected-item/main.bicep b/avm/res/recovery-services/vault/protected-item/main.bicep index 05b45a0f79..2a82663afc 100644 --- a/avm/res/recovery-services/vault/protected-item/main.bicep +++ b/avm/res/recovery-services/vault/protected-item/main.bicep @@ -42,16 +42,17 @@ param sourceResourceId string // protectedItemType: any(protectedItemType) // policyId: policyResourceId // sourceResourceId: sourceResourceId -// extendedProperties: [] +// extendedProperties: {} // } // } resource protectedItem 'Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems@2024-10-01' = { - name: 'alsgrsvmax001/Azure/iaasvmcontainer;IaasVMContainer;iaasvmcontainerv2;dep-alsg-recoveryservices.vaults-rsvmax-rg;dep-alsg-vm-rsvmax/vm;iaasvmcontainerv2;dep-alsg-recoveryservices.vaults-rsvmax-rg;dep-alsg-vm-rsvmax' + name: 'alsgrsvmax001/Azure/IaasVMContainer;iaasvmcontainerv2;dep-alsg-recoveryservices.vaults-rsvmax-rg;dep-alsg-vm-rsvmax/vm;iaasvmcontainerv2;dep-alsg-recoveryservices.vaults-rsvmax-rg;dep-alsg-vm-rsvmax' location: location properties: { protectedItemType: 'Microsoft.Compute/virtualMachines' - policyId: '/subscriptions/a7439831-1cd9-435d-a091-4aa863c96556/providers/Microsoft.RecoveryServices/vaults/alsgrsvmax001/backupPolicies/VMpolicy' + // policyId: '/subscriptions/a7439831-1cd9-435d-a091-4aa863c96556/providers/Microsoft.RecoveryServices/vaults/alsgrsvmax001/backupPolicies/VMpolicy' + policyId: resourceId('Microsoft.RecoveryServices/vaults/backupPolicies', 'alsgrsvmax001', 'VMpolicy') sourceResourceId: '/subscriptions/a7439831-1cd9-435d-a091-4aa863c96556/resourceGroups/dep-alsg-recoveryservices.vaults-rsvmax-rg/providers/Microsoft.Compute/virtualMachines/dep-alsg-vm-rsvmax' extendedProperties: {} }