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
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
155
155
```
156
156
157
157
> [!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`.
159
159
>
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}}`
161
161
162
162
6. Rename the YAML to `upgrade-node-images.yml`.
163
163
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
170
170
> 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:
171
171
>
172
172
> ```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
174
174
> ```
175
175
176
176
* Add the `workflow_dispatch` trigger under the `on` key:
0 commit comments