Skip to content

Commit c90a245

Browse files
committed
Converted ACRNAME to variable
1 parent d4f91a1 commit c90a245

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/aks/tutorial-kubernetes-prepare-acr.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ Before creating an ACR instance, you need a resource group. An Azure resource gr
6969
2. Create an ACR instance using the [`New-AzContainerRegistry`][new-azcontainerregistry] cmdlet and provide your own unique registry name. The registry name must be unique within Azure and contain 5-50 alphanumeric characters. The rest of this tutorial uses an environment variable, `$ACRNAME`, as a placeholder for the container registry name. You can set this environment variable to your unique ACR name to use in future commands. The *Basic* SKU is a cost-optimized entry point for development purposes that provides a balance of storage and throughput.
7070
7171
```azurepowershell-interactive
72+
$rand=New-Object System.Random
73+
$RAND=$rand.Next()
74+
$ACRNAME="myregistry$RAND" # Or replace with your own name
7275
New-AzContainerRegistry -ResourceGroupName myResourceGroup -Name $ACRNAME -Location eastus -Sku Basic
7376
```
7477

0 commit comments

Comments
 (0)