CmdID / az / az disk-pool / az disk-pool iscsi-target
az disk-pool iscsi-target create
Create an iSCSI Target. Azure CLI extensions reference
1 example 9 options Its page in the Azure CLI extensions reference
Examples
Create or Update iSCSI Target
az disk-pool iscsi-target create --disk-pool-name "myDiskPool" --acl-mode "Dynamic" --luns name="lun0" managed-disk-azure-resource-id="/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vm-name_DataDisk_1" --target-iqn "iqn.2005-03.org.iscsi:server1" --name "myIscsiTarget" --resource-group "myResourceGroup"Identify--disk-pool-nameThe name of the Disk Pool.--acl-modeMode for Target connectivity.--lunsList of LUNs to be exposed through iSCSI Target.--target-iqniSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".--nameThe name of the iSCSI Target.--resource-groupName of resource group.Options
--acl-modeMode for Target connectivity.--disk-pool-nameThe name of the Disk Pool.--iscsi-target-name, --name, -nThe name of the iSCSI Target.--lunsList of LUNs to be exposed through iSCSI Target.--managed-by-extendedList of Azure resource ids that manage this resource.--managed-byAzure resource id.--resource-group, -gName of resource group.--static-aclsAccess Control List (ACL) for an iSCSI Target; defines LUN masking policy--target-iqniSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".