Share via


az elastic-san volume-group

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-group command. Learn more about extensions.

Manage Elastic SAN Volume Group.

Commands

Name Description Type Status
az elastic-san volume-group create

Create a Volume Group.

Extension GA
az elastic-san volume-group delete

Delete a Volume Group.

Extension GA
az elastic-san volume-group list

List Volume Groups.

Extension GA
az elastic-san volume-group show

Get a Volume Group.

Extension GA
az elastic-san volume-group update

Update a Volume Group.

Extension GA
az elastic-san volume-group wait

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

Extension GA

az elastic-san volume-group create

Create a Volume Group.

az elastic-san volume-group create --elastic-san
                                   --name
                                   --resource-group
                                   [--data-integrity-check {0, 1, f, false, n, no, t, true, y, yes}]
                                   [--encryption {EncryptionAtRestWithCustomerManagedKey, EncryptionAtRestWithPlatformKey}]
                                   [--encryption-properties]
                                   [--identity]
                                   [--network-acls]
                                   [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                   [--protocol-type {Iscsi, None}]

Examples

Create a Volume Group with PlaformManagedkey and SystemAssignedIdentity

az elastic-san volume-group create -e "san_name" -n "vg_name" -g "rg" --tags '{key1910:bbbb}' --encryption EncryptionAtRestWithPlatformKey --protocol-type Iscsi --network-acls '{virtual-network-rules:[{id:"subnet_id",action:Allow}]}' --identity '{type:SystemAssigned}'

Create a volume group with CustomerManagedKey and UserAssignedIdentity

az elastic-san volume-group create -e "san_name" -n "vg_name" -g "rg" --encryption EncryptionAtRestWithCustomerManagedKey --protocol-type Iscsi --identity '{type:UserAssigned,user-assigned-identity:"uai_id"}' --encryption-properties '{key-vault-properties:{key-name:"key_name",key-vault-uri:"vault_uri"},identity:{user-assigned-identity:"uai_id"}}'

Required Parameters

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

The name of the ElasticSan.

--name --volume-group-name -n

The name of the VolumeGroup.

--resource-group -g

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

Optional Parameters

--data-integrity-check --enforce-data-integrity-check-for-iscsi

A boolean indicating whether or not Data Integrity Check is enabled.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--encryption

Type of encryption.

Accepted values: EncryptionAtRestWithCustomerManagedKey, EncryptionAtRestWithPlatformKey
--encryption-properties

Encryption Properties describing Key Vault and Identity information Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--identity

The identity of the resource. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--network-acls

A collection of rules governing the accessibility from specific network locations. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--no-wait

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

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--protocol-type

Type of storage target.

Accepted values: Iscsi, None
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-group delete

Delete a Volume Group.

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

Examples

Delete a Volume Group.

az elastic-san volume-group delete -g "rg" -e "san_name" -n "vg_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 --volume-group-name -n

The name of the VolumeGroup.

--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.

--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-group list

List Volume Groups.

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

Examples

List Volume Groups.

az elastic-san volume-group list -g "rg" -e "san_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>.

Optional Parameters

--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-group show

Get a Volume Group.

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

Examples

Get a Volume Group.

az elastic-san volume-group show -g "rg" -e "san_name" -n "vg_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 --volume-group-name -n

The name of the VolumeGroup.

--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.

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-group update

Update a Volume Group.

az elastic-san volume-group update [--add]
                                   [--data-integrity-check {0, 1, f, false, n, no, t, true, y, yes}]
                                   [--elastic-san]
                                   [--encryption {EncryptionAtRestWithCustomerManagedKey, EncryptionAtRestWithPlatformKey}]
                                   [--encryption-properties]
                                   [--force-string {0, 1, f, false, n, no, t, true, y, yes}]
                                   [--identity]
                                   [--ids]
                                   [--name]
                                   [--network-acls]
                                   [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                   [--protocol-type {Iscsi, None}]
                                   [--remove]
                                   [--resource-group]
                                   [--set]
                                   [--subscription]

Examples

Update a Volume Group.

az elastic-san volume-group update -e "san_name" -n "vg_name" -g "rg" --protocol-type None --network-acls '{virtual-network-rules:[{id:"subnet_id_2",action:Allow}]}'

Update volume group to use CustomerManagedKey with keyvault details

az elastic-san volume-group update -e "san_name" -n "vg_name" -g "rg" --encryption EncryptionAtRestWithCustomerManagedKey --encryption-properties '{key-vault-properties:{key-name:"key_name",key-vault-uri:"vault_uri"}}'

Update volume group to use another UserAssignedIdentity

az elastic-san volume-group update -e "san_name" -n "vg_name" -g "rg" --identity '{type:UserAssigned,user-assigned-identity:"uai_2_id"}' --encryption-properties '{key-vault-properties:{key-name:"key_name",key-vault-uri:"vault_uri"},identity:{user-assigned-identity:"uai_2_id"}}'

Update volume group back to PlatformManagedKey

az elastic-san volume-group update -e "san_name" -n "vg_name" -g "rg" --encryption EncryptionAtRestWithPlatformKey

Update volume group back to SystemAssignedIdentity

az elastic-san volume-group update -e "san_name" -n "vg_name" -g "rg" --identity '{type:SystemAssigned}'

Optional Parameters

--add

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>.

--data-integrity-check --enforce-data-integrity-check-for-iscsi

A boolean indicating whether or not Data Integrity Check is enabled.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--elastic-san --elastic-san-name -e

The name of the ElasticSan.

--encryption

Type of encryption.

Accepted values: EncryptionAtRestWithCustomerManagedKey, EncryptionAtRestWithPlatformKey
--encryption-properties

Encryption Properties describing Key Vault and Identity information Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--identity

The identity of the resource. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--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 --volume-group-name -n

The name of the VolumeGroup.

--network-acls

A collection of rules governing the accessibility from specific network locations. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--no-wait

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

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--protocol-type

Type of storage target.

Accepted values: Iscsi, None
--remove

Remove a property or an element from a list. Example: --remove property.list <indexToRemove> OR --remove propertyToRemove.

--resource-group -g

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

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>.

--subscription

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

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-group wait

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

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

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 --volume-group-name -n

The name of the VolumeGroup.

--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
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.