AzureSqlServerResource
Handle
interface AzureSqlServerResource extends IAzureResource, IExpressionValue, IManifestExpressionProvider, IResource, IResourceWithConnectionString, IResourceWithParameters, IValueProvider, IValueWithReferences, IAzureNspAssociationTarget, IAzurePrivateEndpointTarget, IAzurePrivateEndpointTargetNotification { readonly azureSqlDatabases: Dict<string,Aspire.Hosting.Azure.Sql/Aspire.Hosting.Azure.AzureSqlDatabaseResource>; readonly connectionStringExpression: ReferenceExpression; readonly databases: Dict<string,string>; readonly fullyQualifiedDomainName: BicepOutputReference; readonly hostName: ReferenceExpression; readonly id: BicepOutputReference; readonly isContainer: boolean; readonly jdbcConnectionString: ReferenceExpression; readonly nameOutputReference: BicepOutputReference; readonly port: ReferenceExpression; readonly uriExpression: ReferenceExpression; addDatabase( name: string, databaseName?: string): AzureSqlDatabaseResource; runAsContainer(configureContainer?: (obj: SqlServerServerResource) => Promise<void>): AzureSqlServerResource; withAdminDeploymentScriptStorage(storage: AzureStorageResource): AzureSqlServerResource; withAdminDeploymentScriptSubnet(subnet: AzureSubnetResource): AzureSqlServerResource;}15 members
Properties
property
azureSqlDatabases Dict<string,Aspire.Hosting.Azure.Sql/Aspire.Hosting.Azure.AzureSqlDatabaseResource> getA dictionary where the key is the resource name and the value is the Azure SQL database resource.
property
connectionStringExpression ReferenceExpression getGets the connection template for the manifest for the Azure SQL Server resource.
property
databasesDict<string,string> getA dictionary where the key is the resource name and the value is the Azure SQL database name.
property
fullyQualifiedDomainName BicepOutputReference getGets the fully qualified domain name (FQDN) output reference from the bicep template for the Azure SQL Server resource.
property
hostName ReferenceExpression getGets the host name for the SQL Server.
property
idBicepOutputReference getGets the "id" output reference for the resource.
property
isContainer booleangetGets a value indicating whether the current resource represents a container. If so the actual resource is not running in Azure.
property
jdbcConnectionString ReferenceExpression getGets the JDBC connection string for the server.
property
nameOutputReference BicepOutputReference getGets the "name" output reference for the resource.
property
portReferenceExpression getGets the port for the PostgreSQL server.
property
uriExpression ReferenceExpression getGets the connection URI expression for the SQL Server.
Methods
Adds an Azure SQL Database to the application model. The Free Offer option will be used when deploying the resource in Azure
addDatabase( name: string, databaseName?: string): AzureSqlDatabaseResourceParameters
namestringdatabaseName stringoptionalReturns
AzureSqlDatabaseResource Configures an Azure SQL Database (server) resource to run locally in a container.
runAsContainer(configureContainer?: (obj: SqlServerServerResource) => Promise<void>): AzureSqlServerResourceParameters
configureContainer (obj: SqlServerServerResource) => Promise<void> optionalReturns
AzureSqlServerResource Configures the Azure SQL Server to use the specified storage account for deployment script execution.
withAdminDeploymentScriptStorage(storage: AzureStorageResource): AzureSqlServerResourceParameters
storageAzureStorageResource Returns
AzureSqlServerResource Configures the Azure SQL Server to use the specified subnet for deployment script execution.
withAdminDeploymentScriptSubnet(subnet: AzureSubnetResource): AzureSqlServerResourceParameters
subnetAzureSubnetResource Returns
AzureSqlServerResource