Created
March 25, 2021 11:02
-
-
Save kunduso/7c71cb963a4804ad9248e8880bf1651e to your computer and use it in GitHub Desktop.
Terraform plan command using powershell in Azure Pipelines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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