Skip to content

Commit 76a5d6b

Browse files
committed
more cli changes
1 parent 0d31ebf commit 76a5d6b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

articles/storage/files/storage-files-configure-s2s-vpn.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ To add a new or existing virtual network to your storage account, follow these s
9191
New-AzVirtualNetwork -Name $vnetName -ResourceGroupName $resourceGroup -Location $location -AddressPrefix $vnetAddressPrefix -Subnet $subnetConfig
9292
```
9393

94-
1. If you created a new virtual network and subnet in the previous step, then skip this step. If you have an existing virtual network you want to use, you must first create a [gateway subnet](../../vpn-gateway/vpn-gateway-about-vpn-gateway-settings.md#gwsub) on the virtual network before you can deploy a virtual network gateway.
95-
96-
If you haven't enabled public network access to the virtual network previously, the Microsoft.Storage service endpoint will need to be added to the virtual network subnet. This can take up to 15 minutes to complete, although in most cases it will complete much faster. Until this operation has completed, you won't be able to access the Azure file shares within that storage account, including via the VPN connection.
94+
1. If you created a new virtual network and subnet in the previous step, then skip this step. If you have an existing virtual network you want to use, you must first create a [gateway subnet](../../vpn-gateway/vpn-gateway-about-vpn-gateway-settings.md#gwsub) on the virtual network before you can deploy a virtual network gateway.
9795

9896
To add a gateway subnet to an existing virtual network, run the following script. Be sure to replace `<your-subscription-id>`, `<resource-group>`, and `<virtual-network-name>` with your own values. The `$subnetAddressPrefix` parameter defines the IP address block for the subnet, so replace the IP address per your requirements.
9997

@@ -150,7 +148,7 @@ To add a new or existing virtual network to your storage account, follow these s
150148
az login
151149
```
152150

153-
1. If you want to add a new virtual network and gateway subnet, run the following script. If you have an existing virtual network that you want to use, then skip this step and proceed to step 3. Be sure to replace `<your-subscription-id>`, `<storage-account-name>`, and `<resource-group>` with your own values. Replace `<virtual-network-name>` with the name of the new virtual network you want to create. The `--address-prefix` and `--subnet-prefix` parameters define the IP address blocks for the virtual network and the subnet, so replace those with your respective values. The virtual network will be created in the same region as the resource group.
151+
1. If you want to add a new virtual network and gateway subnet, run the following script. If you have an existing virtual network that you want to use, then skip this step and proceed to step 3. Be sure to replace `<your-subscription-id>`, `<storage-account-name>`, and `<resource-group>` with your own values. Replace `<virtual-network-name>` with the name of the new virtual network you want to create. The `--address-prefix` and `--subnet-prefixes` parameters define the IP address blocks for the virtual network and the subnet, so replace those with your respective values. The virtual network will be created in the same region as the resource group.
154152

155153
```azurecli-interactive
156154
# Set your subscription
@@ -162,7 +160,7 @@ To add a new or existing virtual network to your storage account, follow these s
162160
vnetName="<virtual-network-name>"
163161
# Virtual network gateway can only be created in subnet with name 'GatewaySubnet'.
164162
subnetName="GatewaySubnet"
165-
vnetAddressPrefix = "10.0.0.0/16" # Update this address per your requirements
163+
vnetAddressPrefix="10.0.0.0/16" # Update this address per your requirements
166164
subnetAddressPrefix="10.0.0.0/24" # Update this address per your requirements
167165
168166
# Create a virtual network and subnet
@@ -171,14 +169,12 @@ To add a new or existing virtual network to your storage account, follow these s
171169
--name $vnetName \
172170
--address-prefix $vnetAddressPrefix \
173171
--subnet-name $subnetName \
174-
--subnet-prefix $subnetAddressPrefix
172+
--subnet-prefixes $subnetAddressPrefix
175173
```
176174

177175
1. If you created a new virtual network and subnet in the previous step, then skip this step. If you have an existing virtual network you want to use, you must first create a [gateway subnet](../../vpn-gateway/vpn-gateway-about-vpn-gateway-settings.md#gwsub) on the virtual network before you can deploy a virtual network gateway.
178176

179-
If you haven't enabled public network access to the virtual network previously, the Microsoft.Storage service endpoint will need to be added to the virtual network subnet. This can take up to 15 minutes to complete, although in most cases it will complete much faster. Until this operation has completed, you won't be able to access the Azure file shares within that storage account, including via the VPN connection.
180-
181-
To add a gateway subnet to an existing virtual network, run the following script. Be sure to replace `<your-subscription-id>`, `<resource-group>` and `<virtual-network-name>` with your own values. The `--address-prefixes` parameter defines the IP address block for the subnet, so replace the IP address block as needed.
177+
To add a gateway subnet to an existing virtual network, run the following script. Be sure to replace `<your-subscription-id>`, `<resource-group>`, and `<virtual-network-name>` with your own values. The `--address-prefixes` parameter defines the IP address block for the subnet, so replace the IP address block as needed.
182178

183179
```azurecli-interactive
184180
# Set your subscription
@@ -206,7 +202,7 @@ To add a new or existing virtual network to your storage account, follow these s
206202
az storage account update --resource-group $resourceGroup --name $storageAccount --default-action Deny
207203
```
208204

209-
1. Enable a `Microsoft.Storage` service endpoint on the virtual network and subnet.
205+
1. Enable a `Microsoft.Storage` service endpoint on the virtual network and subnet. This can take up to 15 minutes to complete, although in most cases it will complete much faster. Until this operation has completed, you won't be able to access the Azure file shares within that storage account, including via the VPN connection.
210206

211207
```azurecli-interactive
212208
az network vnet subnet update --resource-group $resourceGroup --vnet-name $vnetName --name $subnetName --service-endpoints "Microsoft.Storage.Global"

0 commit comments

Comments
 (0)