You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Host"Creating Azure Container Registry named $registryName"-ForegroundColor Yellow
19
25
az acr create -n $registryName-g $resourceGroupName-l $location--admin-enabled true --sku Basic
20
26
}
21
27
22
28
# Create kubernetes cluster in AKS
23
-
Write-Host"Creating Kubernetes cluster in AKS..."-ForegroundColor Yellow
24
-
az aks create --resource-group=$resourceGroupName--name=$serviceName--dns-name-prefix=$dnsNamePrefix--generate-ssh-keys --node-count=$nodeCount--node-vm-size=$nodeVMSize
29
+
Write-Host"Creating AKS $resourceGroupName/$serviceName"-ForegroundColor Yellow
30
+
az aks create --resource-group=$resourceGroupName--name=$serviceName--dns-name-prefix=$dnsNamePrefix--generate-ssh-keys --node-count=$nodeCount--node-vm-size=$nodeVMSize--vm-set-type$vmSetType
31
+
32
+
if ($enableHttpApplicationAddon) {
33
+
Write-Host"Enabling Http Applciation Routing in AKS $serviceName"-ForegroundColor Yellow
34
+
az aks enable-addons--resource-group $resourceGroupName--name $serviceName--addons http_application_routing
35
+
}
36
+
37
+
if ($enableAzureMonitoring) {
38
+
Write-Host"Enabling Azure Monitoring in AKS $serviceName"-ForegroundColor Yellow
39
+
az aks enable-addons--resource-group $resourceGroupName--name $serviceName--addons monitoring
40
+
}
25
41
26
42
# Retrieve kubernetes cluster configuration and save it under ~/.kube/config
0 commit comments