Skip to content

Generated Bicep for TableService is missing required 'name' property #10328

@davidfowl

Description

@davidfowl
  • I have searched the existing issues

Describe the bug
When using the Aspire builder API as follows:

var st = builder.AddAzureStorage("storage");
var table = st.AddTableService();

The resulting Bicep file is invalid:

resource storage_tables 'Microsoft.Storage/storageAccounts/tableServices@2024-01-01' = {
  parent: storage
}

This declaration is missing the required name property. The error:

The specified "resource" declaration is missing the following required properties: "name".

Expected Behavior
The generated Bicep for tableServices includes a valid name property as required by the schema.

Steps To Reproduce

  1. Use the above code in an Aspire project.
  2. Run the publish step to generate infrastructure Bicep.

Exceptions (if any)
The specified "resource" declaration is missing the following required properties: "name".

Anything else?

  • The bug occurs specifically for TableService resources.
  • Likely a bug in Azure.Provisioning.Storage

Metadata

Metadata

Labels

area-integrationsIssues pertaining to Aspire Integrations packagesazure-storageIssues related to azure storage integration

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions