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/app-service/environment/networking.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: App Service Environment networking
3
3
description: App Service Environment networking details
4
4
author: madsd
5
5
ms.topic: overview
6
-
ms.date: 07/18/2024
6
+
ms.date: 08/06/2024
7
7
ms.author: madsd
8
8
---
9
9
@@ -52,10 +52,12 @@ App Service Environment has the following network information at creation:
52
52
|--------------|-------------|
53
53
| App Service Environment virtual network | The virtual network deployed into. |
54
54
| App Service Environment subnet | The subnet deployed into. |
55
-
| Domain suffix | The domain suffix that is used by the apps made. |
55
+
| Domain suffix | The default domain suffix that is used by the apps. |
56
+
| Custom domain suffix | (optional) The custom domain suffix that is used by the apps. |
56
57
| Virtual IP (VIP) | The VIP type used. The two possible values are internal and external. |
57
58
| Inbound address | The inbound address is the address at which your apps are reached. If you have an internal VIP, it's an address in your App Service Environment subnet. If the address is external, it's a public-facing address. |
58
-
| Default outbound addresses | The apps use this address, by default, when making outbound calls to the internet. |
59
+
| Worker outbound addresses | The apps use this or these addresses, when making outbound calls to the internet. |
60
+
| Platform outbound addresses | The platform uses this address, when making outbound calls to the internet. An example is pulling certificates for custom domain suffix from Key Vault if a private endpoint isn't used. |
59
61
60
62
You can find details in the **IP Addresses** portion of the portal, as shown in the following screenshot:
61
63
@@ -72,7 +74,7 @@ You can bring your own inbound address to your App Service Environment. If you c
72
74
73
75
## Ports and network restrictions
74
76
75
-
For your app to receive traffic, ensure that inbound network security group (NSG) rules allow the App Service Environment subnet to receive traffic from the required ports. In addition to any ports, you'd like to receive traffic on, you should ensure that Azure Load Balancer is able to connect to the subnet on port 80. This port is used for health checks of the internal virtual machine. You can still control port 80 traffic from the virtual network to your subnet.
77
+
For your app to receive traffic, ensure that inbound network security group (NSG) rules allow the App Service Environment subnet to receive traffic from the required ports. In addition to any ports you'd like to receive traffic on, you should ensure that Azure Load Balancer is able to connect to the subnet on port 80. This port is used for health checks of the internal virtual machine. You can still control port 80 traffic from the virtual network to your subnet.
76
78
77
79
> [!NOTE]
78
80
> Changes to NSG rules can take up to 14 days to take effect due to HTTP connection persistence. If you make a change that blocks platform/management traffic, it could take up to 14 days for the impact to be seen.
@@ -139,7 +141,7 @@ The following sections describe the DNS considerations and configuration that ap
139
141
140
142
### DNS configuration to your App Service Environment
141
143
142
-
If your App Service Environment is made with an external VIP, your apps are automatically put into public DNS. If your App Service Environment is made with an internal VIP, when you create your App Service Environment, if you select having Azure DNS private zones configured automatically, then DNS is configured in your virtual network. If you choose to configure DNS manually, you need to either use your own DNS server or configure Azure DNS private zones. To find the inbound address, go to the App Service Environment portal, and select **IP Addresses**.
144
+
If your App Service Environment is made with an external VIP, your apps are automatically put into public DNS. If your App Service Environment is made with an internal VIP, you have two options when you create your App Service Environment. If you select having Azure DNS private zones configured automatically, then DNS is configured in your virtual network. If you choose to configure DNS manually, you need to either use your own DNS server or configure Azure DNS private zones. To find the inbound address, go to the App Service Environment portal, and select **IP Addresses**.
143
145
144
146
If you want to use your own DNS server, add the following records:
Copy file name to clipboardExpand all lines: articles/azure-monitor/essentials/prometheus-metrics-overview.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,6 @@ In addition to the managed service for Prometheus, you can also use self-managed
37
37
38
38
Send metrics from self-managed Prometheus on Kubernetes clusters. For more information on remote-write to Azure Monitor workspaces for Kubernetes services, see the following articles:
39
39
40
-
-[Microsoft Entra ID authorization proxy](/azure/azure-monitor/containers/prometheus-authorization-proxy?tabs=remote-write-example)
41
40
-[Send Prometheus data from AKS to Azure Monitor by using managed identity authentication](/azure/azure-monitor/containers/prometheus-remote-write-managed-identity)
42
41
-[Send Prometheus data from AKS to Azure Monitor by using Microsoft Entra ID authentication](/azure/azure-monitor/containers/prometheus-remote-write-active-directory)
43
42
-[Send Prometheus data to Azure Monitor by using Microsoft Entra ID pod-managed identity (preview) authentication](/azure/azure-monitor/containers/prometheus-remote-write-azure-ad-pod-identity)
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/management/resource-name-rules.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -696,9 +696,8 @@ In the following tables, the term alphanumeric refers to:
696
696
> | kubernetesClusters | resource group | 2-30 | Alphanumerics, underscores, and hyphens.<br><br>Start with alphanumeric. End with alphanumeric. |
697
697
> | kubernetesClusters / agentPools | kubernetes cluster | 2-30 | Alphanumerics, underscores, and hyphens.<br><br>Start with alphanumeric. End with alphanumeric. |
698
698
> | kubernetesClusters / features | kubernetes cluster | 2-63 | Alphanumerics, underscores, and hyphens.<br><br>Start with alphanumeric. End with alphanumeric.<br><br> Only predefined values. |
699
-
> | l2Network | resource group | 2-30 | Alphanumerics, underscores, and hyphens.<br><br>Start with alphanumeric. End with alphanumeric. |
700
-
> | l3Network | resource group | 2-30 | Alphanumerics, underscores, and hyphens.<br><br>Start with alphanumeric. End with alphanumeric. |
701
-
> | l3Network | resource group | 2-30 | Alphanumerics, underscores, and hyphens.<br><br>Start with alphanumeric. End with alphanumeric. |
699
+
> | l2Networks | resource group | 2-30 | Alphanumerics, underscores, and hyphens.<br><br>Start with alphanumeric. End with alphanumeric. |
700
+
> | l3Networks | resource group | 2-30 | Alphanumerics, underscores, and hyphens.<br><br>Start with alphanumeric. End with alphanumeric. |
702
701
> | racks | resource group | 2-30 | Alphanumerics, underscores, and hyphens.<br><br>Start with alphanumeric. End with alphanumeric. |
703
702
> | registrationHubs | resource group | 2-30 | Alphanumerics, underscores, and hyphens.<br><br>Start with alphanumeric. End with alphanumeric. |
704
703
> | registrationHubs / machines | registration hub | 2-40 | Alphanumerics, underscores, and hyphens.<br><br>Start with alphanumeric. End with alphanumeric. |
In order to use custom images, you need to store them in a container registry. Azure Container Instances (ACR) is highly recommended for that. Due to its tight integration with ADE, the image can be published without allowing public anonymous pull access.
239
+
In order to use custom images, you need to store them in a container registry. Azure Container Registry (ACR) is highly recommended for that. Due to its tight integration with ADE, the image can be published without allowing public anonymous pull access.
240
240
241
241
It's also possible to store the image in a different container registry such as Docker Hub, but in that case it needs to be publicly accessible.
242
242
243
243
> [!Caution]
244
-
> Enabling anonymous (unauthenticated) pull access makes all registry content publicly available for read (pull) actions.
244
+
> Storing your container image in a registry with anonymous (unauthenticated) pull access makes it publicly accessible. Don't do that if your image contains any sensitive information. Instead, store it in Azure Container Registry (ACR) with anonymous pull access disabled.
245
245
246
-
To use a custom image stored in ACR, you need to ensure that ADE has appropriate permissions to access your image. Anonymous pull access is disabled by default in ACR.
246
+
To use a custom image stored in ACR, you need to ensure that ADE has appropriate permissions to access your image. When you create an ACR instance, it's secure by default and only allows authenticated users to gain access.
247
247
248
-
To create a registry, which can be done through the Azure CLI, the Azure portal, PowerShell commands, and more, follow one of the [quickstarts](/azure/container-registry/container-registry-get-started-azure-cli).
248
+
To create an instance of ACR, which can be done through the Azure CLI, the Azure portal, PowerShell commands, and more, follow one of the [quickstarts](/azure/container-registry/container-registry-get-started-azure-cli).
249
249
250
250
#### Use a public registry with anonymous pull
251
251
@@ -310,6 +310,7 @@ In this configuration, ADE uses the Managed Identity for the PET, whether system
310
310
311
311
> [!Tip]
312
312
> This role assignment has to be made for every project environment type. It can be automated through the Azure CLI.
313
+
313
314
When you're ready to push your image to your registry, run the following command:
#customer intent: As a developer, I want to learn how to build and utilize custom images with my environment definitions for deployment environments.
12
12
---
13
13
14
14
# Configure a container image to execute deployments
15
15
16
-
In this article, you learn how to build custom container images to deploy your environment definitions in Azure Deployment Environments (ADE).
16
+
In this article, you learn how to build custom container images to deploy your [environment definitions](configure-environment-definition.md) in Azure Deployment Environments (ADE).
17
17
18
18
An environment definition comprises at least two files: a template file, like *azuredeploy.json*, and a manifest file named *environment.yaml*. ADE uses containers to deploy environment definitions, and natively supports the Azure Resource Manager (ARM) and Bicep IaC frameworks.
19
19
20
-
The ADE extensibility model enables you to create custom container images to use with your environment definitions. By using the extensibility model, you can create your own custom container images, and store them in a container registry like DockerHub. You can then reference these images in your environment definitions to deploy your environments.
20
+
The ADE extensibility model enables you to create custom container images to use with your environment definitions. By using the extensibility model, you can create your own custom container images, and store them in a container registry like Azure Container Registry (ACR) or Docker Hub. You can then reference these images in your environment definitions to deploy your environments.
21
21
22
22
The ADE team provides a selection of images to get you started, including a core image, and an Azure Resource Manager (ARM)/Bicep image. You can access these sample images in the [Runner-Images](https://aka.ms/deployment-environments/runner-images) folder.
23
23
@@ -112,7 +112,9 @@ RUN find /scripts/ -type f -iname "*.sh" -exec chmod +x {} \;
112
112
113
113
## Make the custom image accessible to ADE
114
114
115
-
You must build your Docker image and push it to your container registry to make it available for use in ADE. You can build your image using the Docker CLI, or by using a script provided by ADE.
115
+
You must build your Docker image and push it to a container registry to make it available for use in ADE.
116
+
117
+
You can build your image using the Docker CLI, or by using a script provided by ADE.
116
118
117
119
Select the appropriate tab to learn more about each approach.
In order to use custom images, you need to set up a publicly accessible image registry with anonymous image pull enabled. This way, Azure Deployment Environments can access your custom image to execute in our container.
137
+
In order to use custom images, you need to store them in a container registry. Azure Container Registry (ACR) is highly recommended for that. Due to its tight integration with ADE, the image can be published without allowing public anonymous pull access.
138
+
139
+
It's also possible to store the image in a different container registry such as Docker Hub, but in that case it needs to be publicly accessible.
140
+
141
+
> [!Caution]
142
+
> Storing your container image in a registry with anonymous (unauthenticated) pull access makes it publicly accessible. Don't do that if your image contains any sensitive information. Instead, store it in Azure Container Registry (ACR) with anonymous pull access disabled.
143
+
144
+
To use a custom image stored in ACR, you need to ensure that ADE has appropriate permissions to access your image. When you create an ACR instance, it's secure by default and only allows authenticated users to gain access.
136
145
137
-
Azure Container Registry is an Azure offering that stores container images and similar artifacts.
146
+
To create an instance of ACR, which can be done through the Azure CLI, the Azure portal, PowerShell commands, and more, follow one of the [quickstarts](/azure/container-registry/container-registry-get-started-azure-cli).
138
147
139
-
To create a registry, which can be done through the Azure CLI, the Azure portal, PowerShell commands, and more, follow one of the [quickstarts](/azure/container-registry/container-registry-get-started-azure-cli).
148
+
#### Use a public registry with anonymous pull
140
149
141
150
To set up your registry to have anonymous image pull enabled, run the following commands in the Azure CLI:
142
151
@@ -152,6 +161,59 @@ When you're ready to push your image to your registry, run the following command
By default, access to pull or push content from an Azure Container Registry is only available to authenticated users. You can further secure access to ACR by limiting access from certain networks and assigning specific roles.
167
+
168
+
##### Limit network access
169
+
170
+
To secure network access to your ACR, you can limit access to your own networks, or disable public network access entirely. If you limit network access, you must enable the firewall exception *Allow trusted Microsoft services to access this container registry*.
171
+
172
+
To disable access from public networks:
173
+
174
+
1.[Create an ACR instance](/azure/container-registry/container-registry-get-started-azure-cli) or use an existing one.
175
+
1. In the Azure portal, go to the ACR that you want to configure.
176
+
1. On the left menu, under **Settings**, select **Networking**.
177
+
1. On the Networking page, on the **Public access** tab, under **Public network access**, select **Disabled**.
178
+
179
+
:::image type="content" source="media/how-to-configure-extensibility-generic-container-image/container-registry-network-settings.png" alt-text="Screenshot of the Azure portal, showing the ACR network settings, with Public access and Disabled highlighted.":::
180
+
181
+
1. Under **Firewall exception**, check that **Allow trusted Microsoft services to access this container registry** is selected, and then select **Save**.
182
+
183
+
:::image type="content" source="media/how-to-configure-extensibility-generic-container-image/container-registry-network-disable-public.png" alt-text="Screenshot of the ACR network settings, with Allow trusted Microsoft services to access this container registry and Save highlighted.":::
184
+
185
+
##### Assign the AcrPull role
186
+
187
+
Creating environments by using container images uses the ADE infrastructure, including projects and environment types. Each project has one or more project environment types, which need read access to the container image that defines the environment to be deployed. To access the images within your ACR securely, assign the AcrPull role to each project environment type.
188
+
189
+
To assign the AcrPull role to the Project Environment Type:
190
+
191
+
1. In the Azure portal, go to the ACR that you want to configure.
192
+
1. On the left menu, select **Access Control (IAM)**.
193
+
1. Select **Add** > **Add role assignment**.
194
+
1. Assign the following role. For detailed steps, see [Assign Azure roles using the Azure portal](../role-based-access-control/role-assignments-portal.yml).
195
+
196
+
| Setting | Value |
197
+
| --- | --- |
198
+
|**Role**| Select **AcrPull**. |
199
+
|**Assign access to**| Select **User, group, or service principal**. |
200
+
|**Members**| Enter the name of the project environment type that needs to access the image in the container. |
201
+
202
+
The project environment type displays like the following example:
203
+
204
+
:::image type="content" source="media/how-to-configure-extensibility-generic-container-image/container-registry-access-control.png" alt-text="Screenshot of the Select members pane, showing a list of project environment types with part of the name highlighted.":::
205
+
206
+
In this configuration, ADE uses the Managed Identity for the PET, whether system assigned or user assigned.
207
+
208
+
> [!Tip]
209
+
> This role assignment has to be made for every project environment type. It can be automated through the Azure CLI.
210
+
211
+
When you're ready to push your image to your registry, run the following command:
0 commit comments