# AzureEnvironmentResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure/AzureEnvironmentResource.cs)
- Inherits: `Resource`

Represents the root Azure deployment target for an Aspire application. Manages deployment parameters and context for Azure resources.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public sealed class AzureEnvironmentResource
    : Aspire.Hosting.ApplicationModel.Resource
{
    // ...
}
```

## Constructors

- [AzureEnvironmentResource(string, ParameterResource, ParameterResource, ParameterResource)](/reference/api/csharp/aspire.hosting.azure/azureenvironmentresource/constructors.md#constructor-string-parameterresource-parameterresource-parameterresource) -- Initializes a new instance of the [AzureEnvironmentResource](/reference/api/csharp/aspire.hosting.azure/azureenvironmentresource.md) class.

## Properties

- [Location](/reference/api/csharp/aspire.hosting.azure/azureenvironmentresource/properties.md#location) : `ParameterResource` `get; set` -- Gets or sets the Azure location that the resources will be deployed to.
- [PrincipalId](/reference/api/csharp/aspire.hosting.azure/azureenvironmentresource/properties.md#principalid) : `ParameterResource` `get; set` -- Gets or sets the Azure principal ID that will be used to deploy the resources.
- [ResourceGroupName](/reference/api/csharp/aspire.hosting.azure/azureenvironmentresource/properties.md#resourcegroupname) : `ParameterResource` `get; set` -- Gets or sets the Azure resource group name that the resources will be deployed to.

## Fields

- [PrepareResourcesStepName](/reference/api/csharp/aspire.hosting.azure/azureenvironmentresource/fields.md#prepareresourcesstepname) : `string` `static` -- The name of the step that prepares Azure resources (e.g. materializes role-assignment resources) so that downstream steps can reference them.
- [ProvisionInfrastructureStepName](/reference/api/csharp/aspire.hosting.azure/azureenvironmentresource/fields.md#provisioninfrastructurestepname) : `string` `static` -- The name of the step that provisions Azure infrastructure resources.
