LegacyApplicationEnvironmentConstruct
Classsealednet10.0
Represents a legacy
Applications.Core/environments@2023-10-01-preview resource in the Bicep AST. Used as a parent for Applications.* portable resources whose UDT counterparts are not yet GA (Redis, Mongo, RabbitMQ, Dapr state store, Dapr pubsub). namespace Aspire.Hosting.Radius.Publishing.Constructs;
public sealed class LegacyApplicationEnvironmentConstruct : Azure.Provisioning.Primitives.ProvisionableResource{ // ...}ProvisionableResource
8 members
Remarks
Section titled Remarks Legacy environments carry recipes inline under
properties.recipes (nested type → recipeName → { templateKind, templatePath }) — the legacy schema keeps the original key names. The new recipeKind / recipeLocation keys are only used by Radius.Core/recipePacks. Constructors1
Section titled ConstructorsLegacyApplicationEnvironmentConstruct(string)Initializes a new
LegacyApplicationEnvironmentConstruct with the given Bicep identifier.Properties7
Section titled PropertiesAwsScopeget; setBicepValue<string> Scope path of the AWS cloud provider, emitted as
properties.providers.aws.scope. Unset for environments that do not configure an AWS provider. AzureScopeget; setBicepValue<string> Scope path of the Azure cloud provider, emitted as
properties.providers.azure.scope. Unset for environments that do not configure an Azure provider. Required when a cloud-managed resource on this environment is materialized via a legacy Applications.* recipe so Radius can resolve the Azure provider during deployment. ComputeKindget; setBicepValue<string>Compute kind (e.g.,
kubernetes).ComputeNamespaceget; setBicepValue<string>Compute namespace for Kubernetes.
EnvironmentNameget; setBicepValue<string>The resource name.
RecipeConfigget; setBicepDictionary<object> The
recipeConfig block ( properties.recipeConfig) carrying secret-store references for private Bicep-registry auth, Terraform Git PAT auth, and envSecrets. Populated only when a secret store is consumed. Recipesget; setBicepDictionary<BicepDictionary<LegacyRecipeEntryConstruct>> Inline recipes keyed by resource type, with each value being a map of recipe name to recipe entry.