Skip to content

Commit 9605662

Browse files
authored
Update trusted-services.md
Added trustedServieAccessEnabled property to documentation
1 parent bc19eee commit 9605662

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

articles/azure-relay/includes/trusted-services.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,84 @@ The other trusted services for Azure Relay can be found below:
2626
- Azure IoT Central
2727
- Azure Healthcare Data Services
2828
- Azure Digital Twins
29+
30+
>[!NOTE]
31+
> In the **2021-11-01** version or newer of the Microsoft Relay SDK, the **"trustedServiceAccessEnabled"** property is available in the **Microsoft.Relay/namespaces/networkRuleSets** properties to enable Trusted Service Access.
32+
>
33+
> To allow trusted services in Azure Resource Manager templates, include this property in your template:
34+
> ```json
35+
> "trustedServiceAccessEnabled": "True"
36+
> ```
37+
38+
For example, based on the ARM template provided above, we can modify it to include this Network Rule Set property for the enablement of Trusted Services:
39+
40+
```json
41+
{
42+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
43+
"contentVersion": "1.0.0.0",
44+
"parameters": {
45+
"namespaces_name": {
46+
"defaultValue": "contosorelay0215",
47+
"type": "String"
48+
}
49+
},
50+
"variables": {},
51+
"resources": [
52+
{
53+
"type": "Microsoft.Relay/namespaces",
54+
"apiVersion": "2021-11-01",
55+
"name": "[parameters('namespaces_name')]",
56+
"location": "East US",
57+
"sku": {
58+
"name": "Standard",
59+
"tier": "Standard"
60+
},
61+
"properties": {}
62+
},
63+
{
64+
"type": "Microsoft.Relay/namespaces/authorizationrules",
65+
"apiVersion": "2021-11-01",
66+
"name": "[concat(parameters('namespaces_sprelayns0215_name'), '/RootManageSharedAccessKey')]",
67+
"location": "eastus",
68+
"dependsOn": [
69+
"[resourceId('Microsoft.Relay/namespaces', parameters('namespaces_sprelayns0215_name'))]"
70+
],
71+
"properties": {
72+
"rights": [
73+
"Listen",
74+
"Manage",
75+
"Send"
76+
]
77+
}
78+
},
79+
{
80+
"type": "Microsoft.Relay/namespaces/networkRuleSets",
81+
"apiVersion": "2021-11-01",
82+
"name": "[concat(parameters('namespaces_sprelayns0215_name'), '/default')]",
83+
"location": "East US",
84+
"dependsOn": [
85+
"[resourceId('Microsoft.Relay/namespaces', parameters('namespaces_sprelayns0215_name'))]"
86+
],
87+
"properties": {
88+
"trustedServiceAccessEnabled": "True",
89+
"publicNetworkAccess": "Enabled",
90+
"defaultAction": "Deny",
91+
"ipRules": [
92+
{
93+
"ipMask": "172.72.157.204",
94+
"action": "Allow"
95+
},
96+
{
97+
"ipMask": "10.1.1.1",
98+
"action": "Allow"
99+
},
100+
{
101+
"ipMask": "11.0.0.0/24",
102+
"action": "Allow"
103+
}
104+
]
105+
}
106+
}
107+
]
108+
}
109+
```

0 commit comments

Comments
 (0)