Skip to content
Docs Try Aspire

AzurePostgresFlexibleServerResource Properties

Class Properties 13 members
Represents an resource for Azure Postgres Flexible Server.
Annotations Section titled Annotations override ResourceAnnotationCollection
public override ResourceAnnotationCollection Annotations { get; }
ConnectionStringExpression Section titled ConnectionStringExpression ReferenceExpression
Gets the connection template for the manifest for the Azure Postgres Flexible Server.
public ReferenceExpression ConnectionStringExpression { get; }
Databases Section titled Databases IReadOnlyDictionary<string, string>
A dictionary where the key is the resource name and the value is the database name.
public IReadOnlyDictionary<string, string> Databases { get; }
Host Section titled Host ReferenceExpression
Gets the host for the PostgreSQL server.
public ReferenceExpression Host { get; }
In container mode, resolves to the container's primary endpoint host. In Azure mode, resolves to the Azure PostgreSQL server's fully qualified domain name.
HostName Section titled HostName ReferenceExpression
Gets the host name for the PostgreSQL server.
public ReferenceExpression HostName { get; }
In container mode, resolves to the container's primary endpoint host. In Azure mode, resolves to the Azure PostgreSQL server's fully qualified domain name.
Gets a value indicating whether the current resource represents a container. If so the actual resource is not running in Azure.
public bool IsContainer { get; }
JdbcConnectionString Section titled JdbcConnectionString ReferenceExpression
Gets the JDBC connection string for the server.
public ReferenceExpression JdbcConnectionString { get; }
Format: jdbc:postgresql://{host}:{port}?sslmode=require&authenticationPluginClassName=com.azure.identity.extensions.jdbc.postgresql.AzurePostgresqlAuthenticationPlugin.
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 for the PostgreSQL server when password authentication is enabled.
public ReferenceExpression? Password { get; }
This property returns null when using Entra ID (Azure Active Directory) authentication. When password authentication is enabled, it resolves to the password parameter value.
Port Section titled Port ReferenceExpression
Gets the port for the PostgreSQL server.
public ReferenceExpression Port { get; }
In container mode, resolves to the container's primary endpoint port. In Azure mode, resolves to 5432.
UriExpression Section titled UriExpression ReferenceExpression
Gets the connection URI expression for the PostgreSQL server.
public ReferenceExpression UriExpression { get; }
Format: postgresql://{user}:{password}@{host}:{port}.
UsePasswordAuthentication Section titled UsePasswordAuthentication bool
Gets a value indicating whether the resource uses password authentication.
public bool UsePasswordAuthentication { get; }
UserName Section titled UserName nullable ReferenceExpression?
Gets the user name for the PostgreSQL server when password authentication is enabled.
public ReferenceExpression? UserName { get; }
This property returns null when using Entra ID (Azure Active Directory) authentication. When password authentication is enabled, it resolves to the user name parameter value.