forked from Azure/missionlz
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 2.07 KB
/
MLZWhatIf.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Mission Landing Zone What-If
on:
pull_request:
branches:
- main
permissions:
id-token: write
contents: read
jobs:
What-If:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: OIDC Login to Azure Public Cloud
uses: azure/login@v2
with:
client-id: ${{ secrets.CLIENT_ID }}
tenant-id: ${{ secrets.TENANT_ID }}
subscription-id: ${{ secrets.SUBSCRIPTION_ID }}
enable-AzPSSession: true
- name: MLZ What-If
uses: azure/arm-deploy@v2
with:
scope: subscription
region: centralus
#deploymentMode: 'Validate'
template: ./src/bicep/mlz-arpah.bicep
parameters:
resourcePrefix=mlz
environmentAbbreviation=dev
hubSubscriptionId=${{ secrets.HUB_SUB_ID }}
operationsSubscriptionId=${{ secrets.OPS_SUB_ID }}
sharedServicesSubscriptionId=${{ secrets.SS_SUB_ID }}
identitySubscriptionId=${{ secrets.IDENTITY_SUB_ID }}
hubVirtualNetworkAddressPrefix=${{ secrets.HUB_VNET_PREFIX }}
hubSubnetAddressPrefix=${{ secrets.HUB_SNET_PREFIX }}
operationsVirtualNetworkAddressPrefix=${{ secrets.OPS_VNET_PREFIX }}
operationsSubnetAddressPrefix=${{ secrets.OPS_SNET_PREFIX }}
sharedServicesVirtualNetworkAddressPrefix=${{ secrets.SS_VNET_PREFIX }}
sharedServicesSubnetAddressPrefix=${{ secrets.SS_SNET_PREFIX }}
identityVirtualNetworkAddressPrefix=${{ secrets.IDENTITY_VNET_PREFIX }}
identitySubnetAddressPrefix=${{ secrets.IDENTITY_SNET_PREFIX}}
firewallClientSubnetAddressPrefix=${{ secrets.FW_CLIENT_SNET_PREFIX }}
firewallManagementSubnetAddressPrefix=${{ secrets.FW_MGMT_SNET_PREFIX }}
bastionHostSubnetAddressPrefix=${{ secrets.BASTION_SNET_PREFIX }}
windowsVmAdminPassword=${{ secrets.WIN_VM_ADMIN_PWD }}
additionalArguments: "--what-if"
failOnStdErr: false