ARM template for telepathy deployment.
[ "$(az group exists -n ResourceGroupName)" = "true" ] && az group delete -n ResourceGroupName -y
az group create --name ResourceGroupName --location "japaneast" --subscription subscriptionName
az group deployment create `
--name DeployementName `
--resource-group ResourceGroupName `
--subscription subscriptionName `
--template-file "location of template file" `
--parameters "location of parameters.json file"
$ResourceGroupName = ""
$Location = ""
$TemplateFile = ""
$TemplateParameterFile = ""
Connect-AzAccount
if(Get-AzResourceGroup -Name $ResourceGroupName) {
Remove-AzResourceGroup -Name $ResourceGroupName -Force
}
New-AzResourceGroup -Name $ResourceGroupName -Location $Location
New-AzResourceGroupDeployment -ResourceGroupName $ResourceGroupName -TemplateFile $TemplateFile -TemplateParameterFile $TemplateParameterFile