Skip to content
Docs Try Aspire

AzureManagedRedisResource Properties

Class Properties 8 members
Represents an Azure Managed Redis resource.
Annotations Section titled Annotations override ResourceAnnotationCollection
public override ResourceAnnotationCollection Annotations { get; }
ConnectionStringExpression Section titled ConnectionStringExpression ReferenceExpression
Gets the connection string template for the manifest for the Azure Managed Redis resource.
public ReferenceExpression ConnectionStringExpression { get; }
HostName Section titled HostName ReferenceExpression
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.
NameOutputReference Section titled NameOutputReference BicepOutputReference
Gets the "name" output reference for the resource.
public BicepOutputReference NameOutputReference { get; }
Password Section titled Password nullable ReferenceExpression?
Gets the password/access key for the Redis server.
public ReferenceExpression? Password { get; }
Port Section titled Port ReferenceExpression
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.
UriExpression Section titled UriExpression ReferenceExpression
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.
UseAccessKeyAuthentication Section titled UseAccessKeyAuthentication bool
Gets a value indicating whether the resource uses access key authentication.
public bool UseAccessKeyAuthentication { get; }