Skip to content

Commit

Permalink
Add assigning contributor role for SPN
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrWachulec committed Mar 18, 2024
1 parent 616c588 commit cb9828c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/infra/resourceGroup.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,18 @@ param resourceGroupName string
])
param location string

@description('Principal ID of the resource deployment principal')
param resourceDeploymentPrincipalId string

resource rg 'Microsoft.Resources/resourceGroups@2023-07-01' = {
name: resourceGroupName
location: location
}

module ra 'roleAssignment.bicep' = {
name: 'ra'
scope: resourceGroup(rg.name)
params: {
resourceDeploymentPrincipalId: resourceDeploymentPrincipalId
}
}
1 change: 1 addition & 0 deletions src/infra/resourceGroup.dev.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ using 'resourceGroup.bicep'

param resourceGroupName = 'eit-vms-plc-dev-rg-1'
param location = 'polandcentral'
param resourceDeploymentPrincipalId = 'e548b4a5-b3e3-4baf-b215-c0329e885419'

0 comments on commit cb9828c

Please sign in to comment.