I have a bicep file that I use to deploy new vm. I am also enabling managed identity for the vm.
resource vm 'Microsoft.Compute/virtualMachines@2021-03-01' = {
name: vmName
location: location
identity: {
type: 'SystemAssigned'
}
....
}
Everything works fine but I also want to add the principalId of the managed identity to one of the existing active directory group. Can I do that?