param environmentName string param location string = resourceGroup().location param adminUserEnabled bool = true param anonymousPullEnabled bool = false param containerRegistryName string = '' param dataEndpointEnabled bool = false param encryption object = { status: 'disabled' } param networkRuleBypassOptions string = 'AzureServices' param publicNetworkAccess string = 'Enabled' param sku object = { name: 'Standard' } param zoneRedundancy string = 'Disabled' var abbrs = loadJsonContent('../../abbreviations.json') var resourceToken = toLower(uniqueString(subscription().id, environmentName, location)) var tags = { 'azd-env-name': environmentName } // 2022-02-01-preview needed for anonymousPullEnabled resource containerRegistry 'Microsoft.ContainerRegistry/registries@2022-02-01-preview' = { name: !empty(containerRegistryName) ? containerRegistryName : '${abbrs.containerRegistryRegistries}${resourceToken}' location: location tags: tags sku: sku properties: { adminUserEnabled: adminUserEnabled anonymousPullEnabled: anonymousPullEnabled dataEndpointEnabled: dataEndpointEnabled encryption: encryption networkRuleBypassOptions: networkRuleBypassOptions publicNetworkAccess: publicNetworkAccess zoneRedundancy: zoneRedundancy } } output containerRegistryEndpoint string = containerRegistry.properties.loginServer output containerRegistryName string = containerRegistry.name