mirror of
https://github.com/bartvdbraak/keyweave.git
synced 2025-06-28 20:29:11 +00:00
feat: bicep templates for azure resources
This commit is contained in:
parent
cdb62b86e0
commit
3ed4444422
5 changed files with 221 additions and 0 deletions
36
bicep/modules/id.bicep
Normal file
36
bicep/modules/id.bicep
Normal file
|
@ -0,0 +1,36 @@
|
|||
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
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue