GitHub Action that previews the effects of your Azure infrastructure changes before its deployment by running an ARM template deployment what-if operation.
Example Usage
Preview changes with a parameters file
steps:
- name: Preview changes
uses: Azure/deployment-what-if@v1.0.0
with:
subscription: '<subscription ID>'
resourceGroup: '<resource group name>'
templateFile: azuredeploy.json # main.bicep
parametersFile: parameters.json
Preview changes with additional parameters
steps:
- name: Preview changes
uses: Azure/deployment-what-if@v1.0.0
with:
subscription: '<subscription ID>'
resourceGroup: '<resource group name>'
templateFile: azuredeploy.json # main.bicep
additionalParameters: key1=value key2=value keyN=value
Inputs
Name | Description | Required |
---|---|---|
subscription |
Subscription ID | true |
resourceGroup |
Resource group name | true |
templateFile |
ARM template (.json ) or Bicep (.bicep ) file |
true |
parametersFile |
Parameters file for the ARM template or Bicep | false |
additionalParameters |
Additional parameters to be applied on the ARM template or Bicep. Multiple parameters should be separated by spaces. | false |