63 строки
1.5 KiB
JSON
63 строки
1.5 KiB
JSON
{
|
|
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
|
|
"contentVersion": "1.0.0.0",
|
|
"metadata": {
|
|
"_generator": {
|
|
"name": "bicep",
|
|
"version": "0.25.53.49325",
|
|
"templateHash": "18407530808560387725"
|
|
}
|
|
},
|
|
"parameters": {
|
|
"name": {
|
|
"type": "string",
|
|
"minLength": 5,
|
|
"maxLength": 50,
|
|
"metadata": {
|
|
"description": "The name of the resource."
|
|
}
|
|
},
|
|
"location": {
|
|
"type": "string",
|
|
"defaultValue": "[resourceGroup().location]",
|
|
"metadata": {
|
|
"description": "The location resources will be deployed."
|
|
}
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"type": "Microsoft.ContainerRegistry/registries",
|
|
"apiVersion": "2023-11-01-preview",
|
|
"name": "[parameters('name')]",
|
|
"location": "[parameters('location')]",
|
|
"sku": {
|
|
"name": "Premium"
|
|
},
|
|
"identity": {
|
|
"type": "SystemAssigned"
|
|
},
|
|
"properties": {
|
|
"adminUserEnabled": false,
|
|
"anonymousPullEnabled": false,
|
|
"policies": {
|
|
"quarantinePolicy": {
|
|
"status": "enabled"
|
|
},
|
|
"trustPolicy": {
|
|
"status": "enabled",
|
|
"type": "Notary"
|
|
},
|
|
"retentionPolicy": {
|
|
"days": 30,
|
|
"status": "enabled"
|
|
},
|
|
"softDeletePolicy": {
|
|
"retentionDays": 90,
|
|
"status": "enabled"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |