Watch Aspire live streamsDocsTry Aspire

RadiusSecuritySecretConstruct

Classsealednet10.0
📦 Aspire.Hosting.Radius v13.6.0-preview.1.26478.8
Represents a Radius.Security/secrets resource in the Bicep AST — the Radius.* UDT replacement for Applications.Core/secretStores.
namespace Aspire.Hosting.Radius.Publishing.Constructs;
public sealed class RadiusSecuritySecretConstruct
: Azure.Provisioning.Primitives.ProvisionableResource
{
// ...
}
ProvisionableResource

Unlike the legacy secret-store type, which is scoped by exactly one of properties.environment / properties.application, this type requires RadiusSecuritySecretConstruct.EnvironmentId and treats RadiusSecuritySecretConstruct.ApplicationId as optional. data is required, so there is no "reference an existing cluster Secret" mode: every entry carries its own value.

This construct is the canonical secret primitive for the Radius.* surface, used for both kinds of secret the publisher emits: credentials a UDT backing resource consumes by resource ID (for example the RabbitMQ properties.password), and credential-bearing container environment variables, which are written here and referenced from the container's env block so the resolved value never reaches the Deployment spec.

View all constructors
View all properties