Skip to content

Permissions issue for uploading files #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ param location string
param tags string = ''

@description('Location for the OpenAI resource group')
@allowed(['canadaeast', 'eastus', 'eastus2', 'francecentral', 'switzerlandnorth', 'uksouth', 'japaneast', 'northcentralus'])
@allowed([ 'canadaeast', 'eastus', 'eastus2', 'francecentral', 'switzerlandnorth', 'uksouth', 'japaneast', 'northcentralus' ])
@metadata({
azd: {
type: 'location'
Expand All @@ -20,7 +20,7 @@ param tags string = ''
param openAiResourceGroupLocation string

@description('Name of the chat GPT model. Default: gpt-35-turbo')
@allowed(['gpt-35-turbo', 'gpt-4', 'gpt-35-turbo-16k', 'gpt-4-16k'])
@allowed([ 'gpt-35-turbo', 'gpt-4', 'gpt-35-turbo-16k', 'gpt-4-16k' ])
param chatGptModelName string = 'gpt-35-turbo'

@description('Name of the Azure Application Insights dashboard')
Expand Down Expand Up @@ -466,6 +466,16 @@ module storageRoleBackend 'core/security/role.bicep' = {
}
}

module storageRoleServiceCreator 'core/security/role.bicep' = {
scope: storageResourceGroup
name: 'storage-role-service-create'
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'
Expand Down