Using dash in AddDaprStateStore name renders invalid symbolic name in bicep
Expected Behavior
It would be nice if AddDaprStateStore warned when using dashes in name, or if the azd up errors could be more descriptive
Steps To Reproduce
create new aspire project
add dapr statestore in AppHost Program.cs: builder.AddDaprStateStore("azure-cosmosdb-statestore", new DaprComponentOptions { LocalPath = "dapr-config/cosmos-statestore.yaml" });
run 'azd up'
Exceptions (if any)
Packaging services (azd package)
Provisioning Azure resources (azd provision)
Provisioning Azure resources can take some time.
ERROR: error executing step command 'provision': initializing provisioning manager: failed to compile bicep template: failed running bicep build: exit code: 1, stdout: , stderr: C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\main.bicep(26,18) : Error BCP104: The referenced module has errors.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(84,15) : Error BCP068: Expected a resource type string. Specify a valid resource type of format "<types>@<apiVersion>".
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(84,15) : Error BCP029: The resource type is not valid. Specify a valid resource type of format "<types>@<apiVersion>".
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(84,101) : Error BCP018: Expected the "=" character at this location.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(85,3) : Error BCP007: This declaration type is not recognized. Specify a metadata, parameter, variable, resource, or output declaration.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(86,3) : Error BCP007: This declaration type is not recognized. Specify a metadata, parameter, variable, resource, or output declaration.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(87,3) : Error BCP007: This declaration type is not recognized. Specify a metadata, parameter, variable, resource, or output declaration.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(88,5) : Error BCP007: This declaration type is not recognized. Specify a metadata, parameter, variable, resource, or output declaration.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(89,5) : Error BCP007: This declaration type is not recognized. Specify a metadata, parameter, variable, resource, or output declaration.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(90,13) : Error BCP266: Expected a metadata identifier at this location.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(90,16) : Error BCP018: Expected the "=" character at this location.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(92,7) : Error BCP007: This declaration type is not recognized. Specify a metadata, parameter, variable, resource, or output declaration.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(93,9) : Error BCP007: This declaration type is not recognized. Specify a metadata, parameter, variable, resource, or output declaration.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(95,9) : Error BCP007: This declaration type is not recognized. Specify a metadata, parameter, variable, resource, or output declaration.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(96,1) : Error BCP007: This declaration type is not recognized. Specify a metadata, parameter, variable, resource, or output declaration.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(98,7) : Error BCP007: This declaration type is not recognized. Specify a metadata, parameter, variable, resource, or output declaration.
C:\Users\jedjo\AppData\Local\Temp\azd-infra261069995\resources.bicep(99,9) : Error BCP007: This declaration type is not recognized. Specify a metadata, parameter, variable, resource, or output declaration.
Is there an existing issue for this?
Describe the bug
Using dash in AddDaprStateStore name renders invalid symbolic name in bicep
Expected Behavior
It would be nice if AddDaprStateStore warned when using dashes in name, or if the
azd up
errors could be more descriptiveSteps To Reproduce
builder.AddDaprStateStore("azure-cosmosdb-statestore", new DaprComponentOptions { LocalPath = "dapr-config/cosmos-statestore.yaml" });
'azd up'
Exceptions (if any)
Packaging services (azd package)
.NET Version info
Anything else?
No response