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
int a = 3; | |
int b = 5; |
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
git remote add VSTS https://youruser:$(vstsToken)@$(vstsRepoUri) | |
git pull VSTS releaseToTFS --allow-unrelated-histories | |
git push origin head:master |
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
wget https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip -O terraform.zip | |
unzip terraform.zip | |
mv terraform /home/${USER}/.local/bin/ | |
if [[ “:$PATH:” == *”:$HOME/.local/bin”* ]]; then echo “Your path is correctly set” else PATH=$PATH:/home/${USER}/.local/bin export PATH fi |
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
#/bin/bash | |
wget https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip && \ | |
unzip terraform_0.11.11_linux_amd64.zip -d /bin |
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
choco install terraform |
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
resource "azurerm_resource_group" "rg" { | |
name = "rg_app" | |
location = "northeurope" | |
} |
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
az ad sp create-for-rbac --name="<nom Sp>" --role="Contributor" --scopes="/subscriptions/<subscription Id>" |
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
provider "azurerm" { | |
subscription_id = "<l’iD de la suscription>" | |
client_id = "<Client ID>" | |
client_secret = "<Client Secret>" | |
tenant_id = "<Tenant Id>" | |
} |
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
resource "azurerm_resource_group" "rg" { | |
name = "rg_monappli" | |
location = "northeurope" | |
tags { | |
environment = "Terraform article" | |
} | |
} |
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
export ARM_SUBSCRIPTION_ID="xxxxxx-xxxxx-xxxxx-xxxxx" | |
export ARM_CLIENT_ID="xxxxxx-xxxxx-xxxxx-xxxxx" | |
export ARM_CLIENT_SECRET="xxxxxxxxxxxxxxxxxxxx" | |
export ARM_TENANT_ID="xxxxxx-xxxxx-xxxxx-xxxxx" |
OlderNewer