Skip to content

Commit 3f43e9f

Browse files
SudeshnaB1902Ajit Maruti Navasare (MINDTREE LIMITED)
authored andcommitted
Azure Relay - added missing publicNetworkAccess at NetwrokRuleSet level (Azure#20745)
* Update NetworkRuleSets.json Revised Customer wanted to disable publicNetworkAccess via ARM template. Doc is not updated. I have tested it locally and found that publicNetworkAccess property should be part of NetworkRuleSet { "type": "Microsoft.Relay/namespaces/networkRuleSets", "apiVersion": "2021-11-01", "name": "samplehyb1232434/default", "location": "East US", "dependsOn": [ "[resourceId('Microsoft.Relay/namespaces', 'samplehyb1232434')]" ], "properties": { "defaultAction": "Allow", "ipRules": [ {} ], "publicNetworkAccess": "Disabled" } } * fixed lint and prettier * updated readme for typescript * updated description Co-authored-by: Ajit Maruti Navasare (MINDTREE LIMITED) <[email protected]>
1 parent 2c43ce6 commit 3f43e9f

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

specification/relay/resource-manager/Microsoft.Relay/stable/2021-11-01/NetworkRuleSets.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,19 @@
172172
"modelAsString": true
173173
}
174174
},
175+
"publicNetworkAccess": {
176+
"type": "string",
177+
"description": "This determines if traffic is allowed over public network. By default it is enabled",
178+
"enum": [
179+
"Disabled",
180+
"Enabled",
181+
"SecuredByPerimeter"
182+
],
183+
"x-ms-enum": {
184+
"name": "PublicNetworkAccess",
185+
"modelAsString": true
186+
}
187+
},
175188
"ipRules": {
176189
"type": "array",
177190
"items": {

specification/relay/resource-manager/Microsoft.Relay/stable/2021-11-01/operations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"description": "Result of the request to list Relay operations. It contains a list of operations and a URL link to get the next set of results.",
8080
"properties": {
8181
"value": {
82-
"description": "List of Relay operations supported by the Microsoft.EventHub resource provider.",
82+
"description": "List of Relay operations supported by the Microsoft.Relay resource provider.",
8383
"type": "array",
8484
"readOnly": true,
8585
"items": {

specification/relay/resource-manager/readme.typescript.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Please also specify `--typescript-sdks-folder=<path to root folder of your azure
66
``` yaml $(typescript) && !$(profile-content)
77
typescript:
88
azure-arm: true
9-
package-name: "@azure/arm-eventhub"
10-
output-folder: "$(typescript-sdks-folder)/sdk/eventhub/arm-eventhub"
9+
package-name: "@azure/arm-relay"
10+
output-folder: "$(typescript-sdks-folder)/sdk/relay/arm-relay"
1111
generate-metadata: true
1212
```
1313
@@ -17,8 +17,8 @@ These settings apply only when `--profile-content=profile-hybrid-2020-09-01` is
1717

1818
``` yaml $(profile-content)=='profile-hybrid-2020-09-01'
1919
typescript:
20-
package-name: "@azure/arm-eventhub-profile-2020-09-01-hybrid"
21-
output-folder: "$(typescript-sdks-folder)/sdk/eventhub/arm-eventhub-profile-2020-09-01-hybrid"
20+
package-name: "@azure/arm-relay-profile-2020-09-01-hybrid"
21+
output-folder: "$(typescript-sdks-folder)/sdk/relay/arm-relay-profile-2020-09-01-hybrid"
2222
azure-arm: true
2323
generate-metadata: true
2424
batch:

0 commit comments

Comments
 (0)