Skip to content

Commit 8fc7782

Browse files
Merge pull request #275321 from schaffererin/updateparams7
Updated command parameters with long-form formatting
2 parents 90954b6 + 44bb62d commit 8fc7782

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

articles/aks/node-upgrade-github-actions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,13 @@ This process is better than updating Linux-based kernels manually because Linux
151151
- name: Upgrade node images
152152
uses: Azure/[email protected]
153153
with:
154-
inlineScript: az aks upgrade -g {resourceGroupName} -n {aksClusterName} --node-image-only --yes
154+
inlineScript: az aks upgrade --resource-group <resourceGroupName> --name <aksClusterName> --node-image-only --yes
155155
```
156156

157157
> [!TIP]
158-
> You can decouple the `-g` and `-n` parameters from the command by creating new repository secrets like you did for `AZURE_CREDENTIALS`.
158+
> You can decouple the `--resource-group` and `--name` parameters from the command by creating new repository secrets like you did for `AZURE_CREDENTIALS`.
159159
>
160-
> If you create secrets for these parameters, you need to replace the `{resourceGroupName}` and `{aksClusterName}` placeholders with their secret counterparts. For example, `${{secrets.RESOURCE_GROUP_NAME}}` and `${{secrets.AKS_CLUSTER_NAME}}`
160+
> If you create secrets for these parameters, you need to replace the `<resourceGroupName>` and `<aksClusterName>` placeholders with their secret counterparts. For example, `${{secrets.RESOURCE_GROUP_NAME}}` and `${{secrets.AKS_CLUSTER_NAME}}`
161161

162162
6. Rename the YAML to `upgrade-node-images.yml`.
163163
7. Select **Commit changes...**, add a commit message, and then select **Commit changes**.
@@ -170,7 +170,7 @@ You can run the workflow manually in addition to the scheduled run by adding a n
170170
> If you want to upgrade a single node pool instead of all node pools on the cluster, add the `--name` parameter to the `az aks nodepool upgrade` command to specify the node pool name. For example:
171171
>
172172
> ```azurecli-interactive
173-
> az aks nodepool upgrade -g {resourceGroupName} --cluster-name {aksClusterName} --name {{nodePoolName}} --node-image-only
173+
> az aks nodepool upgrade --resource-group <resourceGroupName> --cluster-name <aksClusterName> --name <nodePoolName> --node-image-only
174174
> ```
175175

176176
* Add the `workflow_dispatch` trigger under the `on` key:

articles/aks/rdp.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This article assumes that you have an existing AKS cluster with a Windows Server
2626
If you need to reset the password, use `az aks update` to change the password.
2727

2828
```azurecli-interactive
29-
az aks update -g myResourceGroup -n myAKSCluster --windows-admin-password $WINDOWS_ADMIN_PASSWORD
29+
az aks update --resource-group myResourceGroup --name myAKSCluster --windows-admin-password $WINDOWS_ADMIN_PASSWORD
3030
```
3131

3232
If you need to reset the username and password, see [Reset Remote Desktop Services or its administrator password in a Windows VM
@@ -68,10 +68,10 @@ You need to get the subnet ID used by your Windows Server node pool and query fo
6868
* The subnet ID
6969

7070
```azurecli-interactive
71-
CLUSTER_RG=$(az aks show -g myResourceGroup -n myAKSCluster --query nodeResourceGroup -o tsv)
72-
VNET_NAME=$(az network vnet list -g $CLUSTER_RG --query [0].name -o tsv)
73-
SUBNET_NAME=$(az network vnet subnet list -g $CLUSTER_RG --vnet-name $VNET_NAME --query [0].name -o tsv)
74-
SUBNET_ID=$(az network vnet subnet show -g $CLUSTER_RG --vnet-name $VNET_NAME --name $SUBNET_NAME --query id -o tsv)
71+
CLUSTER_RG=$(az aks show --resource-group myResourceGroup --name myAKSCluster --query nodeResourceGroup -o tsv)
72+
VNET_NAME=$(az network vnet list --resource-group $CLUSTER_RG --query [0].name -o tsv)
73+
SUBNET_NAME=$(az network vnet subnet list --resource-group $CLUSTER_RG --vnet-name $VNET_NAME --query [0].name -o tsv)
74+
SUBNET_ID=$(az network vnet subnet show --resource-group $CLUSTER_RG --vnet-name $VNET_NAME --name $SUBNET_NAME --query id -o tsv)
7575
```
7676

7777
Now that you've the SUBNET_ID, run the following command in the same Azure Cloud Shell window to create the VM:
@@ -170,8 +170,8 @@ AKS node pool subnets are protected with NSGs (Network Security Groups) by defau
170170
First, get the resource group and name of the NSG to add the rule to:
171171

172172
```azurecli-interactive
173-
CLUSTER_RG=$(az aks show -g myResourceGroup -n myAKSCluster --query nodeResourceGroup -o tsv)
174-
NSG_NAME=$(az network nsg list -g $CLUSTER_RG --query [].name -o tsv)
173+
CLUSTER_RG=$(az aks show --resource-group myResourceGroup --name myAKSCluster --query nodeResourceGroup -o tsv)
174+
NSG_NAME=$(az network nsg list --resource-group $CLUSTER_RG --query [].name -o tsv)
175175
```
176176

177177
Then, create the NSG rule:
@@ -305,8 +305,8 @@ az network public-ip delete \
305305
Delete the NSG rule:
306306

307307
```azurecli-interactive
308-
CLUSTER_RG=$(az aks show -g myResourceGroup -n myAKSCluster --query nodeResourceGroup -o tsv)
309-
NSG_NAME=$(az network nsg list -g $CLUSTER_RG --query [].name -o tsv)
308+
CLUSTER_RG=$(az aks show --resource-group myResourceGroup --name myAKSCluster --query nodeResourceGroup -o tsv)
309+
NSG_NAME=$(az network nsg list --resource-group $CLUSTER_RG --query [].name -o tsv)
310310
az network nsg rule delete \
311311
--resource-group $CLUSTER_RG \
312312
--nsg-name $NSG_NAME \
@@ -362,7 +362,7 @@ Go to the node resource group of the AKS cluster. Run the command below in the A
362362
#### [Azure CLI](#tab/azure-cli)
363363

364364
```azurecli-interactive
365-
az aks show -n myAKSCluster -g myResourceGroup --query 'nodeResourceGroup' -o tsv
365+
az aks show --name myAKSCluster --resource-group myResourceGroup --query 'nodeResourceGroup' -o tsv
366366
```
367367

368368
#### [Azure PowerShell](#tab/azure-powershell)

articles/postgresql/flexible-server/tutorial-django-aks-database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Deploy your image to [Docker hub](https://docs.docker.com/get-started/part3/#cre
213213
> If you are using Azure container registry (ACR), then run the `az aks update` command to attach ACR account with the AKS cluster.
214214
>
215215
> ```azurecli-interactive
216-
> az aks update -n djangoappcluster -g django-project --attach-acr <your-acr-name>
216+
> az aks update --name djangoappcluster --resource-group django-project --attach-acr <your-acr-name>
217217
> ```
218218
219219
## Create Kubernetes manifest file

0 commit comments

Comments
 (0)