From 58db5839755b9b203a8e941baaad01b9807d3a29 Mon Sep 17 00:00:00 2001 From: Xiaoyun Zhang Date: Tue, 31 Oct 2023 10:19:42 -0700 Subject: [PATCH] add blob content contribute role to backend (#206) ## Purpose * ... ## Does this introduce a breaking change? ``` [ ] Yes [ ] No ``` ## Pull Request Type What kind of change does this Pull Request introduce? ``` [ ] Bugfix [ ] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no api changes) [ ] Documentation content changes [ ] Other... Please describe: ``` ## How to Test * Get the code ``` git clone [repo-address] cd [repo-name] git checkout [branch-name] npm install ``` * Test the code ``` ``` ## What to Check Verify that the following are valid * ... ## Other Information --- infra/main.bicep | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/infra/main.bicep b/infra/main.bicep index a35e02ef..ab558906 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -466,6 +466,16 @@ module storageRoleBackend 'core/security/role.bicep' = { } } +module storageContribRoleBackend 'core/security/role.bicep' = { + scope: storageResourceGroup + name: 'storage-contribrole-backend' + params: { + principalId: web.outputs.SERVICE_WEB_IDENTITY_PRINCIPAL_ID + roleDefinitionId: 'ba92f5b4-2d11-453d-a403-e96b0029c9fe' + principalType: 'ServicePrincipal' + } +} + module searchRoleBackend 'core/security/role.bicep' = { scope: searchServiceResourceGroup name: 'search-role-backend'