@@ -23,7 +23,7 @@ variables:
23
23
AZURE_RESOURCE_MANAGER_CONNECTION_NAME : " integration-product-service-connection" # Update to '{resourceManagerConnectionName}'
24
24
AZURE_SUBSCRIPTION_ID : " 2150d511-458f-43b9-8691-6819ba2e6c7b" # Update to '{dataLandingZoneSubscriptionId}'
25
25
AZURE_RESOURCE_GROUP_NAME : " dlz01-dev-di001" # Update to '{dataLandingZoneName}-rg'
26
- AZURE_LOCATION : " North Europe " # Update to '{regionName}'
26
+ AZURE_LOCATION : " northeurope " # Update to '{regionName}'
27
27
28
28
stages :
29
29
- stage : Validation
@@ -80,6 +80,34 @@ stages:
80
80
overrideParameters : >
81
81
-administratorPassword "$(password)"
82
82
83
+ # Deploy Data Product - what-if
84
+ - task : AzureCLI@2
85
+ name : data_product_whatif
86
+ displayName : Deploy Data Product - what-if
87
+ enabled : true
88
+ continueOnError : false
89
+ inputs :
90
+ azureSubscription : ${{ variables.AZURE_RESOURCE_MANAGER_CONNECTION_NAME }}
91
+ scriptType : pscore
92
+ scriptLocation : inlineScript
93
+ inlineScript : |
94
+ az account set `
95
+ --subscription ${{ variables.AZURE_SUBSCRIPTION_ID }}
96
+
97
+ az deployment group what-if `
98
+ --resource-group ${{ variables.AZURE_RESOURCE_GROUP_NAME }} `
99
+ --exclude-change-types Ignore NoChange Unsupported `
100
+ --mode "Incremental" `
101
+ --template-file "$(System.DefaultWorkingDirectory)/infra/main.json" `
102
+ --parameters "$(System.DefaultWorkingDirectory)/infra/params.dev.json" administratorPassword="$(password)" `
103
+ --result-format "FullResourcePayloads"
104
+
105
+ powerShellErrorActionPreference : " stop"
106
+ addSpnToEnvironment : false
107
+ useGlobalConfig : false
108
+ failOnStandardError : false
109
+ powerShellIgnoreLASTEXITCODE : false
110
+
83
111
- stage : Deployment
84
112
displayName : " Deployment of ARM templates"
85
113
dependsOn : Validation
0 commit comments