你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
az fleet autoupgradeprofile
Note
This reference is part of the fleet extension for the Azure CLI (version 2.61.0 or higher). The extension will automatically install the first time you run an az fleet autoupgradeprofile command. Learn more about extensions.
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Commands to manage auto upgrade profiles.
Commands
Name | Description | Type | Status |
---|---|---|---|
az fleet autoupgradeprofile create |
Creates or updates an auto upgrade profile. |
Extension | Preview |
az fleet autoupgradeprofile delete |
Deletes an auto upgrade profile. |
Extension | Preview |
az fleet autoupgradeprofile list |
Lists all auto upgrade profiles for a given fleet. |
Extension | Preview |
az fleet autoupgradeprofile show |
Shows an auto upgrade profile. |
Extension | Preview |
az fleet autoupgradeprofile wait |
Wait for an auto upgrade resource to reach a desired state. |
Extension | Preview |
az fleet autoupgradeprofile create
Command group 'fleet autoupgradeprofile' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Creates or updates an auto upgrade profile.
az fleet autoupgradeprofile create --channel {NodeImage, Rapid, Stable}
--fleet-name
--name
--resource-group
[--disabled]
[--no-wait]
[--node-image-selection {Consistent, Latest}]
[--update-strategy-id]
Examples
Create an auto upgrade profile with channel 'Rapid' and disabled by default.
az fleet autoupgradeprofile create -g MyFleetResourceGroup -f MyFleetName -n MyAutoUpgradeProfileName -c Rapid --disabled
Create an auto upgrade profile with channel 'NodeImage'.
az fleet autoupgradeprofile create -g MyFleetResourceGroup -f MyFleetName -n MyAutoUpgradeProfileName -c NodeImage
Required Parameters
The auto upgrade channel type.
Specify the fleet name.
Specify name for the auto upgrade profile.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The disabled flag ensures auto upgrade profile does not run by default.
Do not wait for the long-running operation to finish.
Node Image Selection is an option that lets you choose how your clusters' nodes are upgraded.
The resource ID of the update strategy that the auto upgrade profile should follow.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az fleet autoupgradeprofile delete
Command group 'fleet autoupgradeprofile' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Deletes an auto upgrade profile.
az fleet autoupgradeprofile delete --fleet-name
--name
--resource-group
[--no-wait]
[--yes]
Examples
Delete an auto upgrade profile.
az fleet autoupgradeprofile delete -g MyFleetResourceGroup -f MyFleetName -n MyAutoUpgradeProfileName
Required Parameters
Specify the fleet name.
Specify name for the auto upgrade profile.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Do not wait for the long-running operation to finish.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az fleet autoupgradeprofile list
Command group 'fleet autoupgradeprofile' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Lists all auto upgrade profiles for a given fleet.
az fleet autoupgradeprofile list --fleet-name
--resource-group
Examples
List auto upgrade profiles of a fleet.
az fleet autoupgradeprofile list -g MyFleetResourceGroup -f MyFleetName
Required Parameters
Specify the fleet name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az fleet autoupgradeprofile show
Command group 'fleet autoupgradeprofile' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Shows an auto upgrade profile.
az fleet autoupgradeprofile show --fleet-name
--name
--resource-group
Examples
Show the details of an auto upgrade profile.
az fleet autoupgradeprofile show -g MyFleetResourceGroup -f MyFleetName -n MyAutoUpgradeProfileName
Required Parameters
Specify the fleet name.
Specify name for the auto upgrade profile.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az fleet autoupgradeprofile wait
Command group 'fleet autoupgradeprofile' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Wait for an auto upgrade resource to reach a desired state.
If an operation on an auto upgrade profile was interrupted or was started with --no-wait
, use this command to wait for it to complete.
az fleet autoupgradeprofile wait --auto-upgrade-profile-name
--fleet-name
--resource-group
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Required Parameters
Specify name for the auto upgrade profile.
Specify the fleet name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
Polling interval in seconds.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.