แชร์ผ่าน


az elastic-san volume snapshot

Note

This reference is part of the elastic-san extension for the Azure CLI (version 2.61.0 or higher). The extension will automatically install the first time you run an az elastic-san volume snapshot command. Learn more about extensions.

Manage volume snapshot.

Commands

Name Description Type Status
az elastic-san volume snapshot create

Create a Volume Snapshot.

Extension GA
az elastic-san volume snapshot delete

Delete a Volume Snapshot.

Extension GA
az elastic-san volume snapshot list

List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter.

Extension GA
az elastic-san volume snapshot show

Get a Volume Snapshot.

Extension GA
az elastic-san volume snapshot wait

Place the CLI in a waiting state until a condition is met.

Extension GA

az elastic-san volume snapshot create

Create a Volume Snapshot.

az elastic-san volume snapshot create --creation-data
                                      --elastic-san
                                      --name
                                      --resource-group
                                      --volume-group
                                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]

Examples

snapshot create

az elastic-san volume snapshot create -g "rg" -e "san_name" -v "vg_name" -n "snapshot_name" --creation-data '{source-id:"volume_id"}'

Required Parameters

--creation-data

Data used when creating a volume snapshot. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--elastic-san --elastic-san-name -e

The name of the ElasticSan.

--name --snapshot-name -n

The name of the volume snapshot within the given volume group.

--resource-group -g

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

--volume-group --volume-group-name -v

The name of the VolumeGroup.

Optional Parameters

--no-wait

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

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
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.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--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 elastic-san volume snapshot delete

Delete a Volume Snapshot.

az elastic-san volume snapshot delete [--elastic-san]
                                      [--ids]
                                      [--name]
                                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                      [--resource-group]
                                      [--subscription]
                                      [--volume-group]
                                      [--yes]

Examples

snapshot delete

az elastic-san volume snapshot delete -g "rg" -e "san_name" -v "vg_name" -n "snapshot_name"

Optional Parameters

--elastic-san --elastic-san-name -e

The name of the ElasticSan.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name --snapshot-name -n

The name of the volume snapshot within the given volume group.

--no-wait

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

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

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

--subscription

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

--volume-group --volume-group-name -v

The name of the VolumeGroup.

--yes -y

Do not prompt for confirmation.

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.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--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 elastic-san volume snapshot list

List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter.

az elastic-san volume snapshot list --elastic-san
                                    --resource-group
                                    --volume-group
                                    [--filter]
                                    [--max-items]
                                    [--next-token]

Examples

snapshot list

az elastic-san volume snapshot list -g "rg" -e "san_name" -v "vg_name"

Required Parameters

--elastic-san --elastic-san-name -e

The name of the ElasticSan.

--resource-group -g

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

--volume-group --volume-group-name -v

The name of the VolumeGroup.

Optional Parameters

--filter

Specify $filter='volumeName eq ' to filter on volume.

--max-items

Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.

--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

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.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--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 elastic-san volume snapshot show

Get a Volume Snapshot.

az elastic-san volume snapshot show [--elastic-san]
                                    [--ids]
                                    [--name]
                                    [--resource-group]
                                    [--subscription]
                                    [--volume-group]

Examples

snapshot show

az elastic-san volume snapshot show -g "rg" -e "san_name" -v "vg_name" -n "snapshot_name"

Optional Parameters

--elastic-san --elastic-san-name -e

The name of the ElasticSan.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name --snapshot-name -n

The name of the volume snapshot within the given volume group.

--resource-group -g

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

--subscription

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

--volume-group --volume-group-name -v

The name of the VolumeGroup.

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.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--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 elastic-san volume snapshot wait

Place the CLI in a waiting state until a condition is met.

az elastic-san volume snapshot wait [--created]
                                    [--custom]
                                    [--deleted]
                                    [--elastic-san]
                                    [--exists]
                                    [--ids]
                                    [--interval]
                                    [--name]
                                    [--resource-group]
                                    [--subscription]
                                    [--timeout]
                                    [--updated]
                                    [--volume-group]

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
--elastic-san --elastic-san-name -e

The name of the ElasticSan.

--exists

Wait until the resource exists.

Default value: False
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--interval

Polling interval in seconds.

Default value: 30
--name --snapshot-name -n

The name of the volume snapshot within the given volume group.

--resource-group -g

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

--subscription

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

--timeout

Maximum wait in seconds.

Default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

Default value: False
--volume-group --volume-group-name -v

The name of the VolumeGroup.

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.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--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.