Skip to content

Commit e2762f8

Browse files
authored
Merge pull request #189 from Azure-Samples/howie/fix-storage-acct
storage account provision is broken all the sudden. Fix
2 parents c26deac + 09c2556 commit e2762f8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

azure.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
name: azd-get-started-with-ai-agents
66
metadata:
7-
template: azd-get-started-with-ai-agents@1.0.3
7+
template: azd-get-started-with-ai-agents@1.0.4
88
requiredVersions:
99
azd: ">=1.14.0"
1010

infra/core/ai/cognitiveservices.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ param appInsightConnectionName string
1313
param aoaiConnectionName string
1414
param storageAccountId string
1515
param storageAccountConnectionName string
16+
param storageAccountBlobEndpoint string
1617

1718
@allowed([ 'Enabled', 'Disabled' ])
1819
param publicNetworkAccess string = 'Enabled'
@@ -87,7 +88,7 @@ resource storageAccountConnection 'Microsoft.CognitiveServices/accounts/connecti
8788
parent: account
8889
properties: {
8990
category: 'AzureStorageAccount'
90-
target: storageAccountId
91+
target: storageAccountBlobEndpoint
9192
authType: 'AAD'
9293
isSharedToAll: true
9394
metadata: {

infra/core/host/ai-environment.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ module cognitiveServices '../ai/cognitiveservices.bicep' = {
9292
appInsightConnectionString: applicationInsights.outputs.connectionString
9393
storageAccountId: storageAccount.outputs.id
9494
storageAccountConnectionName: storageAccount.outputs.name
95+
storageAccountBlobEndpoint: storageAccount.outputs.primaryEndpoints.blob
9596
aoaiConnectionName: aoaiConnectionName
9697
}
9798
}

0 commit comments

Comments
 (0)