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/azure-resource-manager/bicep/deployment-script-vnet-private-endpoint.md
+20-16Lines changed: 20 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Access a private virtual network from a Bicep deployment script
3
-
description: Learn how to run and test Bicep deployment scripts in private networks.
2
+
title: Run Bicep deployment script privately over a private endpoint
3
+
description: Learn how to run Bicep deployment script privately over a private endpoint.
4
4
ms.custom: devx-track-bicep
5
5
ms.topic: how-to
6
6
ms.date: 06/04/2024
@@ -19,25 +19,29 @@ In this setup, the ACI created by deployment script runs within a virtual networ
19
19
To run deployment scripts privately you need the following infrastructure as seen in the architecture diagram:
20
20
21
21
- Create a virtual network with two subnets:
22
-
- A subnet for the private endpoint.
22
+
- A subnet for the private endpoint.
23
23
- A subnet for the ACI, this subnet needs a `Microsoft.ContainerInstance/containerGroups` delegation.
24
-
- Create a storage account with public network access`disabled`
25
-
- Create a private endpoint configured with the `file` sub-resource on the storage account
24
+
- Create a storage account without public network access.
25
+
- Create a private endpoint within the virtual network configured with the `file` sub-resource on the storage account.
26
26
- Create a private DNS zone `privatelink.file.core.windows.net` and register the private endpoint IP address as an A record. Link the private DNS zone to the created virtual network.
27
27
- Create a user-assigned managed identity with `Storage File Data Privileged Contributor` permissions on the storage account and specify it in the `identity` property in the deployment script resource. To assign the identity, see [Identity](/azure/azure-resource-manager/bicep/deployment-script-develop#identity).
28
-
29
-
The ACI is deployed implicitly by the deployment script resource.
28
+
- The ACI resource is created automatically by the deployment script resource.
30
29
31
30
The following Bicep file configures the infrastructure required for running a deployment script privately:
32
31
33
32
```bicep
34
33
@maxLength(10) // Required maximum length, because the storage account has a maximum of 26 characters
0 commit comments