# RadiusProviderReference

- Kind: `class`
- Package: [Aspire.Hosting.Radius](/reference/api/csharp/aspire.hosting.radius.md)
- Version: `17.0.0-preview.1.26567.5`
- Namespace: `Aspire.Hosting.Radius`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/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.
