Skip to content

Commit 5eaea85

Browse files
Merge pull request #227462 from spelluru/relaysecurity0215
Relay - Firewall & Private endpoint UI updates
2 parents 7c00e65 + 452558d commit 5eaea85

14 files changed

+101
-103
lines changed

articles/azure-relay/ip-firewall-virtual-networks.md

Lines changed: 64 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Configure IP firewall for Azure Relay namespace
33
description: This article describes how to Use firewall rules to allow connections from specific IP addresses to Azure Relay namespaces.
44
ms.topic: article
5-
ms.date: 06/21/2022
5+
ms.date: 02/15/2023
66
---
77

88
# Configure IP firewall for an Azure Relay namespace
@@ -18,15 +18,14 @@ The IP firewall rules are applied at the namespace level. Therefore, the rules a
1818
This section shows you how to use the Azure portal to create IP firewall rules for a namespace.
1919

2020
1. Navigate to your **Relay namespace** in the [Azure portal](https://portal.azure.com).
21-
2. On the left menu, select **Networking** option. If you select the **All networks** option in the **Allow access from** section, the Relay namespace accepts connections from any IP address. This setting is equivalent to a rule that accepts the 0.0.0.0/0 IP address range.
22-
23-
![Screenshot shows the Networking page with the All networks option selected.](./media/ip-firewall/all-networks-selected.png)
21+
2. On the left menu, select **Networking**.
2422
1. To restrict access to specific networks and IP addresses, select the **Selected networks** option. In the **Firewall** section, follow these steps:
2523
1. Select **Add your client IP address** option to give your current client IP the access to the namespace.
2624
2. For **address range**, enter a specific IPv4 address or a range of IPv4 address in CIDR notation.
27-
28-
![Firewall - All networks option selected](./media/ip-firewall/selected-networks-trusted-access-disabled.png)
29-
3. Select **Save** on the toolbar to save the settings. Wait for a few minutes for the confirmation to show up on the portal notifications.
25+
3. If you want to allow Microsoft services trusted by the Azure Relay service to bypass this firewall, select **Yes** for **Allow trusted Microsoft services to bypass this firewall?**.
26+
27+
:::image type="content" source="./media/ip-firewall/selected-networks-trusted-access-disabled.png" alt-text="Screenshot showing the Public access tab of the Networking page with the Firewall enabled.":::
28+
1. Select **Save** on the toolbar to save the settings. Wait for a few minutes for the confirmation to show up on the portal notifications.
3029

3130

3231
### Use Resource Manager template
@@ -51,64 +50,72 @@ The template takes one parameter: **ipMask**, which is a single IPv4 address or
5150
5251
```json
5352
{
54-
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
53+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
5554
"contentVersion": "1.0.0.0",
5655
"parameters": {
57-
"relayNamespaceName": {
58-
"type": "string",
59-
"metadata": {
60-
"description": "Name of the Relay namespace"
56+
"namespaces_name": {
57+
"defaultValue": "contosorelay0215",
58+
"type": "String"
6159
}
62-
},
63-
"location": {
64-
"type": "string",
65-
"metadata": {
66-
"description": "Location for Namespace"
67-
}
68-
}
69-
},
70-
"variables": {
71-
"namespaceNetworkRuleSetName": "[concat(parameters('relayNamespaceName'), concat('/', 'default'))]"
7260
},
61+
"variables": {},
7362
"resources": [
74-
{
75-
"apiVersion": "2018-01-01-preview",
76-
"name": "[parameters('relayNamespaceName')]",
77-
"type": "Microsoft.Relay/namespaces",
78-
"location": "[parameters('location')]",
79-
"sku": {
80-
"name": "Standard",
81-
"tier": "Standard"
82-
},
83-
"properties": { }
84-
},
85-
{
86-
"apiVersion": "2018-01-01-preview",
87-
"name": "[variables('namespaceNetworkRuleSetName')]",
88-
"type": "Microsoft.Relay/namespaces/networkrulesets",
89-
"dependsOn": [
90-
"[concat('Microsoft.Relay/namespaces/', parameters('relayNamespaceName'))]"
91-
],
92-
"properties": {
93-
"ipRules":
94-
[
95-
{
96-
"ipMask":"10.1.1.1",
97-
"action":"Allow"
63+
{
64+
"type": "Microsoft.Relay/namespaces",
65+
"apiVersion": "2021-11-01",
66+
"name": "[parameters('namespaces_name')]",
67+
"location": "East US",
68+
"sku": {
69+
"name": "Standard",
70+
"tier": "Standard"
9871
},
99-
{
100-
"ipMask":"11.0.0.0/24",
101-
"action":"Allow"
72+
"properties": {}
73+
},
74+
{
75+
"type": "Microsoft.Relay/namespaces/authorizationrules",
76+
"apiVersion": "2021-11-01",
77+
"name": "[concat(parameters('namespaces_sprelayns0215_name'), '/RootManageSharedAccessKey')]",
78+
"location": "eastus",
79+
"dependsOn": [
80+
"[resourceId('Microsoft.Relay/namespaces', parameters('namespaces_sprelayns0215_name'))]"
81+
],
82+
"properties": {
83+
"rights": [
84+
"Listen",
85+
"Manage",
86+
"Send"
87+
]
88+
}
89+
},
90+
{
91+
"type": "Microsoft.Relay/namespaces/networkRuleSets",
92+
"apiVersion": "2021-11-01",
93+
"name": "[concat(parameters('namespaces_sprelayns0215_name'), '/default')]",
94+
"location": "East US",
95+
"dependsOn": [
96+
"[resourceId('Microsoft.Relay/namespaces', parameters('namespaces_sprelayns0215_name'))]"
97+
],
98+
"properties": {
99+
"publicNetworkAccess": "Enabled",
100+
"defaultAction": "Deny",
101+
"ipRules": [
102+
{
103+
"ipMask": "172.72.157.204",
104+
"action": "Allow"
105+
},
106+
{
107+
"ipMask": "10.1.1.1",
108+
"action": "Allow"
109+
},
110+
{
111+
"ipMask": "11.0.0.0/24",
112+
"action": "Allow"
113+
}
114+
]
102115
}
103-
],
104-
"virtualNetworkRules": [],
105-
"trustedServiceAccessEnabled": false,
106-
"defaultAction": "Deny"
107116
}
108-
}
109-
],
110-
"outputs": { }
111-
}
117+
]
118+
}
112119
```
113120
114121
To deploy the template, follow the instructions for [Azure Resource Manager](../azure-resource-manager/templates/deploy-powershell.md).
21.4 KB
Loading
15 KB
Loading
-11.6 KB
Loading
38.8 KB
Loading
-26 KB
Loading
49.7 KB
Loading
10.2 KB
Loading
4.68 KB
Loading
-15.6 KB
Loading

0 commit comments

Comments
 (0)