az vmware datastore disk-pool-volume

Note

This reference is part of the vmware extension for the Azure CLI (version 2.11.0 or higher). The extension will automatically install the first time you run an az vmware datastore disk-pool-volume command. Learn more about extensions.

Create a VMFS datastore in a private cloud cluster using Microsoft.StoragePool provided iSCSI target.

Commands

az vmware datastore disk-pool-volume create

Create a VMFS datastore in a private cloud cluster using Microsoft.StoragePool provided iSCSI target.

az vmware datastore disk-pool-volume create

Create a VMFS datastore in a private cloud cluster using Microsoft.StoragePool provided iSCSI target.

az vmware datastore disk-pool-volume create --cluster
                                            --lun-name
                                            --name
                                            --private-cloud
                                            --resource-group
                                            --target-id
                                            [--mount-option {ATTACH, MOUNT}]
                                            [--path]

Examples

Create a new Microsoft.StoragePool provided disk pool based iSCSI datastore.

az vmware datastore disk-pool-volume create --name iSCSIDatastore1 --resource-group MyResourceGroup --cluster Cluster-1 --private-cloud MyPrivateCloud --target-id /subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.StoragePool/diskPools/mpio-diskpool/iscsiTargets/mpio-iscsi-target --lun-name lun0

Required Parameters

--cluster

The name of the cluster.

--lun-name

Name of the LUN to be used.

--name -n

The name of the datastore.

--private-cloud -c

Name of the private cloud.

--resource-group -g

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

--target-id

Azure resource ID of the iSCSI target.

Optional Parameters

--mount-option

Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN.

accepted values: ATTACH, MOUNT
default value: MOUNT
--path

Device path.