Skip to content
DocsTry Aspire
DocsTry

AzureManagedRedisResource Properties

ClassProperties9 members
Represents an Azure Managed Redis resource.
AnnotationsSection titled AnnotationsoverrideResourceAnnotationCollection
public override ResourceAnnotationCollection Annotations { get; }
This property is not available in polyglot app hosts.
ConnectionStringExpressionSection titled ConnectionStringExpressionReferenceExpression
Gets the connection string template for the manifest for the Azure Managed Redis resource.
public ReferenceExpression ConnectionStringExpression { get; }
HostNameSection titled HostNameReferenceExpression
Gets the host name for the Redis server.
public ReferenceExpression HostName { get; }
In container mode, resolves to the container's primary endpoint host and port. In Azure mode, resolves to the Azure Redis server's hostname.
IdSection titled IdBicepOutputReference
Gets the "id" output reference for the resource.
public BicepOutputReference Id { get; }
NameOutputReferenceSection titled NameOutputReferenceBicepOutputReference
Gets the "name" output reference for the resource.
public BicepOutputReference NameOutputReference { get; }
PasswordSection titled PasswordnullableReferenceExpression?
Gets the password/access key for the Redis server.
public ReferenceExpression? Password { get; }
  • When running as a container, returns the password parameter value if one exists.
  • When using access key authentication in Azure mode, returns the primary access key from KeyVault.
  • When using Entra ID authentication in Azure mode, returns an empty expression.
PortSection titled PortReferenceExpression
Gets the port for the Redis server.
public ReferenceExpression Port { get; }
In container mode, resolves to the container's primary endpoint port. In Azure mode, resolves to 10000.
UriExpressionSection titled UriExpressionReferenceExpression
Gets the connection URI expression for the Redis server.
public ReferenceExpression UriExpression { get; }
Format: redis://[:{password}@]{host}:{port}. The password segment is omitted when using Entra ID authentication in Azure mode.
UseAccessKeyAuthenticationSection titled UseAccessKeyAuthenticationbool
Gets a value indicating whether the resource uses access key authentication.
public bool UseAccessKeyAuthentication { get; }