Skip to content

Commit

Permalink
Updated version
Browse files Browse the repository at this point in the history
Updated API version and moved sku outside the properties property as defined in schema https://schema.management.azure.com/schemas/2017-03-01/Microsoft.ApiManagement.json#/resourceDefinitions/service
  • Loading branch information
sebastiandemel authored Feb 20, 2018
1 parent 4a9cc36 commit bbc0c29
Showing 1 changed file with 38 additions and 55 deletions.
93 changes: 38 additions & 55 deletions 101-azure-api-management-create/azuredeploy.json
Original file line number Diff line number Diff line change
@@ -1,80 +1,63 @@
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters":
{
"publisherEmail":
{
"parameters": {
"publisherEmail": {
"type": "string",
"minLength": 1,
"metadata": {
"description": "The email address of the owner of the service"
}
}
,
"publisherName":
{
"metadata": {
"description": "The email address of the owner of the service"
}
},
"publisherName": {
"type": "string",
"minLength": 1,
"metadata": {
"description": "The name of the owner of the service"
}
}
,
"sku":
{
"metadata": {
"description": "The name of the owner of the service"
}
},
"sku": {
"type": "string",
"allowedValues": [
"Developer",
"Standard",
"Premium"
"Developer",
"Standard",
"Premium"
],
"defaultValue": "Developer",
"metadata": {
"description": "The pricing tier of this API Management service"
}
}
,
"skuCount":
{
"metadata": {
"description": "The pricing tier of this API Management service"
}
},
"skuCount": {
"type": "string",
"allowedValues": [
"1",
"2"
"1",
"2"
],
"defaultValue": "1",
"metadata": {
"description": "The instance size of this API Management service."
}
"metadata": {
"description": "The instance size of this API Management service."
}
}
}
,
"variables":
{
},
"variables": {
"apiManagementServiceName": "[concat('apiservice', uniqueString(resourceGroup().id))]"
}
,
},
"resources": [
{
"apiVersion": "2014-02-14",
"name": "[variables('apiManagementServiceName')]",
"type": "Microsoft.ApiManagement/service",
"location": "West US",
"tags":
{
}
,
"properties":
{
"sku":
{
"apiVersion": "2017-03-01",
"name": "[variables('apiManagementServiceName')]",
"type": "Microsoft.ApiManagement/service",
"location": "West US",
"tags": {},
"sku": {
"name": "[parameters('sku')]",
"capacity": "[parameters('skuCount')]"
},
"properties": {
"publisherEmail": "[parameters('publisherEmail')]",
"publisherName": "[parameters('publisherName')]"
}
,
"publisherEmail": "[parameters('publisherEmail')]",
"publisherName": "[parameters('publisherName')]"
}
}
]
}

0 comments on commit bbc0c29

Please sign in to comment.