Watch Aspire live streamsDocsTry Aspire

AzurePostgresFlexibleServerResource Properties

ClassProperties15 members
Represents an resource for Azure Postgres Flexible Server.
AnnotationsSection titled AnnotationsoverrideResourceAnnotationCollection
Gets the annotations associated with the resource.
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.
ResourceTypeDisplayNameSection titled ResourceTypeDisplayNameoverridestring
Gets the default human-readable name of this resource's type.
public override string ResourceTypeDisplayName { get; }
Override this property to identify the service, such as Redis or PostgreSQL Server, independently of its technical resource type. The default is the resource type. This label does not change the resource name, service discovery, or OpenTelemetry identity. Use ResourceBuilderExtensions.WithResourceTypeDisplayName to override the label for an instance.
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.