Skip to content

Add managed identity to function #19

Add managed identity to function

Add managed identity to function #19

name: Deploy SSM SHD resource group
on:
push:
paths:
- 'src/infra/**'
- '.github/workflows/**'
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
deploy-ssm-shd:
environment: shd
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Log into Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
enable-AzPSSession: true
- name: Deploy SSM SHD resource group
uses: azure/powershell@v1
with:
inlineScript: |
$ParamsDev = @{
TemplateFilePath = "./src/infra/resourceGroup.bicep"
TemplateParameterFilePath = "./src/infra/resourceGroup.ssm.shd.bicepparam"
}
./src/scripts/Deploy-ToSubscription.ps1 @ParamsDev
azPSVersion: "11.4.0"