AzureResourceInfrastructure Properties
ClassProperties2 members
An Azure Provisioning
Provisioning.Infrastructure which represents the root Bicep module that is generated for an Azure resource. The Aspire
AzureProvisioningResource resource that this AzureResourceInfrastructure represents. public AzureProvisioningResource AspireResource { get; } Gets the Bicep extension declarations for this infrastructure, keyed by namespace alias.
public Dictionary<string, string> BicepExtensions { get; }Remarks
Each value is an extension reference, such as
br:mcr.microsoft.com/bicep/extensions/microsoftgraph/v1.0:1.0.0 . Inline references keep generated modules independent of a bicepconfig.json file. This experimental API works around the lack of native extension support in Azure.Provisioning. See the Azure SDK feature request. Examples
builder.AddAzureInfrastructure("graph", infrastructure =>{ infrastructure.BicepExtensions["microsoftGraphV1"] = "br:mcr.microsoft.com/bicep/extensions/microsoftgraph/v1.0:1.0.0";});