Skip to content

Instantly share code, notes, and snippets.

@marrobi
Created June 22, 2017 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marrobi/5783193b8f3a4dd19f211160cf407d9e to your computer and use it in GitHub Desktop.
Save marrobi/5783193b8f3a4dd19f211160cf407d9e to your computer and use it in GitHub Desktop.
ACR Tempalte
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"registryName": {
"type": "string",
"metadata": {
"description": "The name of the container registry."
}
},
"registryLocation": {
"type": "string",
"metadata": {
"description": "The location of the container registry. This cannot be changed after the resource is created."
}
},
"registrySku": {
"type": "string",
"defaultValue": "Managed_Standard",
"metadata": {
"description": "The SKU of the container registry."
}
},
"registryApiVersion": {
"type": "string",
"defaultValue": "2017-06-01-preview",
"metadata": {
"description": "The API version of the container registry."
}
},
"adminUserEnabled": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "The value that indicates whether the admin user is enabled."
}
}
},
"resources": [
{
"name": "[parameters('registryName')]",
"type": "Microsoft.ContainerRegistry/registries",
"location": "[parameters('registryLocation')]",
"apiVersion": "[parameters('registryApiVersion')]",
"sku": {
"name": "[parameters('registrySku')]"
},
"properties": {
"adminUserEnabled": "[parameters('adminUserEnabled')]"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment