az elastic-san volume
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 command. Learn more about extensions.
Manage Elastic SAN Volume.
Commands
Name | Description | Type | Status |
---|---|---|---|
az elastic-san volume create |
Create a Volume. |
Extension | GA |
az elastic-san volume delete |
Delete a Volume. |
Extension | GA |
az elastic-san volume list |
List Volumes in a Volume Group. |
Extension | GA |
az elastic-san volume show |
Get a Volume. |
Extension | GA |
az elastic-san volume snapshot |
Manage volume snapshot. |
Extension | GA |
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 update |
Update a Volume. |
Extension | GA |
az elastic-san volume wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az elastic-san volume create
Create a Volume.
az elastic-san volume create --elastic-san
--name
--resource-group
--size-gib
--volume-group
[--creation-data]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
Examples
Create a Volume.
az elastic-san volume create -g "rg" -e "san_name" -v "vg_name" -n "volume_name" --size-gib 2
Create a Volume from snapshot.
az elastic-san volume create -g "rg" -e "san_name" -v "vg_name" -n "volume_name_2" --size-gib 2 --creation-data '{source-id:"snapshot_id",create-source:VolumeSnapshot}'
Required Parameters
The name of the ElasticSan.
The name of the Volume.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Volume size.
The name of the VolumeGroup.
Optional Parameters
State of the operation on the resource. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Do not wait for the long-running operation to finish.
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 elastic-san volume delete
Delete a Volume.
az elastic-san volume delete [--elastic-san]
[--ids]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--volume-group]
[--x-ms-delete-snapshots {false, true}]
[--x-ms-force-delete {false, true}]
[--yes]
Examples
Delete a Volume.
az elastic-san volume delete -g "rg" -e "san_name" -v "vg_name" -n "volume_name"
Delete a volume with its snapshot
az elastic-san volume delete -g "rg" -e "san_name" -v "vg_name" -n "volume_name" -y --x-ms-delete-snapshots true --x-ms-force-delete true
Optional Parameters
The name of the ElasticSan.
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.
The name of the Volume.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the VolumeGroup.
Optional, used to delete snapshots under volume. Allowed value are only true or false. Default value is false.
Optional, used to delete volume if active sessions present. Allowed value are only true or false. Default value is false.
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 elastic-san volume list
List Volumes in a Volume Group.
az elastic-san volume list --elastic-san
--resource-group
--volume-group
[--max-items]
[--next-token]
Examples
List Volumes in a Volume Group.
az elastic-san volume list -g "rg" -e "san_name" -v "vg_name"
Required Parameters
The name of the ElasticSan.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the VolumeGroup.
Optional Parameters
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.
Token to specify where to start paginating. This is the token value from a previously truncated response.
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 elastic-san volume show
Get a Volume.
az elastic-san volume show [--elastic-san]
[--ids]
[--name]
[--resource-group]
[--subscription]
[--volume-group]
Examples
Get a Volume.
az elastic-san volume show -g "rg" -e "san_name" -v "vg_name" -n "volume_name"
Optional Parameters
The name of the ElasticSan.
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.
The name of the Volume.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the VolumeGroup.
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 elastic-san volume update
Update a Volume.
az elastic-san volume update [--add]
[--creation-data]
[--elastic-san]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--remove]
[--resource-group]
[--set]
[--size-gib]
[--subscription]
[--volume-group]
Examples
Update a Volume.
az elastic-san volume update -g "rg" -e "san_name" -v "vg_name" -n "volume_name" --size-gib 3
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
State of the operation on the resource. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
The name of the ElasticSan.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
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.
The name of the Volume.
Do not wait for the long-running operation to finish.
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Volume size.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the VolumeGroup.
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 elastic-san volume wait
Place the CLI in a waiting state until a condition is met.
az elastic-san volume wait [--created]
[--custom]
[--deleted]
[--elastic-san]
[--exists]
[--ids]
[--interval]
[--name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
[--volume-group]
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.
The name of the ElasticSan.
Wait until the resource exists.
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.
Polling interval in seconds.
The name of the Volume.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
The name of the VolumeGroup.
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.