Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddAzureEnvironment

Method
📦 Aspire.Hosting.Azure v17.0.0
func (DistributedApplicationBuilder) AddAzureEnvironment() AzureEnvironmentResource

Signature

methodAddAzureEnvironmentbuilder
Adds an Azure environment resource to the application model.
AddAzureEnvironment() AzureEnvironmentResource
AzureEnvironmentResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder