@@ -24,18 +24,21 @@ jobs:
2424 ipamResourceGroup : ${{ steps.deployScript.outputs.ipamResourceGroup }}
2525 steps :
2626 - name : Install Deployment Prerequisites
27+ id : installPrerequisites
2728 shell : pwsh
2829 run : |
2930 Set-PSRepository PSGallery -InstallationPolicy Trusted
3031 Install-Module Az, Microsoft.Graph -AllowClobber -Force
3132
3233 - name : Azure Login
34+ id : azureLogin
3335 uses : azure/login@v2
3436 with :
3537 creds : ${{ secrets.AZURE_CREDENTIALS }}
3638 enable-AzPSSession : true
3739
3840 - name : Checkout Azure IPAM Code
41+ id : checkoutRepo
3942 uses : actions/checkout@v4
4043 with :
4144 sparse-checkout : |
@@ -44,10 +47,12 @@ jobs:
4447 ui
4548
4649 - name : Build Azure IPAM Container
50+ id : buildContainer
4751 run : |
4852 az acr build -r $ACR_NAME -t ipam:${{ github.run_id }}-${{ github.run_attempt }} -f ./Dockerfile.deb .
4953
5054 - name : Update Bicep File
55+ id : updateBicep
5156 working-directory : deploy
5257 shell : pwsh
5358 run : |
@@ -62,14 +67,14 @@ jobs:
6267 $bicepFile | Out-File -FilePath ./modules/appService.bicep -Force
6368
6469 - name : Deploy Azure IPAM
65- working-directory : deploy
6670 id : deployScript
71+ working-directory : deploy
6772 shell : pwsh
6873 run : ./deploy.ps1 -Location "westus3" -UIAppName $env:IPAM_UI_NAME -EngineAppName $env:IPAM_ENGINE_NAME
6974
7075 - name : " Upload Logs"
71- working-directory : logs
7276 id : uploadLogs
77+ working-directory : logs
7378 env :
7479 AZURE_IPAM_SUFFIX : ${{ steps.deployScript.outputs.ipamSuffix }}
7580 STORAGE_ACCT_RG : ${{ vars.LOGGING_STORAGE_RG }}
97102 Write-Output "logFile=$archiveName" >> $Env:GITHUB_OUTPUT
98103
99104 - name : " Output Azure IPAM Deployment Details"
105+ id : deploymentDetails
100106 env :
101107 DEPLOYMENT_DETAILS : ${{ steps.uploadLogs.outputs.deployDetails }}
102108 shell : pwsh
@@ -117,6 +123,7 @@ jobs:
117123 Write-Host "-------------------"
118124
119125 - name : " Sleep for 5 Minutes"
126+ id : sleep
120127 shell : pwsh
121128 run : Start-Sleep -s 300
122129
@@ -126,24 +133,28 @@ jobs:
126133 needs : [ deploy ]
127134 steps :
128135 - name : Install Testing Prerequisites
136+ id : installPrerequisites
129137 shell : pwsh
130138 run : |
131139 Set-PSRepository PSGallery -InstallationPolicy Trusted
132140 Install-Module Az, Pester -AllowClobber -Force
133141
134142 - name : Azure Login
143+ id : azureLogin
135144 uses : azure/login@v2
136145 with :
137146 creds : ${{ secrets.AZURE_CREDENTIALS }}
138147 enable-AzPSSession : true
139148
140149 - name : Checkout Azure IPAM Code
150+ id : checkoutRepo
141151 uses : actions/checkout@v4
142152 with :
143153 sparse-checkout : |
144154 tests
145155
146156 - name : Test Azure IPAM w/ Pester
157+ id : ipamTesting
147158 working-directory : tests
148159 env :
149160 IPAM_RESOURCE_GROUP : ${{ needs.deploy.outputs.ipamResourceGroup }}
@@ -174,23 +185,27 @@ jobs:
174185 needs : [ deploy, test ]
175186 steps :
176187 - name : Install Cleanup Prerequisites
188+ id : installPrerequisites
177189 shell : pwsh
178190 run : |
179191 Set-PSRepository PSGallery -InstallationPolicy Trusted
180192 Install-Module Az -AllowClobber -Force
181193
182194 - name : Azure Login
195+ id : azureLogin
183196 uses : azure/login@v2
184197 with :
185198 creds : ${{ secrets.AZURE_CREDENTIALS }}
186199 enable-AzPSSession : true
187200
188201 - name : Remove Azure IPAM Resources
202+ id : cleanupResources
189203 shell : pwsh
190204 run : |
191205 Remove-AzResourceGroup -Name ${{ needs.deploy.outputs.ipamResourceGroup }} -Force
192206
193207 - name : Remove Azure IPAM Identities
208+ id : cleanupIdentities
194209 shell : pwsh
195210 run : |
196211 $tenantId = (Get-AzContext).Tenant.Id
@@ -207,5 +222,6 @@ jobs:
207222 $engineApp | Remove-AzADApplication
208223
209224 - name : " Remove Azure IPAM Container"
225+ id : cleanupContainer
210226 run : |
211227 az acr repository delete --name $ACR_NAME --repository ipam --yes
0 commit comments