Skip to content

Commit

Permalink
Location fix
Browse files Browse the repository at this point in the history
Changed resource location from parameter to resourceGroup().location.
Deleted location parameter from deployment template and parameter file.
  • Loading branch information
marcvaneijk authored and kvaes committed Jun 18, 2016
1 parent 5b58fe4 commit 387bd5a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
25 changes: 1 addition & 24 deletions 101-key-vault-create/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,6 @@
"description": "Name of the Vault"
}
},
"location": {
"type": "string",
"allowedValues": [
"Central US",
"East US",
"East US 2",
"North Central US",
"South Central US",
"West US",
"North Europe",
"West Europe",
"East Asia",
"Southeast Asia",
"Japan East",
"Japan West",
"Brazil South",
"Australia East",
"Australia Southeast"
],
"metadata": {
"description": "Key Vault location"
}
},
"tenantId": {
"type": "string",
"metadata": {
Expand Down Expand Up @@ -107,7 +84,7 @@
"type": "Microsoft.KeyVault/vaults",
"name": "[parameters('keyVaultName')]",
"apiVersion": "2015-06-01",
"location": "[parameters('location')]",
"location": "[resourceGroup().location]",
"properties": {
"enabledForDeployment": "[parameters('enableVaultForDeployment')]",
"enabledForDiskEncryption": "[parameters('enableVaultForDiskEncryption')]",
Expand Down
3 changes: 0 additions & 3 deletions 101-key-vault-create/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"keyVaultName": {
"value": "testvault"
},
"location": {
"value": "West US"
},
"tenantId": {
"value": "example-guid"
},
Expand Down

0 comments on commit 387bd5a

Please sign in to comment.