|
6 | 6 | "_generator": { |
7 | 7 | "name": "bicep", |
8 | 8 | "version": "0.43.8.12551", |
9 | | - "templateHash": "17072192055159536703" |
| 9 | + "templateHash": "7096588501981615349" |
10 | 10 | } |
11 | 11 | }, |
12 | 12 | "parameters": { |
|
316 | 316 | "_generator": { |
317 | 317 | "name": "bicep", |
318 | 318 | "version": "0.43.8.12551", |
319 | | - "templateHash": "12508925618781201963" |
| 319 | + "templateHash": "7007616429319982719" |
320 | 320 | } |
321 | 321 | }, |
322 | 322 | "parameters": { |
|
38112 | 38112 | "_generator": { |
38113 | 38113 | "name": "bicep", |
38114 | 38114 | "version": "0.43.8.12551", |
38115 | | - "templateHash": "2474904975964647902" |
| 38115 | + "templateHash": "16400927783398310193" |
38116 | 38116 | } |
38117 | 38117 | }, |
38118 | 38118 | "parameters": { |
|
38205 | 38205 | "searchIndexDataReader": "1407120a-92aa-4202-b7e9-c0e197c71c8f", |
38206 | 38206 | "searchServiceContributor": "7ca78c08-252a-4471-8644-bb5ff32d4ba0", |
38207 | 38207 | "storageBlobDataContributor": "ba92f5b4-2d11-453d-a403-e96b0029c9fe", |
38208 | | - "storageBlobDataReader": "2a2b9908-6ea1-4ae2-8e65-a410df84e7d1" |
| 38208 | + "storageBlobDataReader": "2a2b9908-6ea1-4ae2-8e65-a410df84e7d1", |
| 38209 | + "storageQueueDataContributor": "974c5e8b-45b9-4653-ba55-5f855dd0fb88" |
38209 | 38210 | } |
38210 | 38211 | }, |
38211 | 38212 | "resources": [ |
|
38329 | 38330 | "principalType": "ServicePrincipal" |
38330 | 38331 | } |
38331 | 38332 | }, |
| 38333 | + { |
| 38334 | + "condition": "[and(not(empty(parameters('storageAccountResourceId'))), not(empty(parameters('backendAppServicePrincipalId'))))]", |
| 38335 | + "type": "Microsoft.Authorization/roleAssignments", |
| 38336 | + "apiVersion": "2022-04-01", |
| 38337 | + "scope": "[resourceId('Microsoft.Storage/storageAccounts', last(split(parameters('storageAccountResourceId'), '/')))]", |
| 38338 | + "name": "[guid(parameters('solutionName'), resourceId('Microsoft.Storage/storageAccounts', last(split(parameters('storageAccountResourceId'), '/'))), parameters('backendAppServicePrincipalId'), variables('roleDefinitions').storageQueueDataContributor)]", |
| 38339 | + "properties": { |
| 38340 | + "principalId": "[parameters('backendAppServicePrincipalId')]", |
| 38341 | + "roleDefinitionId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', variables('roleDefinitions').storageQueueDataContributor)]", |
| 38342 | + "principalType": "ServicePrincipal" |
| 38343 | + } |
| 38344 | + }, |
| 38345 | + { |
| 38346 | + "condition": "[and(not(empty(parameters('storageAccountResourceId'))), not(empty(parameters('processorAppServicePrincipalId'))))]", |
| 38347 | + "type": "Microsoft.Authorization/roleAssignments", |
| 38348 | + "apiVersion": "2022-04-01", |
| 38349 | + "scope": "[resourceId('Microsoft.Storage/storageAccounts', last(split(parameters('storageAccountResourceId'), '/')))]", |
| 38350 | + "name": "[guid(parameters('solutionName'), resourceId('Microsoft.Storage/storageAccounts', last(split(parameters('storageAccountResourceId'), '/'))), parameters('processorAppServicePrincipalId'), variables('roleDefinitions').storageQueueDataContributor)]", |
| 38351 | + "properties": { |
| 38352 | + "principalId": "[parameters('processorAppServicePrincipalId')]", |
| 38353 | + "roleDefinitionId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', variables('roleDefinitions').storageQueueDataContributor)]", |
| 38354 | + "principalType": "ServicePrincipal" |
| 38355 | + } |
| 38356 | + }, |
38332 | 38357 | { |
38333 | 38358 | "condition": "[and(not(empty(parameters('cosmosDbAccountName'))), not(empty(parameters('backendAppServicePrincipalId'))))]", |
38334 | 38359 | "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments", |
|
38718 | 38743 | "_generator": { |
38719 | 38744 | "name": "bicep", |
38720 | 38745 | "version": "0.43.8.12551", |
38721 | | - "templateHash": "8972167897125395354" |
| 38746 | + "templateHash": "14953942141545849982" |
38722 | 38747 | } |
38723 | 38748 | }, |
38724 | 38749 | "parameters": { |
|
41298 | 41323 | "_generator": { |
41299 | 41324 | "name": "bicep", |
41300 | 41325 | "version": "0.43.8.12551", |
41301 | | - "templateHash": "14585030683408144049" |
| 41326 | + "templateHash": "17646752023219595785" |
41302 | 41327 | } |
41303 | 41328 | }, |
41304 | 41329 | "parameters": { |
|
41410 | 41435 | "searchIndexDataContributor": "8ebe5a00-799e-43f5-93ac-243d3dce84a7", |
41411 | 41436 | "searchServiceContributor": "7ca78c08-252a-4471-8644-bb5ff32d4ba0", |
41412 | 41437 | "storageBlobDataContributor": "ba92f5b4-2d11-453d-a403-e96b0029c9fe", |
41413 | | - "storageBlobDataReader": "2a2b9908-6ea1-4ae2-8e65-a410df84e7d1" |
| 41438 | + "storageBlobDataReader": "2a2b9908-6ea1-4ae2-8e65-a410df84e7d1", |
| 41439 | + "storageQueueDataContributor": "974c5e8b-45b9-4653-ba55-5f855dd0fb88" |
41414 | 41440 | } |
41415 | 41441 | }, |
41416 | 41442 | "resources": [ |
|
41534 | 41560 | "principalType": "ServicePrincipal" |
41535 | 41561 | } |
41536 | 41562 | }, |
| 41563 | + { |
| 41564 | + "condition": "[and(not(empty(parameters('storageAccountResourceId'))), not(empty(parameters('backendAppServicePrincipalId'))))]", |
| 41565 | + "type": "Microsoft.Authorization/roleAssignments", |
| 41566 | + "apiVersion": "2022-04-01", |
| 41567 | + "scope": "[resourceId('Microsoft.Storage/storageAccounts', last(split(parameters('storageAccountResourceId'), '/')))]", |
| 41568 | + "name": "[guid(parameters('solutionName'), resourceId('Microsoft.Storage/storageAccounts', last(split(parameters('storageAccountResourceId'), '/'))), parameters('backendAppServicePrincipalId'), variables('roleDefinitions').storageQueueDataContributor)]", |
| 41569 | + "properties": { |
| 41570 | + "principalId": "[parameters('backendAppServicePrincipalId')]", |
| 41571 | + "roleDefinitionId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', variables('roleDefinitions').storageQueueDataContributor)]", |
| 41572 | + "principalType": "ServicePrincipal" |
| 41573 | + } |
| 41574 | + }, |
| 41575 | + { |
| 41576 | + "condition": "[and(not(empty(parameters('storageAccountResourceId'))), not(empty(parameters('processorAppServicePrincipalId'))))]", |
| 41577 | + "type": "Microsoft.Authorization/roleAssignments", |
| 41578 | + "apiVersion": "2022-04-01", |
| 41579 | + "scope": "[resourceId('Microsoft.Storage/storageAccounts', last(split(parameters('storageAccountResourceId'), '/')))]", |
| 41580 | + "name": "[guid(parameters('solutionName'), resourceId('Microsoft.Storage/storageAccounts', last(split(parameters('storageAccountResourceId'), '/'))), parameters('processorAppServicePrincipalId'), variables('roleDefinitions').storageQueueDataContributor)]", |
| 41581 | + "properties": { |
| 41582 | + "principalId": "[parameters('processorAppServicePrincipalId')]", |
| 41583 | + "roleDefinitionId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', variables('roleDefinitions').storageQueueDataContributor)]", |
| 41584 | + "principalType": "ServicePrincipal" |
| 41585 | + } |
| 41586 | + }, |
41537 | 41587 | { |
41538 | 41588 | "condition": "[and(not(empty(parameters('cosmosDbAccountName'))), not(empty(parameters('backendAppServicePrincipalId'))))]", |
41539 | 41589 | "type": "Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments", |
|
0 commit comments