Skip to content
DocsTry Aspire
DocsTry

AzurePostgresFlexibleServerResource Properties

ClassProperties14 members
Represents an resource for Azure Postgres Flexible Server.
AnnotationsSection titled AnnotationsoverrideResourceAnnotationCollection
public override ResourceAnnotationCollection Annotations { get; }
ConnectionStringExpressionSection titled ConnectionStringExpressionReferenceExpression
Gets the connection template for the manifest for the Azure Postgres Flexible Server.
public ReferenceExpression ConnectionStringExpression { get; }
DatabasesSection titled DatabasesIReadOnlyDictionary<string, string>
A dictionary where the key is the resource name and the value is the database name.
public IReadOnlyDictionary<string, string> Databases { get; }
HostSection titled HostReferenceExpression
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.
HostNameSection titled HostNameReferenceExpression
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.
IdSection titled IdBicepOutputReference
Gets the "id" output reference for the resource.
public BicepOutputReference Id { get; }
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; }
JdbcConnectionStringSection titled JdbcConnectionStringReferenceExpression
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.
NameOutputReferenceSection titled NameOutputReferenceBicepOutputReference
Gets the "name" output reference for the resource.
public BicepOutputReference NameOutputReference { get; }
PasswordSection titled PasswordnullableReferenceExpression?
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.
PortSection titled PortReferenceExpression
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.
UriExpressionSection titled UriExpressionReferenceExpression
Gets the connection URI expression for the PostgreSQL server.
public ReferenceExpression UriExpression { get; }
Format: postgresql://{user}:{password}@{host}:{port}.
UsePasswordAuthenticationSection titled UsePasswordAuthenticationbool
Gets a value indicating whether the resource uses password authentication.
public bool UsePasswordAuthentication { get; }
UserNameSection titled UserNamenullableReferenceExpression?
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.