forked from Azure/azure-quickstart-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
4a9cc36
commit bbc0c29
Showing
1 changed file
with
38 additions
and
55 deletions.
There are no files selected for viewing
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
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')]" | ||
} | ||
} | ||
] | ||
} |