You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/frontdoor/how-to-enable-private-link-storage-static-website.md
+64Lines changed: 64 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,13 @@ ms.service: azure-frontdoor
8
8
ms.topic: how-to
9
9
ms.date: 03/31/2024
10
10
ms.author: duau
11
+
zone_pivot_groups: front-door-dev-exp-portal-cli
11
12
---
12
13
13
14
# Connect Azure Front Door Premium to a storage static website with Private Link
14
15
16
+
::: zone pivot="front-door-portal"
17
+
15
18
This article guides you through how to configure Azure Front Door Premium tier to connect to your storage static website privately using the Azure Private Link service.
16
19
17
20
## Prerequisites
@@ -76,6 +79,67 @@ When creating a private endpoint connection to the storage static website's seco
76
79
77
80
Once the origin is added and the private endpoint connection is approved, you can test your private link connection to your storage static website.
78
81
82
+
::: zone-end
83
+
84
+
::: zone pivot="front-door-cli"
85
+
86
+
This article will guide you through how to configure Azure Front Door Premium tier to connect to your Storage Account privately using the Azure Private Link service with Azure CLI.
* An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
93
+
* Have a functioning Azure Front Door Premium profile, an endpoint and an origin group. For more information on how to create an Azure Front Door profile, see [Create a Front Door - CLI](create-front-door-cli.md).
94
+
95
+
## Enable Private Link to a Storage Static Website in Azure Front Door Premium
96
+
97
+
1. Run [az afd origin create](/cli/azure/afd/origin#az-afd-origin-create) to create a new Azure Front Door origin. Enter the following settings to configure the Storage Static Website you want Azure Front Door Premium to connect with privately. Notice the `private-link-location` must be in one of the [available regions](private-link.md#region-availability) and the `private-link-sub-resource-type` must be **web**.
## Approve Private Endpoint Connection from Storage Account
120
+
121
+
1. Run [az network private-endpoint-connection list](/cli/azure/network/private-endpoint-connection#az-network-private-endpoint-connection-list) to list the private endpoint connections for your storage account. Note down the 'Resource ID' of the private endpoint connection available in your storage account, in the first line of your output.
122
+
123
+
```azurecli-interactive
124
+
az network private-endpoint-connection list -g testRG -n testingafdpl --type Microsoft.Storage/storageAccounts
125
+
126
+
```
127
+
128
+
2. Run [az network private-endpoint-connection approve](/cli/azure/network/private-endpoint-connection#az-network-private-endpoint-connection-approve) to approve the private endpoint connection.
129
+
130
+
```azurecli-interactive
131
+
az network private-endpoint-connection approve --id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Storage/storageAccounts/testingafdpl/privateEndpointConnections/testingafdpl.00000000-0000-0000-0000-000000000000
132
+
133
+
```
134
+
135
+
## Create Private Endpoint Connection to Web_Secondary
136
+
137
+
When creating a private endpoint connection to the storage static website's secondary sub-resource, you need to add a **-secondary** suffix to the origin host header. For example, if your origin host header is `example.z13.web.core.windows.net`, you need to change it to `example-secondary.z13.web.core.windows.net`.
138
+
139
+
Once the origin is added and the private endpoint connection is approved, you can test your private link connection to your storage static website.
140
+
141
+
::: zone-end
142
+
79
143
## Next steps
80
144
81
145
Learn about [Private Link service with storage account](../storage/common/storage-private-endpoints.md).
0 commit comments