Skip to content

Commit bfc3af3

Browse files
authored
[Microsoft.Storage] Adding support for ResourceAccessRules (#10868)
* [Microsoft.Storage] Adding support for ResourceAccessRules [Microsoft.Storage] Adding support for ResourceAccessRules * PrettierCheck failure
1 parent 57735e7 commit bfc3af3

File tree

5 files changed

+47
-2
lines changed

5 files changed

+47
-2
lines changed

specification/storage/resource-manager/Microsoft.Storage/preview/2020-08-01-preview/examples/StorageAccountGetProperties.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@
2525
"bypass": "AzureServices",
2626
"defaultAction": "Allow",
2727
"ipRules": [],
28-
"virtualNetworkRules": []
28+
"virtualNetworkRules": [],
29+
"resourceAccessRules": [
30+
{
31+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
32+
"resourceId": "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"
33+
}
34+
]
2935
},
3036
"primaryEndpoints": {
3137
"web": "https://sto8596.web.core.windows.net/",

specification/storage/resource-manager/Microsoft.Storage/preview/2020-08-01-preview/examples/StorageAccountGetPropertiesCMKEnabled.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"bypass": "AzureServices",
3131
"defaultAction": "Allow",
3232
"ipRules": [],
33-
"virtualNetworkRules": []
33+
"virtualNetworkRules": [],
34+
"resourceAccessRules": []
3435
},
3536
"primaryEndpoints": {
3637
"web": "https://sto8596.web.core.windows.net/",

specification/storage/resource-manager/Microsoft.Storage/preview/2020-08-01-preview/examples/StorageAccountList.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@
129129
"isHnsEnabled": true,
130130
"creationTime": "2017-06-01T02:42:41.7633306Z",
131131
"networkAcls": {
132+
"resourceAccessRules": [
133+
{
134+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
135+
"resourceId": "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"
136+
}
137+
],
132138
"bypass": "AzureServices",
133139
"defaultAction": "Allow",
134140
"ipRules": [],

specification/storage/resource-manager/Microsoft.Storage/preview/2020-08-01-preview/examples/StorageAccountUpdate.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
"allowBlobPublicAccess": false,
1111
"minimumTlsVersion": "TLS1_2",
1212
"networkAcls": {
13+
"resourceAccessRules": [
14+
{
15+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
16+
"resourceId": "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"
17+
}
18+
],
1319
"defaultAction": "Allow"
1420
},
1521
"routingPreference": {
@@ -46,6 +52,12 @@
4652
"minimumTlsVersion": "TLS1_2",
4753
"creationTime": "2017-06-01T02:42:41.7633306Z",
4854
"networkAcls": {
55+
"resourceAccessRules": [
56+
{
57+
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
58+
"resourceId": "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"
59+
}
60+
],
4961
"bypass": "AzureServices",
5062
"defaultAction": "Allow",
5163
"ipRules": [],

specification/storage/resource-manager/Microsoft.Storage/preview/2020-08-01-preview/storage.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,19 @@
19791979
],
19801980
"description": "The encryption settings on the storage account."
19811981
},
1982+
"ResourceAccessRule": {
1983+
"properties": {
1984+
"tenantId": {
1985+
"type": "string",
1986+
"description": "Tenant Id"
1987+
},
1988+
"resourceId": {
1989+
"type": "string",
1990+
"description": "Resource Id"
1991+
}
1992+
},
1993+
"description": "Resource Access Rule."
1994+
},
19821995
"VirtualNetworkRule": {
19831996
"properties": {
19841997
"id": {
@@ -2062,6 +2075,13 @@
20622075
"default": "AzureServices",
20632076
"description": "Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, \"Logging, Metrics\"), or None to bypass none of those traffics."
20642077
},
2078+
"resourceAccessRules": {
2079+
"type": "array",
2080+
"items": {
2081+
"description": "Resource Access Rules.",
2082+
"$ref": "#/definitions/ResourceAccessRule"
2083+
}
2084+
},
20652085
"virtualNetworkRules": {
20662086
"type": "array",
20672087
"items": {

0 commit comments

Comments
 (0)