Skip to content

Commit

Permalink
Merge pull request #198 from ElYusubov/development
Browse files Browse the repository at this point in the history
Adding new avm acr bicep code, minor sript updates for demo
  • Loading branch information
ElYusubov authored Jan 15, 2025
2 parents a4b8d48 + 17c4622 commit f5896ce
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/minimum-storage.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ resource storageaccount 'Microsoft.Storage/storageAccounts@2022-05-01' = {
}
tags: {
Environment: 'Demo'
Project: 'MVP TechBytes 2023'
Project: 'Test Bicep 2025'
}
}
13 changes: 13 additions & 0 deletions samples/23-deploy-avm-acr.bicep
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Deploy an Azure Container Registry via AVM Modules
// https://github.com/Azure/bicep-registry-modules/tree/main/avm/res/container-registry/registry

module registry 'br/public:avm/res/container-registry/registry:0.7.0' = {
name: 'registryDeployment'
params: {
// Required parameters
name: 'privacrdemo001'
// Non-required parameters
acrSku: 'Standard'
location: 'eastus2'
}
}
8 changes: 6 additions & 2 deletions scripts/deploy-private-acr.azcli
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ az acr list --query [].name -o table

# Get login server name
az acr show --resource-group cloud-demo01 --name cloudwithus01.azurecr.io --query loginServer
# Sample response: cloudwithus01.azurecr.io
# Expected response: cloudwithus01.azurecr.io

### ----------------------- ###
### ------- Publishing modules to a new ACR ----------- ###

# Repo of the ACR is expected to be empty at this point
az acr repository list --name cloudwithus01.azurecr.io --output table

# Publish modules/storage-param.bicep
Expand All @@ -42,3 +43,6 @@ az storage account list --query "[].{name:name}" --output table

# Display an existing web app
az webapp show -g cloud-demo01 --name cloudwithus-demo-01 -o table

# Deploy AVM Bicep module from 23-deploy-avm-acr.bicep file
az deployment group create -g 'cloud-demo01' -f .\samples\23-deploy-avm-acr.bicep -c

0 comments on commit f5896ce

Please sign in to comment.