Skip to content

Commit 152f1fc

Browse files
committed
make same global endpoint changes to elastic san that I did to blobs/common
1 parent 4420498 commit 152f1fc

File tree

1 file changed

+13
-86
lines changed

1 file changed

+13
-86
lines changed

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

Lines changed: 13 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: An overview of Azure Elastic SAN Preview, a service that enables yo
44
author: roygara
55
ms.service: storage
66
ms.topic: how-to
7-
ms.date: 02/22/2023
7+
ms.date: 04/11/2023
88
ms.author: rogarana
99
ms.subservice: elastic-san
1010
ms.custom: ignite-2022, devx-track-azurepowershell, devx-track-azurecli
@@ -31,7 +31,7 @@ In your virtual network, enable the Storage service endpoint on your subnet. Thi
3131
> Configuration of rules that grant access to subnets in virtual networks that are a part of a different Azure Active Directory tenant are currently only supported through PowerShell, CLI and REST APIs. These rules cannot be configured through the Azure portal, though they may be viewed in the portal.
3232
3333
# [Portal](#tab/azure-portal)
34-
34+
> |
3535
1. Navigate to your virtual network and select **Service Endpoints**.
3636
1. Select **+ Add** and for **Service** select **Microsoft.Storage**.
3737
1. Select any policies you like, and the subnet you deploy your Elastic SAN into and select **Add**.
@@ -49,102 +49,29 @@ $virtualNetwork = Get-AzVirtualNetwork -ResourceGroupName $resourceGroupName -Na
4949
5050
$subnet = Get-AzVirtualNetworkSubnetConfig -VirtualNetwork $virtualNetwork -Name $subnetName
5151
52-
$virtualNetwork | Set-AzVirtualNetworkSubnetConfig -Name $subnetName -AddressPrefix $subnet.AddressPrefix -ServiceEndpoint "Microsoft.Storage" | Set-AzVirtualNetwork
52+
$virtualNetwork | Set-AzVirtualNetworkSubnetConfig -Name $subnetName -AddressPrefix $subnet.AddressPrefix -ServiceEndpoint "Microsoft.Storage.Global" | Set-AzVirtualNetwork
5353
```
5454

5555
# [Azure CLI](#tab/azure-cli)
5656

5757
```azurecli
58-
az network vnet subnet update --resource-group "myresourcegroup" --vnet-name "myvnet" --name "mysubnet" --service-endpoints "Microsoft.Storage"
58+
az network vnet subnet update --resource-group "myresourcegroup" --vnet-name "myvnet" --name "mysubnet" --service-endpoints "Microsoft.Storage.Global"
5959
```
6060
---
6161

62-
## Available virtual network regions
63-
64-
By default, service endpoints work between virtual networks and service instances in the same Azure region. When using service endpoints with Azure Storage, service endpoints also work between virtual networks and service instances in a [paired region](../../availability-zones/cross-region-replication-azure.md). If you want to use a service endpoint to grant access to virtual networks in other regions, you must register the `AllowGlobalTagsForStorage` feature in the subscription of the virtual network. This capability is currently in public preview.
65-
66-
Service endpoints allow continuity during a regional failover. When planning for disaster recovery during a regional outage, you should create the virtual networks in the paired region in advance. Enable service endpoints for Azure Storage, with network rules granting access from these alternative virtual networks. Then apply these rules to your zone-redundant SANs.
67-
68-
## Enabling access to virtual networks in other regions Preview
69-
70-
>
71-
> [!IMPORTANT]
72-
> This capability is currently in PREVIEW.
73-
>
74-
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
75-
76-
To enable access from a virtual network that is located in another region over service endpoints, register the `AllowGlobalTagsForStorage` feature in the subscription of the virtual network.
77-
78-
> [!NOTE]
79-
> For updating the existing service endpoints to access a volume group in another region, perform an [update subnet](/cli/azure/network/vnet/subnet#az-network-vnet-subnet-update) operation on the subnet after registering the subscription with the `AllowGlobalTagsForStorage` feature. Similarly, to go back to the old configuration, perform an [update subnet](/cli/azure/network/vnet/subnet#az-network-vnet-subnet-update) operation after deregistering the subscription with the `AllowGlobalTagsForStorage` feature.
80-
81-
82-
### [Portal](#tab/azure-portal)
83-
84-
During the preview you must use either PowerShell or the Azure CLI to enable this feature.
85-
86-
### [PowerShell](#tab/azure-powershell)
87-
88-
- Open a Windows PowerShell command window.
89-
90-
- Sign in to your Azure subscription with the `Connect-AzAccount` command and follow the on-screen directions.
62+
### Available virtual network regions
9163

92-
```powershell
93-
Connect-AzAccount
94-
```
64+
Service endpoints for Azure Storage work between virtual networks and service instances in any region.
9565

96-
- If your identity is associated with more than one subscription, then set your active subscription to the subscription of the virtual network.
66+
Configuring service endpoints between virtual networks and service instances in a [paired region](../../best-practices-availability-paired-regions.md) can be an important part of your disaster recovery plan. Service endpoints allow continuity during a regional failover and access to read-only geo-redundant storage (RA-GRS) instances. Network rules that grant access from a virtual network to a storage account also grant access to any RA-GRS instance.
9767

98-
```powershell
99-
$context = Get-AzSubscription -SubscriptionId <subscription-id>
100-
Set-AzContext $context
101-
```
68+
When planning for disaster recovery during a regional outage, you should create the VNets in the paired region in advance. Enable service endpoints for Azure Storage, with network rules granting access from these alternative virtual networks. Then apply these rules to your geo-redundant storage accounts.
10269

103-
Replace the `<subscription-id>` placeholder value with the ID of your subscription.
70+
#### Azure Storage global service endpoints
10471

105-
- Register the `AllowGlobalTagsForStorage` feature by using the [Register-AzProviderFeature](/powershell/module/az.resources/register-azproviderfeature) command.
72+
Global service endpoints for Azure became generally available in April of 2023. With global service endpoints, subnets will no longer use a public IP address to communicate with any storage account. Instead, all the traffic from subnets to storage accounts will use a private IP address as a source IP. As a result, any storage accounts that use IP network rules to permit traffic from those subnets will no longer have an effect.
10673

107-
```powershell
108-
Register-AzProviderFeature -ProviderNamespace Microsoft.Network -FeatureName AllowGlobalTagsForStorage
109-
```
110-
111-
> [!NOTE]
112-
> The registration process might not complete immediately. Verify that the feature is registered before using it.
113-
114-
- To verify that the registration is complete, use the [Get-AzProviderFeature](/powershell/module/az.resources/get-azproviderfeature) command.
115-
116-
```powershell
117-
Get-AzProviderFeature -ProviderNamespace Microsoft.Network -FeatureName AllowGlobalTagsForStorage
118-
```
119-
120-
### [Azure CLI](#tab/azure-cli)
121-
122-
- Open the [Azure Cloud Shell](../../cloud-shell/overview.md), or if you've [installed](/cli/azure/install-azure-cli) the Azure CLI locally, open a command console application such as Windows PowerShell.
123-
124-
- If your identity is associated with more than one subscription, then set your active subscription to subscription of the virtual network.
125-
126-
```azurecli-interactive
127-
az account set --subscription <subscription-id>
128-
```
129-
130-
Replace the `<subscription-id>` placeholder value with the ID of your subscription.
131-
132-
- Register the `AllowGlobalTagsForStorage` feature by using the [az feature register](/cli/azure/feature#az-feature-register) command.
133-
134-
```azurecli
135-
az feature register --namespace Microsoft.Network --name AllowGlobalTagsForStorage
136-
```
137-
138-
> [!NOTE]
139-
> The registration process might not complete immediately. Make sure to verify that the feature is registered before using it.
140-
141-
- To verify that the registration is complete, use the [az feature](/cli/azure/feature#az-feature-show) command.
142-
143-
```azurecli
144-
az feature show --namespace Microsoft.Network --name AllowGlobalTagsForStorage
145-
```
146-
147-
---
74+
To use global service endpoints, it might be necessary to delete existing **Microsoft.Storage** endpoints and recreate them as global (**Microsoft.Storage.Global**).
14875

14976
## Managing virtual network rules
15077

@@ -173,7 +100,7 @@ You can manage virtual network rules for volume groups through the Azure portal,
173100
- Enable service endpoint for Azure Storage on an existing virtual network and subnet.
174101
175102
```azurepowershell
176-
Get-AzVirtualNetwork -ResourceGroupName "myresourcegroup" -Name "myvnet" | Set-AzVirtualNetworkSubnetConfig -Name "mysubnet" -AddressPrefix "10.0.0.0/24" -ServiceEndpoint "Microsoft.Storage" | Set-AzVirtualNetwork
103+
Get-AzVirtualNetwork -ResourceGroupName "myresourcegroup" -Name "myvnet" | Set-AzVirtualNetworkSubnetConfig -Name "mysubnet" -AddressPrefix "10.0.0.0/24" -ServiceEndpoint "Microsoft.Storage.Global" | Set-AzVirtualNetwork
177104
```
178105
179106
- Add a network rule for a virtual network and subnet.
@@ -212,7 +139,7 @@ You can manage virtual network rules for volume groups through the Azure portal,
212139
- Enable service endpoint for Azure Storage on an existing virtual network and subnet.
213140
214141
```azurecli
215-
az network vnet subnet update --resource-group "myresourcegroup" --vnet-name "myvnet" --name "mysubnet" --service-endpoints "Microsoft.Storage"
142+
az network vnet subnet update --resource-group "myresourcegroup" --vnet-name "myvnet" --name "mysubnet" --service-endpoints "Microsoft.Storage.Global"
216143
```
217144
218145
- Add a network rule for a virtual network and subnet.

0 commit comments

Comments
 (0)