github_repo_scraped
/
repos
/Azure-azure-sdk-for-python-c89899b
/sdk
/containerregistry
/test-resources.json
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"baseName": { | |
"type": "string", | |
"defaultValue": "[resourceGroup().name]", | |
"metadata": { | |
"description": "The base resource name." | |
} | |
}, | |
"location": { | |
"type": "string", | |
"defaultValue": "[resourceGroup().location]", | |
"metadata": { | |
"description": "The location of the resource. By default, this is the same as the resource group." | |
} | |
}, | |
"containerRegistryEndpointSuffix": { | |
"defaultValue": ".azurecr.io", | |
"type": "string" | |
} | |
}, | |
"variables": { | |
"apiVersion": "2020-11-01-preview", | |
"endpointValue": "[format('https://{0}{1}', parameters('baseName'), parameters('containerRegistryEndpointSuffix'))]", | |
"anonRegistryName": "[format('{0}anon', parameters('baseName'))]", | |
"anonEndpointValue": "[format('https://{0}{1}', variables('anonRegistryName'), parameters('containerRegistryEndpointSuffix'))]" | |
}, | |
"resources": [ | |
{ | |
"type": "Microsoft.ContainerRegistry/registries", | |
"apiVersion": "[variables('apiVersion')]", | |
"name": "[parameters('baseName')]", | |
"location": "[parameters('location')]", | |
"properties": { | |
"endpoint": "[variables('endpointValue')]", | |
}, | |
"sku": { | |
"name": "Basic", | |
"tier": "Basic" | |
} | |
}, | |
{ | |
"type": "Microsoft.ContainerRegistry/registries", | |
"apiVersion": "[variables('apiVersion')]", | |
"name": "[variables('anonRegistryName')]", | |
"location": "[parameters('location')]", | |
"properties": { | |
"endpoint": "[variables('anonEndpointValue')]", | |
"anonymousPullEnabled": true | |
}, | |
"sku": { | |
"name": "Standard", | |
"tier": "Standard" | |
} | |
} | |
], | |
"outputs": { | |
"CONTAINERREGISTRY_REGISTRY_NAME": { | |
"type": "string", | |
"value": "[parameters('baseName')]" | |
}, | |
"CONTAINERREGISTRY_ENDPOINT": { | |
"type": "string", | |
"value": "[variables('endpointValue')]" | |
}, | |
"CONTAINERREGISTRY_ANONREGISTRY_NAME": { | |
"type": "string", | |
"value": "[variables('anonRegistryName')]" | |
}, | |
"CONTAINERREGISTRY_ANONREGISTRY_ENDPOINT": { | |
"type": "string", | |
"value": "[variables('anonEndpointValue')]" | |
}, | |
} | |
} |