mirror of
https://github.com/bartvdbraak/keyweave.git
synced 2025-04-28 07:11:21 +00:00
36 lines
995 B
Bicep
36 lines
995 B
Bicep
param nameFormat string
|
|
param location string
|
|
param tags object
|
|
|
|
resource managedIdentityNone 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
|
|
name: format(nameFormat, 'ID', 1)
|
|
location: location
|
|
tags: tags
|
|
}
|
|
|
|
resource managedIdentityGet 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
|
|
name: format(nameFormat, 'ID', 2)
|
|
location: location
|
|
tags: tags
|
|
}
|
|
|
|
resource managedIdentityList 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
|
|
name: format(nameFormat, 'ID', 3)
|
|
location: location
|
|
tags: tags
|
|
}
|
|
|
|
resource managedIdentityGetList 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
|
|
name: format(nameFormat, 'ID', 4)
|
|
location: location
|
|
tags: tags
|
|
}
|
|
|
|
output getPrincipalIds array = [
|
|
managedIdentityGet.properties.principalId
|
|
managedIdentityGetList.properties.principalId
|
|
]
|
|
output listPrincipalIds array = [
|
|
managedIdentityList.properties.principalId
|
|
managedIdentityGetList.properties.principalId
|
|
]
|