Skip to content

Commit 28b8ea2

Browse files
Merge pull request #251156 from roygara/improveConnect
Connection improvements, variable refresh
2 parents 2235dc0 + 8689163 commit 28b8ea2

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

articles/storage/elastic-san/elastic-san-connect-linux.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to connect to an Azure Elastic SAN Preview volume from a
44
author: roygara
55
ms.service: azure-elastic-san-storage
66
ms.topic: how-to
7-
ms.date: 07/11/2023
7+
ms.date: 09/12/2023
88
ms.author: rogarana
99
ms.custom: references_regions, ignite-2022, devx-track-linux
1010
---
@@ -71,6 +71,10 @@ Before you can connect to a volume, you'll need to get **StorageTargetIQN**, **S
7171
Run the following command to get these values:
7272

7373
```azurecli
74+
# Connect to Azure
75+
az login
76+
77+
# Get volume information
7478
az elastic-san volume show -e yourSanName -g yourResourceGroup -v yourVolumeGroupName -n yourVolumeName
7579
```
7680

articles/storage/elastic-san/elastic-san-connect-windows.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to connect to an Azure Elastic SAN Preview volume from a
44
author: roygara
55
ms.service: azure-elastic-san-storage
66
ms.topic: how-to
7-
ms.date: 07/11/2023
7+
ms.date: 09/12/2023
88
ms.author: rogarana
99
ms.custom: references_regions, ignite-2022
1010
---
@@ -70,11 +70,19 @@ Set-MSDSMGlobalDefaultLoadBalancePolicy -Policy RR
7070

7171
Before you can connect to a volume, you'll need to get **StorageTargetIQN**, **StorageTargetPortalHostName**, and **StorageTargetPortalPort** from your Azure Elastic SAN volume.
7272

73-
Run the following commands to get these values:
73+
Fill in the variables with your values, then run the following commands:
7474

7575
```azurepowershell
76+
# Connect to Azure
77+
Connect-AzAccount
78+
7679
# Get the target name and iSCSI portal name to connect a volume to a client
77-
$connectVolume = Get-AzElasticSanVolume -ResourceGroupName $resourceGroupName -ElasticSanName $sanName -VolumeGroupName $searchedVolumeGroup -Name $searchedVolume
80+
$resourceGroupName="yourRGName"
81+
$sanName="yourSANName"
82+
$volumeGroup="yourVolumeGroupName"
83+
$volumeName="yourVolumeName"
84+
85+
$connectVolume = Get-AzElasticSanVolume -ResourceGroupName $resourceGroupName -ElasticSanName $sanName -VolumeGroupName $volumeGroup -Name $volumeName
7886
$connectVolume.storagetargetiqn
7987
$connectVolume.storagetargetportalhostname
8088
$connectVolume.storagetargetportalport

articles/storage/elastic-san/elastic-san-create.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to deploy an Azure Elastic SAN (preview) with the Azure p
44
author: roygara
55
ms.service: azure-elastic-san-storage
66
ms.topic: how-to
7-
ms.date: 08/30/2023
7+
ms.date: 09/12/2023
88
ms.author: rogarana
99
ms.custom: references_regions, ignite-2022, devx-track-azurepowershell, devx-track-azurecli
1010
---
@@ -65,6 +65,9 @@ $VolumeName = "<VolumeName>"
6565
$Location = "<Location>"
6666
$Zone = <Zone>
6767
68+
# Connect to Azure
69+
Connect-AzAccount
70+
6871
# Create the SAN.
6972
New-AzElasticSAN -ResourceGroupName $RgName -Name $EsanName -AvailabilityZone $Zone -Location $Location -BaseSizeTib 100 -ExtendedCapacitySizeTiB 20 -SkuName Premium_LRS
7073
```
@@ -107,6 +110,10 @@ VolumeName="<VolumeName>"
107110
Location="<Location>"
108111
Zone=<Zone>
109112
113+
# Connect to Azure
114+
az login
115+
116+
# Create an Elastic SAN
110117
az elastic-san create -n $EsanName -g $RgName -l $Location --base-size-tib 100 --extended-capacity-size-tib 20 --sku "{name:Premium_LRS,tier:Premium}" --availability-zones $Zone
111118
```
112119

0 commit comments

Comments
 (0)