Skip to content
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

Fix container name in Dapr component #58

Merged
merged 1 commit into from
Jan 22, 2024
Merged
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
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
Loading