File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 [parameter (Mandatory = $true )][string ]$location ,
44 [parameter (Mandatory = $true )][string ]$registryName ,
55 [parameter (Mandatory = $true )][string ]$orchestratorName ,
6- [parameter (Mandatory = $true )][string ]$dnsName
6+ [parameter (Mandatory = $true )][string ]$dnsName ,
7+ [parameter (Mandatory = $true )][string ]$createAcr = $true
78)
89
910# Create resource group
1011Write-Host " Creating resource group..." - ForegroundColor Yellow
1112az group create -- name= $resourceGroupName -- location= $location
1213
13- # Create Azure Container Registry
14- Write-Host " Creating Azure Container Registry..." - ForegroundColor Yellow
15- az acr create - n $registryName - g $resourceGroupName - l $location -- admin- enabled true -- sku Basic
14+ if ($createAcr ) {
15+ # Create Azure Container Registry
16+ Write-Host " Creating Azure Container Registry..." - ForegroundColor Yellow
17+ az acr create - n $registryName - g $resourceGroupName - l $location -- admin- enabled true -- sku Basic
18+ }
1619
1720# Create kubernetes orchestrator
1821Write-Host " Creating kubernetes orchestrator..." - ForegroundColor Yellow
You can’t perform that action at this time.
0 commit comments