Skip to content

Consider supporting subscription IDs in existing resource scope #7514

@captainsafia

Description

@captainsafia

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

The existing resource support that we added in 9.1 allows referencing existing resources that have been provisioned in the same or a different resource group. Although it is possible to reference existing resources in Bicep in different subscriptions, we don't support this.

Describe the solution you'd like

Expose overloads and additional APIs that allow setting the subscription ID on an existing resource. This would consist of:

  • Updates to the ExistingAzureResourceAnnotation to reference different subscription IDs
  • Update to the manifest schema to encode the subscription ID referenced for consumption by deployment tools
  • Updates to the local Bicep provisioner to support referencing resources in different subscriptions
  • Updates to the existing extension methods and configure infrastructure calls to encode the subscription ID

Additional context

No response

Metadata

Metadata

Assignees

Labels

Azure.ProvisioningIssues with the Azure.Provisioning libraries (nee Azure CDK)area-deploymentarea-integrationsIssues pertaining to Aspire Integrations packagesazureIssues associated specifically with scenarios tied to using Azure
No fields configured for Feature.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions