Share via


AzureEnvironmentResource Constructor

Definition

Initializes a new instance of the AzureEnvironmentResource class.

public AzureEnvironmentResource(string name, Aspire.Hosting.ApplicationModel.ParameterResource ___location, Aspire.Hosting.ApplicationModel.ParameterResource resourceGroupName, Aspire.Hosting.ApplicationModel.ParameterResource principalId);
new Aspire.Hosting.Azure.AzureEnvironmentResource : string * Aspire.Hosting.ApplicationModel.ParameterResource * Aspire.Hosting.ApplicationModel.ParameterResource * Aspire.Hosting.ApplicationModel.ParameterResource -> Aspire.Hosting.Azure.AzureEnvironmentResource
Public Sub New (name As String, ___location As ParameterResource, resourceGroupName As ParameterResource, principalId As ParameterResource)

Parameters

name
String

The name of the Azure environment resource.

___location
ParameterResource

The Azure ___location that the resources will be deployed to.

resourceGroupName
ParameterResource

The Azure resource group name that the resources will be deployed to.

principalId
ParameterResource

The Azure principal ID that will be used to deploy the resources.

Exceptions

Thrown when the name is null or empty.

Thrown when the name is invalid.

Applies to