Terraform plan command using powershell in Azure Pipelines
- powershell: | | |
terraform plan -var client_id="$(client_id)" -var client_secret="$(client_secret)" -var subscription_id="$(subscription_id)" -var tenant_id="$(tenant_id)" -out application.tfplan -no-color | |
workingDirectory: $(build.sourcesdirectory) | |
displayName: 'terraform plan' | |
# where $(client_id) is the appID of the service principal, | |
# $(client_secret) is the password of the service princial, | |
# $(subscription_id) is the Azure subscription to which the service principal belongs, and | |
# $(tenant_id) is the tenant value of the service principal. | |
# These values can be stored in Azure pipeline variables or as a variable group in the Azure DevOps project. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment