-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EES-4765 Provision container registry
- Loading branch information
Showing
3 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
metadata description = 'Creates an Azure Container Registry.' | ||
param name string | ||
param location string = resourceGroup().location | ||
param tags object = {} | ||
|
||
@description('Indicates whether admin user is enabled') | ||
param adminUserEnabled bool = false | ||
|
||
@description('Indicates whether anonymous pull is enabled') | ||
param anonymousPullEnabled bool = false | ||
|
||
@description('Indicates whether data endpoint is enabled') | ||
param dataEndpointEnabled bool = false | ||
|
||
@description('Encryption settings') | ||
param encryption object = { | ||
status: 'disabled' | ||
} | ||
|
||
@description('Options for bypassing network rules') | ||
param networkRuleBypassOptions string = 'AzureServices' | ||
|
||
@description('Public network access setting') | ||
param publicNetworkAccess string = 'Enabled' | ||
|
||
@description('SKU settings') | ||
param sku object = { | ||
name: 'Basic' | ||
} | ||
|
||
@description('Zone redundancy setting') | ||
param zoneRedundancy string = 'Disabled' | ||
|
||
resource containerRegistry 'Microsoft.ContainerRegistry/registries@2023-01-01-preview' = { | ||
name: name | ||
location: location | ||
tags: tags | ||
sku: sku | ||
properties: { | ||
adminUserEnabled: adminUserEnabled | ||
anonymousPullEnabled: anonymousPullEnabled | ||
dataEndpointEnabled: dataEndpointEnabled | ||
encryption: encryption | ||
networkRuleBypassOptions: networkRuleBypassOptions | ||
publicNetworkAccess: publicNetworkAccess | ||
zoneRedundancy: zoneRedundancy | ||
} | ||
} | ||
|
||
output loginServer string = containerRegistry.properties.loginServer | ||
output name string = containerRegistry.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters