AzureManagedRedisResource Properties
Class Properties 9 members
Represents an Azure Managed Redis resource.
public override ResourceAnnotationCollection Annotations { get; }Remarks
This property is not available in polyglot app hosts.
Gets the connection string template for the manifest for the Azure Managed Redis resource.
public ReferenceExpression ConnectionStringExpression { get; } Gets the host name for the Redis server.
public ReferenceExpression HostName { get; }Remarks
In container mode, resolves to the container's primary endpoint host and port. In Azure mode, resolves to the Azure Redis server's hostname.
Gets the "id" output reference for the resource.
public BicepOutputReference Id { get; }Remarks
This property is not available in polyglot app hosts.
Gets the "name" output reference for the resource.
public BicepOutputReference NameOutputReference { get; }Remarks
This property is not available in polyglot app hosts.
Gets the password/access key for the Redis server.
public ReferenceExpression? Password { get; }Remarks
- 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.
Gets the port for the Redis server.
public ReferenceExpression Port { get; }Remarks
In container mode, resolves to the container's primary endpoint port. In Azure mode, resolves to 10000.
Gets the connection URI expression for the Redis server.
public ReferenceExpression UriExpression { get; }Remarks
Format:
redis://[:{password}@]{host}:{port}. The password segment is omitted when using Entra ID authentication in Azure mode. Gets a value indicating whether the resource uses access key authentication.
public bool UseAccessKeyAuthentication { get; }