зеркало из https://github.com/Azure/ALZ-Bicep.git
Страница:
ACRDeployment
Страницы
ACRDeployment
Accelerator
AddingPolicyDefs
AssigningPolicies
AzureMonitorBaselineAlerts
CodeTour
ConsumerGuide
Contributing
CustomerUsage
DeploymentFlow
DeploymentFlowHS
DeploymentFlowVWAN
DeploymentGuideHSZT
FAQ
Home
KnownIssues
PipelinesADO
PipelinesGitHub
PipelinesOverview
PolicyDeepDive
Resiliency
6
ACRDeployment
github-actions редактировал(а) эту страницу 2023-08-31 14:14:28 +00:00
Azure Landing Zones - Private/Organizational Azure Container Registry Deployment (also known as private registry for Bicep modules)
This document outlines the prerequisites, dependencies and flow to setup a Private/Organizational Azure Container Registry. Once deployed, you can then upload the modules contained within this repository, and deploy.
This is based on the official Bicep docs here: Create private registry for Bicep modules
Prerequisites
- Microsoft Entra Tenant.
- Minimum 1 subscription. Subscription(s) are required when configuring
Azure Container Registry
services. - Deployment Identity with
Contributor
permission to the subscription.
Deployment Flow
- Clone Bicep Azure Landing Zone Github repository
git clone https://github.com/Azure/ALZ-Bicep.git
- Login to Azure leveraging PowerShell or CLI
- PowerShell:
Connect-AzAccount
- CLI:
az login
- PowerShell:
- Select Azure Subscription to deploy Container Registry to
- PowerShell:
Select-AzSubscription -SubscriptionId 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
- CLI:
az account set --subscription 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
- PowerShell:
- Create Resource Group
- Call Bicep template to create Azure Container Registry
- Loop through infra-az-code/bicep/modules folders and call
bicep publish
for each bicep module in this repo
Provided automation
Two scripts exist which automate steps 4 to 6.
Deployment
Prior to executing your desired script, steps one and two need to be complete, and the two variables should be reviewed in the script.
- Variables exist on lines 3 and 4 of each script and should be updated to match your desired resource group and region.
- Execute script with following commands:
- PowerShell:
./docs/scripts/createRGandcallBicep.ps1
- CLI:
./docs/scripts/createRGandcallBicep.sh
- PowerShell:
Wiki Navigation
- Wiki Home
- Deployment Flow
- Consumer Guide
- How Does ALZ-Bicep Implement Azure Policies?
- How Does ALZ-Bicep Implement resilient deployments across availability zones?
- Contributing
- Telemetry Tracking Using Customer Usage Attribution (PID)
- Azure Container Registry Deployment - Private Bicep Registry
- Sample Pipelines
- Code tours
This wiki is being actively developed
If you discover any documentation bugs or would like to request new content, please raise them as an issue on the repo.
Contributions to this wiki are done through the main repo under docs/wiki.