# RadiusProviderReference

- Kind: `class`
- Package: [Aspire.Hosting.Radius](/reference/api/csharp/aspire.hosting.radius.md)
- Version: `13.6.0-preview.1.26478.8`
- Namespace: `Aspire.Hosting.Radius`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Radius/Recipes/RadiusProviderReference.cs)

A reference to a scope field of a cloud provider configured on a Radius environment (via `WithAzureProvider` / `WithAwsProvider`). Assign one as a recipe parameter value to reuse provider configuration without re-declaring it, e.g. `p["region"] = RadiusProviderReference.AwsRegion`.

## Definition

```csharp
namespace Aspire.Hosting.Radius;

public sealed class RadiusProviderReference
{
    // ...
}
```

## Remarks

References are resolved at publish time against the cloud provider configured on the same environment; they do not require capturing the provider-builder instance passed to the `WithAzureProvider` / `WithAwsProvider` callback. Referencing a provider that is not configured on the environment fails at publish time with a message naming the missing provider.

## Properties

- [AwsAccountId](/reference/api/csharp/aspire.hosting.radius/radiusproviderreference/properties.md#awsaccountid) : [RadiusProviderReference](/reference/api/csharp/aspire.hosting.radius/radiusproviderreference.md) `static` `get` -- The 12-digit account ID of the environment's configured AWS provider.
- [AwsRegion](/reference/api/csharp/aspire.hosting.radius/radiusproviderreference/properties.md#awsregion) : [RadiusProviderReference](/reference/api/csharp/aspire.hosting.radius/radiusproviderreference.md) `static` `get` -- The AWS region of the environment's configured AWS provider.
- [AzureResourceGroup](/reference/api/csharp/aspire.hosting.radius/radiusproviderreference/properties.md#azureresourcegroup) : [RadiusProviderReference](/reference/api/csharp/aspire.hosting.radius/radiusproviderreference.md) `static` `get` -- The resource group of the environment's configured Azure provider.
- [AzureSubscriptionId](/reference/api/csharp/aspire.hosting.radius/radiusproviderreference/properties.md#azuresubscriptionid) : [RadiusProviderReference](/reference/api/csharp/aspire.hosting.radius/radiusproviderreference.md) `static` `get` -- The subscription ID of the environment's configured Azure provider.
