Skip to content
Docs Try Aspire

AzureSqlServerResource Properties

Class Properties 11 members
Represents an Azure Sql Server resource.
Annotations Section titled Annotations override ResourceAnnotationCollection
public override ResourceAnnotationCollection Annotations { get; }
AzureSqlDatabases Section titled AzureSqlDatabases IReadOnlyDictionary<string, AzureSqlDatabaseResource>
A dictionary where the key is the resource name and the value is the Azure SQL database resource.
public IReadOnlyDictionary<string, AzureSqlDatabaseResource> AzureSqlDatabases { get; }
ConnectionStringExpression Section titled ConnectionStringExpression ReferenceExpression
Gets the connection template for the manifest for the Azure SQL Server resource.
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 Azure SQL database name.
public IReadOnlyDictionary<string, string> Databases { get; }
FullyQualifiedDomainName Section titled FullyQualifiedDomainName BicepOutputReference
Gets the fully qualified domain name (FQDN) output reference from the bicep template for the Azure SQL Server resource.
public BicepOutputReference FullyQualifiedDomainName { get; }
HostName Section titled HostName ReferenceExpression
Gets the host name for the SQL Server.
public ReferenceExpression HostName { get; }
In container mode, resolves to the container's primary endpoint host. In Azure mode, resolves to the Azure SQL 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:sqlserver://{host}:{port};authentication=ActiveDirectoryIntegrated;encrypt=true;trustServerCertificate=true.
NameOutputReference Section titled NameOutputReference BicepOutputReference
Gets the "name" output reference for the resource.
public BicepOutputReference NameOutputReference { get; }
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 1433.
UriExpression Section titled UriExpression ReferenceExpression
Gets the connection URI expression for the SQL Server.
public ReferenceExpression UriExpression { get; }
Format: mssql://{host}:{port}.