File tree Expand file tree Collapse file tree 2 files changed +2
-22
lines changed
azure-management-docs/articles/azure-linux Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -65,13 +65,7 @@ Create an AKS cluster using the `az aks create` command with the `--os-sku` para
6565
6666``` azurecli-interactive
6767export MY_AZ_CLUSTER_NAME="myAzureLinuxCluster$RANDOM_ID"
68- clusterExists=$(az aks show --name $MY_AZ_CLUSTER_NAME --resource-group $MY_RESOURCE_GROUP_NAME --query name --output tsv 2>/dev/null)
69-
70- if [ -z "$clusterExists" ]; then
71- az aks create --name $MY_AZ_CLUSTER_NAME --resource-group $MY_RESOURCE_GROUP_NAME --os-sku AzureLinux
72- else
73- echo "AKS cluster '$MY_AZ_CLUSTER_NAME' already exists. Skipping creation."
74- fi
68+ az aks create --name $MY_AZ_CLUSTER_NAME --resource-group $MY_RESOURCE_GROUP_NAME --os-sku AzureLinux
7569```
7670
7771After a few minutes, the command completes and returns JSON-formatted information about the cluster.
Original file line number Diff line number Diff line change 783783
784784 ],
785785 "configurations" : {
786- "permissions" : [],
787- "configurableParams" : [
788- {
789- "inputType" : " textInput" ,
790- "commandKey" : " MY_RESOURCE_GROUP_NAME" ,
791- "title" : " Resource Group Name" ,
792- "defaultValue" : " "
793- },
794- {
795- "inputType" : " textInput" ,
796- "commandKey" : " MY_AZ_CLUSTER_NAME" ,
797- "title" : " AKS Cluster Name" ,
798- "defaultValue" : " "
799- }
800- ]
786+ "permissions" : []
801787 }
802788 },
803789 {
You can’t perform that action at this time.
0 commit comments