AzureEnvironmentResourceExtensions
Class static net8.0
Provides extension methods for adding Azure environment resources to the application model.
namespace Aspire.Hosting.Azure;
public static class AzureEnvironmentResourceExtensions{ // ...}Methods3
Section titled MethodsAddAzureEnvironment(IDistributedApplicationBuilder)extensionexperimentalats exportIResourceBuilder<AzureEnvironmentResource> Adds an Azure environment resource to the application model.
WithLocation(IResourceBuilder<AzureEnvironmentResource>, IResourceBuilder<ParameterResource>)extensionexperimentalats exportIResourceBuilder<AzureEnvironmentResource> Sets the location of the Azure environment resource.
WithResourceGroup(IResourceBuilder<AzureEnvironmentResource>, IResourceBuilder<ParameterResource>)extensionexperimentalats exportIResourceBuilder<AzureEnvironmentResource> Sets the resource group name of the Azure environment resource.