Skip to content

Commit

Permalink
Create storage queue role for keys as well
Browse files Browse the repository at this point in the history
  • Loading branch information
tanya-borisova committed Apr 2, 2024
1 parent 0875b22 commit 3b03e4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion infra/app/function.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ module storageBlobRoleFunction '../core/security/role.bicep' = if (authType == '
}

// Storage Queue Data Contributor
module storageQueueRoleFunction '../core/security/role.bicep' = if (authType == 'rbac') {
module storageQueueRoleFunction '../core/security/role.bicep' = {
name: 'storage-queue-role-function'
params: {
principalId: function.outputs.identityPrincipalId
Expand Down
2 changes: 1 addition & 1 deletion infra/main.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ param azureOpenAIModelVersion = readEnvironmentVariable('AZURE_OPENAI_MODEL_VERS
var subscriptionId = readEnvironmentVariable('AZURE_SUBSCRIPTION_ID', 'subscription_id')
param resourceToken = toLower(uniqueString(subscriptionId, environmentName, location))

// Retrieve the Search Name from the Searc Endpoint which will be in the format
// Retrieve the Search Name from the Search Endpoint which will be in the format
// "https://uniquename.search.windows.net/" It will end in a slash. Bicep forces us to have a default, so we use
// a default that we can manipulate in the same way to reduce another condition.
// length(azureAISearchEndpoint) - 9) cuts the https:// and the trailing slash. We then take the first "part" of
Expand Down
8 changes: 3 additions & 5 deletions infra/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "4295550392354123736"
"templateHash": "16664155418767856780"
}
},
"parameters": {
Expand Down Expand Up @@ -6551,7 +6551,7 @@
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "17960689149478457729"
"templateHash": "1284439119819629713"
}
},
"parameters": {
Expand Down Expand Up @@ -7512,7 +7512,6 @@
]
},
{
"condition": "[equals(parameters('authType'), 'rbac')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"name": "storage-queue-role-function",
Expand Down Expand Up @@ -7763,7 +7762,7 @@
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "17960689149478457729"
"templateHash": "1284439119819629713"
}
},
"parameters": {
Expand Down Expand Up @@ -8724,7 +8723,6 @@
]
},
{
"condition": "[equals(parameters('authType'), 'rbac')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"name": "storage-queue-role-function",
Expand Down

0 comments on commit 3b03e4b

Please sign in to comment.