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
<# | |
.SYNOPSIS | |
Replace tokens in a file with values from environment variables. | |
.DESCRIPTION | |
Finds tokens in a given file and replace them with values from environment variables. It is best used to replace configuration values in a release pipeline. | |
Tokens are found when enclosed with curly brackets. For eample: {{ foo }} | |
.EXAMPLE |
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 | |
set -ex | |
echo "Creating cluster with base name $1 on $2" | |
if [ -z "$1" ] | |
then | |
echo "Please provide the name of the cluster." | |
exit -1 |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"resources": [ | |
{ | |
"type": "Microsoft.Web/serverfarms", | |
"apiVersion": "2019-08-01", | |
"name": "[parameters('plan-name')]", | |
"location": "[resourceGroup().location]", | |
"dependsOn": [], |