az fleet

Note

This reference is part of the fleet extension for the Azure CLI (version 2.48.0 or higher). The extension will automatically install the first time you run an az fleet command. Learn more about extensions.

Commands to manage fleet.

Commands

az fleet create

Creates or updates a Fleet.

az fleet delete

Deletes a Fleet.

az fleet get-credentials

Lists the user credentials of a Fleet.

az fleet list

Lists fleets in the specified subscription and resource group.

az fleet member

Commands to manage a fleet member.

az fleet member create

Creates or updates a fleet member.

az fleet member delete

Deletes a fleet member.

az fleet member list

Lists the members of a fleet.

az fleet member show

Gets a Fleet member.

az fleet member update

Update a fleet member.

az fleet member wait

Wait for a fleet member resouce to reach a desired state.

az fleet show

Gets a Fleet.

az fleet update

Patches a fleet resource.

az fleet updaterun

Commands to manage a fleet update run.

az fleet updaterun create

Creates or updates a fleet update run.

az fleet updaterun delete

Deletes a fleet update run.

az fleet updaterun list

Lists the update runs of a fleet.

az fleet updaterun show

Shows a fleet update run.

az fleet updaterun start

Starts a fleet update run.

az fleet updaterun stop

Stops a fleet update run.

az fleet wait

Wait for a fleet resouce to reach a desired state.

az fleet create

Creates or updates a Fleet.

az fleet create --name
                --resource-group
                [--dns-name-prefix]
                [--location]
                [--no-wait]
                [--tags]

Required Parameters

--name -n

Specify the fleet name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--dns-name-prefix -p

Prefix for hostnames that are created. If not specified, generate a hostname using the managed cluster and resource group names.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--no-wait

Do not wait for the long-running operation to finish.

default value: False
--tags

The tags of the managed cluster. The managed cluster instance and all resources managed by the cloud provider will be tagged.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az fleet delete

Deletes a Fleet.

az fleet delete --name
                --resource-group
                [--no-wait]

Required Parameters

--name -n

Specify the fleet name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az fleet get-credentials

Lists the user credentials of a Fleet.

az fleet get-credentials --name
                         --resource-group
                         [--context]
                         [--file]
                         [--overwrite-existing]

Required Parameters

--name -n

Specify the fleet name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--context

If specified, overwrite the default context name.

--file -f

Kubernetes configuration file to update. Use "-" to print YAML to stdout instead.

default value: ~\.kube\config
--overwrite-existing

Overwrite any existing cluster entry with the same name.

default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az fleet list

Lists fleets in the specified subscription and resource group.

az fleet list [--resource-group]

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az fleet show

Gets a Fleet.

az fleet show --name
              --resource-group

Required Parameters

--name -n

Specify the fleet name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az fleet update

Patches a fleet resource.

az fleet update --name
                --resource-group
                [--tags]

Required Parameters

--name -n

Specify the fleet name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--tags

The tags of the managed cluster. The managed cluster instance and all resources managed by the cloud provider will be tagged.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az fleet wait

Wait for a fleet resouce to reach a desired state.

If an operation on fleet was interrupted or was started with --no-wait, use this command to wait for it to complete.

az fleet wait --fleet-name
              --resource-group
              [--created]
              [--custom]
              [--deleted]
              [--exists]
              [--interval]
              [--timeout]
              [--updated]

Required Parameters

--fleet-name

The name of the Fleet resource. Required.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

default value: False
--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

default value: False
--exists

Wait until the resource exists.

default value: False
--interval

Polling interval in seconds.

default value: 30
--timeout

Maximum wait in seconds.

default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.