64 lines
1.8 KiB
JSON
64 lines
1.8 KiB
JSON
{
|
|
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
|
|
"contentVersion": "1.0.0.0",
|
|
"parameters": {
|
|
"acrName": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "Name of the azure container registry (must be globally unique)"
|
|
},
|
|
"maxLength": 50,
|
|
"minLength": 5
|
|
},
|
|
"acrAdminUserEnabled": {
|
|
"type": "bool",
|
|
"defaultValue": true,
|
|
"metadata": {
|
|
"description": "Enable an admin user that has push/pull permission to the registry."
|
|
}
|
|
},
|
|
"location": {
|
|
"type": "string",
|
|
"defaultValue": "[resourceGroup().location]",
|
|
"metadata": {
|
|
"description": "Location for all resources."
|
|
}
|
|
},
|
|
"acrSku": {
|
|
"type": "string",
|
|
"defaultValue": "Basic",
|
|
"metadata": {
|
|
"description": "Tier of your Azure Container Registry."
|
|
},
|
|
"allowedValues": [
|
|
"Basic",
|
|
"Standard",
|
|
"Premium"
|
|
]
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"type": "Microsoft.ContainerRegistry/registries",
|
|
"apiVersion": "2019-12-01-preview",
|
|
"name": "[parameters('acrName')]",
|
|
"location": "[parameters('location')]",
|
|
"tags": {
|
|
"displayName": "Container Registry",
|
|
"container.registry": "[parameters('acrName')]"
|
|
},
|
|
"sku": {
|
|
"name": "[parameters('acrSku')]"
|
|
},
|
|
"properties": {
|
|
"adminUserEnabled": "[parameters('acrAdminUserEnabled')]"
|
|
}
|
|
}
|
|
],
|
|
"outputs": {
|
|
"acrLoginServer": {
|
|
"type": "string",
|
|
"value": "[reference(resourceId('Microsoft.ContainerRegistry/registries', parameters('acrName'))).loginServer]"
|
|
}
|
|
}
|
|
} |