# RadiusInfrastructureOptions Properties

- Package: [Aspire.Hosting.Radius](/reference/api/csharp/aspire.hosting.radius.md)
- Type: [RadiusInfrastructureOptions](/reference/api/csharp/aspire.hosting.radius/radiusinfrastructureoptions.md)
- Kind: `Properties`
- Members: `10`

Exposes strongly-typed mutable collections of Radius construct classes for AST customization via the `ConfigureRadiusInfrastructure` callback.

<a id="applications"></a>

## Applications

- Name: `Applications`
- Modifiers: `get`
- Returns: [List<RadiusApplicationConstruct>](/reference/api/csharp/aspire.hosting.radius/radiusapplicationconstruct.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius/Publishing/RadiusInfrastructureOptions.cs#L36)

Gets the list of `Radius.Core/applications` constructs.

```csharp
public List<RadiusApplicationConstruct> Applications { get; }
```

<a id="containers"></a>

## Containers

- Name: `Containers`
- Modifiers: `get`
- Returns: [List<RadiusContainerConstruct>](/reference/api/csharp/aspire.hosting.radius/radiuscontainerconstruct.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius/Publishing/RadiusInfrastructureOptions.cs#L52)

Gets the list of `Radius.Compute/containers` workload constructs.

```csharp
public List<RadiusContainerConstruct> Containers { get; }
```

<a id="environments"></a>

## Environments

- Name: `Environments`
- Modifiers: `get`
- Returns: [List<RadiusEnvironmentConstruct>](/reference/api/csharp/aspire.hosting.radius/radiusenvironmentconstruct.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius/Publishing/RadiusInfrastructureOptions.cs#L31)

Gets the list of `Radius.Core/environments` constructs.

```csharp
public List<RadiusEnvironmentConstruct> Environments { get; }
```

<a id="legacyapplications"></a>

## LegacyApplications

- Name: `LegacyApplications`
- Modifiers: `get`
- Returns: [List<LegacyApplicationConstruct>](/reference/api/csharp/aspire.hosting.radius/legacyapplicationconstruct.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius/Publishing/RadiusInfrastructureOptions.cs#L65)

Gets the list of legacy `Applications.Core/applications` constructs paired with [RadiusInfrastructureOptions.LegacyEnvironments](/reference/api/csharp/aspire.hosting.radius/radiusinfrastructureoptions/properties.md#legacyenvironments).

```csharp
public List<LegacyApplicationConstruct> LegacyApplications { get; }
```

<a id="legacyenvironments"></a>

## LegacyEnvironments

- Name: `LegacyEnvironments`
- Modifiers: `get`
- Returns: [List<LegacyApplicationEnvironmentConstruct>](/reference/api/csharp/aspire.hosting.radius/legacyapplicationenvironmentconstruct.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius/Publishing/RadiusInfrastructureOptions.cs#L59)

Gets the list of legacy `Applications.Core/environments` constructs emitted when one or more targeted resources fall back to a legacy `Applications.*` type (e.g., Mongo, SQL Server, Dapr).

```csharp
public List<LegacyApplicationEnvironmentConstruct> LegacyEnvironments { get; }
```

<a id="parameters"></a>

## Parameters

- Name: `Parameters`
- Modifiers: `get`
- Returns: `List<ProvisioningParameter>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius/Publishing/RadiusInfrastructureOptions.cs#L72)

Gets the top-level Bicep parameters emitted for secret/parameter values referenced by container environment variables. Secret sources are declared `@secure()` so their values are supplied at deploy time via `rad deploy --parameters` rather than inlined.

```csharp
public List<ProvisioningParameter> Parameters { get; }
```

<a id="recipepacks"></a>

## RecipePacks

- Name: `RecipePacks`
- Modifiers: `get`
- Returns: [List<RadiusRecipePackConstruct>](/reference/api/csharp/aspire.hosting.radius/radiusrecipepackconstruct.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius/Publishing/RadiusInfrastructureOptions.cs#L41)

Gets the list of `Radius.Core/recipePacks` constructs.

```csharp
public List<RadiusRecipePackConstruct> RecipePacks { get; }
```

<a id="resourcetypeinstances"></a>

## ResourceTypeInstances

- Name: `ResourceTypeInstances`
- Modifiers: `get`
- Returns: [List<RadiusResourceTypeConstruct>](/reference/api/csharp/aspire.hosting.radius/radiusresourcetypeconstruct.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius/Publishing/RadiusInfrastructureOptions.cs#L47)

Gets the list of resource type instance constructs (e.g., `Radius.Data/redisCaches`, `Radius.Messaging/rabbitMQ`).

```csharp
public List<RadiusResourceTypeConstruct> ResourceTypeInstances { get; }
```

<a id="secretstores"></a>

## SecretStores

- Name: `SecretStores`
- Modifiers: `get`
- Returns: [List<RadiusSecretStoreConstruct>](/reference/api/csharp/aspire.hosting.radius/radiussecretstoreconstruct.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius/Publishing/RadiusInfrastructureOptions.cs#L78)

Gets the list of `Applications.Core/secretStores` constructs emitted for the Radius secret stores declared via `AddRadiusSecretStore` / `WithSecretStore`.

```csharp
public List<RadiusSecretStoreConstruct> SecretStores { get; }
```

<a id="securitysecrets"></a>

## SecuritySecrets

- Name: `SecuritySecrets`
- Modifiers: `get`
- Returns: [List<RadiusSecuritySecretConstruct>](/reference/api/csharp/aspire.hosting.radius/radiussecuritysecretconstruct.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Radius/Publishing/RadiusInfrastructureOptions.cs#L110)

Gets the list of `Radius.Security/secrets` constructs -- the `Radius.*` UDT secret primitive. The collection holds two kinds of entry, both of which a callback can observe:

```csharp
public List<RadiusSecuritySecretConstruct> SecuritySecrets { get; }
```

## Remarks

The first kind carries a credential a UDT backing resource consumes by resource ID (for example the RabbitMQ `properties.password`). The second is generated per container to back its credential-bearing environment variables: a variable whose value carries a secret is emitted as a `valueFrom.secretKeyRef` into a secret named after the container (for example `api-env-secret`) rather than as a literal `value`, which is what keeps the credential out of the `Deployment` spec and its rollout history. Both kinds are ordinary `Radius.Security/secrets` resources, so nothing distinguishes them structurally -- a callback that treats every entry here as backing-resource state and removes one may be removing the secret a container reads from.

Removing a container's secret, or the data key an environment variable names, is rejected with `ASPIRERADIUS084` rather than silently emitted, because the resulting artifact is accepted by Radius and only fails as a pod that never starts. Set the environment variable explicitly in the callback if the intent is to supply the value another way.

Exposed for the same reason as the other collections: `ConfigureRadiusInfrastructure` can rename a construct, and callers that rename one of these must be able to see it. The publisher repairs the consuming resource's ID reference -- and a container's `secretKeyRef`, which names the secret by resource name -- after the callbacks run, so a rename of either kind does not dangle.
