Skip to content

Commit

Permalink
Rebased PR & added UDTs & implementation for corsRules to all support…
Browse files Browse the repository at this point in the history
…ed children
  • Loading branch information
AlexanderSehr committed Jan 2, 2025
1 parent 749d2c3 commit 3935587
Show file tree
Hide file tree
Showing 16 changed files with 1,341 additions and 55 deletions.
276 changes: 276 additions & 0 deletions avm/res/storage/storage-account/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,29 @@ module storageAccount 'br/public:avm/res/storage/storage-account:<version>' = {
publicAccess: 'None'
}
]
corsRules: [
{
allowedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
exposedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
maxAgeInSeconds: 200
methods: [
'GET'
'PUT'
]
origins: [
'http://*.contoso.com'
'http://www.fabrikam.com'
]
}
]
deleteRetentionPolicyDays: 9
deleteRetentionPolicyEnabled: true
diagnosticSettings: [
Expand Down Expand Up @@ -543,6 +566,29 @@ module storageAccount 'br/public:avm/res/storage/storage-account:<version>' = {
enableNfsV3: true
enableSftp: true
fileServices: {
corsRules: [
{
allowedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
exposedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
maxAgeInSeconds: 200
methods: [
'GET'
'PUT'
]
origins: [
'http://*.contoso.com'
'http://www.fabrikam.com'
]
}
]
diagnosticSettings: [
{
eventHubAuthorizationRuleResourceId: '<eventHubAuthorizationRuleResourceId>'
Expand Down Expand Up @@ -757,6 +803,29 @@ module storageAccount 'br/public:avm/res/storage/storage-account:<version>' = {
}
]
queueServices: {
corsRules: [
{
allowedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
exposedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
maxAgeInSeconds: 200
methods: [
'GET'
'PUT'
]
origins: [
'http://*.contoso.com'
'http://www.fabrikam.com'
]
}
]
diagnosticSettings: [
{
eventHubAuthorizationRuleResourceId: '<eventHubAuthorizationRuleResourceId>'
Expand Down Expand Up @@ -825,6 +894,29 @@ module storageAccount 'br/public:avm/res/storage/storage-account:<version>' = {
sasExpirationPeriod: '180.00:00:00'
skuName: 'Standard_LRS'
tableServices: {
corsRules: [
{
allowedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
exposedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
maxAgeInSeconds: 200
methods: [
'GET'
'PUT'
]
origins: [
'http://*.contoso.com'
'http://www.fabrikam.com'
]
}
]
diagnosticSettings: [
{
eventHubAuthorizationRuleResourceId: '<eventHubAuthorizationRuleResourceId>'
Expand Down Expand Up @@ -949,6 +1041,29 @@ module storageAccount 'br/public:avm/res/storage/storage-account:<version>' = {
"publicAccess": "None"
}
],
"corsRules": [
{
"allowedHeaders": [
"x-ms-meta-data",
"x-ms-meta-source-path",
"x-ms-meta-target-path"
],
"exposedHeaders": [
"x-ms-meta-data",
"x-ms-meta-source-path",
"x-ms-meta-target-path"
],
"maxAgeInSeconds": 200,
"methods": [
"GET",
"PUT"
],
"origins": [
"http://*.contoso.com",
"http://www.fabrikam.com"
]
}
],
"deleteRetentionPolicyDays": 9,
"deleteRetentionPolicyEnabled": true,
"diagnosticSettings": [
Expand Down Expand Up @@ -995,6 +1110,29 @@ module storageAccount 'br/public:avm/res/storage/storage-account:<version>' = {
},
"fileServices": {
"value": {
"corsRules": [
{
"allowedHeaders": [
"x-ms-meta-data",
"x-ms-meta-source-path",
"x-ms-meta-target-path"
],
"exposedHeaders": [
"x-ms-meta-data",
"x-ms-meta-source-path",
"x-ms-meta-target-path"
],
"maxAgeInSeconds": 200,
"methods": [
"GET",
"PUT"
],
"origins": [
"http://*.contoso.com",
"http://www.fabrikam.com"
]
}
],
"diagnosticSettings": [
{
"eventHubAuthorizationRuleResourceId": "<eventHubAuthorizationRuleResourceId>",
Expand Down Expand Up @@ -1227,6 +1365,29 @@ module storageAccount 'br/public:avm/res/storage/storage-account:<version>' = {
},
"queueServices": {
"value": {
"corsRules": [
{
"allowedHeaders": [
"x-ms-meta-data",
"x-ms-meta-source-path",
"x-ms-meta-target-path"
],
"exposedHeaders": [
"x-ms-meta-data",
"x-ms-meta-source-path",
"x-ms-meta-target-path"
],
"maxAgeInSeconds": 200,
"methods": [
"GET",
"PUT"
],
"origins": [
"http://*.contoso.com",
"http://www.fabrikam.com"
]
}
],
"diagnosticSettings": [
{
"eventHubAuthorizationRuleResourceId": "<eventHubAuthorizationRuleResourceId>",
Expand Down Expand Up @@ -1305,6 +1466,29 @@ module storageAccount 'br/public:avm/res/storage/storage-account:<version>' = {
},
"tableServices": {
"value": {
"corsRules": [
{
"allowedHeaders": [
"x-ms-meta-data",
"x-ms-meta-source-path",
"x-ms-meta-target-path"
],
"exposedHeaders": [
"x-ms-meta-data",
"x-ms-meta-source-path",
"x-ms-meta-target-path"
],
"maxAgeInSeconds": 200,
"methods": [
"GET",
"PUT"
],
"origins": [
"http://*.contoso.com",
"http://www.fabrikam.com"
]
}
],
"diagnosticSettings": [
{
"eventHubAuthorizationRuleResourceId": "<eventHubAuthorizationRuleResourceId>",
Expand Down Expand Up @@ -1425,6 +1609,29 @@ param blobServices = {
publicAccess: 'None'
}
]
corsRules: [
{
allowedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
exposedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
maxAgeInSeconds: 200
methods: [
'GET'
'PUT'
]
origins: [
'http://*.contoso.com'
'http://www.fabrikam.com'
]
}
]
deleteRetentionPolicyDays: 9
deleteRetentionPolicyEnabled: true
diagnosticSettings: [
Expand Down Expand Up @@ -1461,6 +1668,29 @@ param enableHierarchicalNamespace = true
enableNfsV3: true
param enableSftp = true
param fileServices = {
corsRules: [
{
allowedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
exposedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
maxAgeInSeconds: 200
methods: [
'GET'
'PUT'
]
origins: [
'http://*.contoso.com'
'http://www.fabrikam.com'
]
}
]
diagnosticSettings: [
{
eventHubAuthorizationRuleResourceId: '<eventHubAuthorizationRuleResourceId>'
Expand Down Expand Up @@ -1675,6 +1905,29 @@ param privateEndpoints = [
}
]
param queueServices = {
corsRules: [
{
allowedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
exposedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
maxAgeInSeconds: 200
methods: [
'GET'
'PUT'
]
origins: [
'http://*.contoso.com'
'http://www.fabrikam.com'
]
}
]
diagnosticSettings: [
{
eventHubAuthorizationRuleResourceId: '<eventHubAuthorizationRuleResourceId>'
Expand Down Expand Up @@ -1743,6 +1996,29 @@ param roleAssignments = [
param sasExpirationPeriod = '180.00:00:00'
param skuName = 'Standard_LRS'
param tableServices = {
corsRules: [
{
allowedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
exposedHeaders: [
'x-ms-meta-data'
'x-ms-meta-source-path'
'x-ms-meta-target-path'
]
maxAgeInSeconds: 200
methods: [
'GET'
'PUT'
]
origins: [
'http://*.contoso.com'
'http://www.fabrikam.com'
]
}
]
diagnosticSettings: [
{
eventHubAuthorizationRuleResourceId: '<eventHubAuthorizationRuleResourceId>'
Expand Down
Loading

0 comments on commit 3935587

Please sign in to comment.