Skip to content

Commit

Permalink
Fix container name (radius-project#58)
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Crawfis <[email protected]>
Signed-off-by: Reshma Abdul Rahim <[email protected]>
  • Loading branch information
AaronCrawfis authored and Reshrahim committed Feb 23, 2024
1 parent f4a8a41 commit a8688d8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions azure/statestores.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ param location string = resourceGroup().location
@description('Sets this Dapr State Store as the actor state store. Only one Dapr State Store can be set as the actor state store. Defaults to false.')
param actorStateStore bool = false

@description('The name of the container to create within the Azure storage account and to reference within the Dapr component.')
var containerName = context.resource.name

resource storageAccount 'Microsoft.Storage/storageAccounts@2022-05-01' = {
name: 'recipe${uniqueString(context.resource.id, resourceGroup().id)}'
location: location
Expand All @@ -35,7 +38,7 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2022-05-01' = {
name: 'default'

resource container 'containers' = {
name: context.resource.name
name: containerName
}
}
}
Expand Down Expand Up @@ -67,7 +70,7 @@ resource daprComponent 'dapr.io/Component@v1alpha1' = {
}
{
name: 'containerName'
value: storageAccount::blob::container.name
value: containerName
}
{
name: 'actorStateStore'
Expand Down

0 comments on commit a8688d8

Please sign in to comment.