Skip to content
DocsTry Aspire
DocsTry

AzureSqlServerResource Properties

ClassProperties12 members
Represents an Azure Sql Server resource.
AnnotationsSection titled AnnotationsoverrideResourceAnnotationCollection
public override ResourceAnnotationCollection Annotations { get; }
This property is not available in polyglot app hosts.
AzureSqlDatabasesSection titled AzureSqlDatabasesIReadOnlyDictionary<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; }
ConnectionStringExpressionSection titled ConnectionStringExpressionReferenceExpression
Gets the connection template for the manifest for the Azure SQL Server resource.
public ReferenceExpression ConnectionStringExpression { get; }
DatabasesSection titled DatabasesIReadOnlyDictionary<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; }
FullyQualifiedDomainNameSection titled FullyQualifiedDomainNameBicepOutputReference
Gets the fully qualified domain name (FQDN) output reference from the bicep template for the Azure SQL Server resource.
public BicepOutputReference FullyQualifiedDomainName { get; }
HostNameSection titled HostNameReferenceExpression
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.
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:sqlserver://{host}:{port};authentication=ActiveDirectoryIntegrated;encrypt=true;trustServerCertificate=true.
NameOutputReferenceSection titled NameOutputReferenceBicepOutputReference
Gets the "name" output reference for the resource.
public BicepOutputReference NameOutputReference { get; }
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 1433.
UriExpressionSection titled UriExpressionReferenceExpression
Gets the connection URI expression for the SQL Server.
public ReferenceExpression UriExpression { get; }
Format: mssql://{host}:{port}.