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
azureSqlDatabasesDict<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
connectionStringExpressionReferenceExpressiongetGets 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
fullyQualifiedDomainNameBicepOutputReferencegetGets the fully qualified domain name (FQDN) output reference from the bicep template for the Azure SQL Server resource.
property
hostNameReferenceExpressiongetGets the host name for the SQL Server.
property
idBicepOutputReferencegetGets the "id" output reference for the resource.
property
isContainerbooleangetGets a value indicating whether the current resource represents a container. If so the actual resource is not running in Azure.
property
jdbcConnectionStringReferenceExpressiongetGets the JDBC connection string for the server.
property
nameOutputReferenceBicepOutputReferencegetGets the "name" output reference for the resource.
property
portReferenceExpressiongetGets the port for the PostgreSQL server.
property
uriExpressionReferenceExpressiongetGets 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
namestringdatabaseNamestringoptionalReturns
AzureSqlDatabaseResourceConfigures 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
AzureSqlServerResourceConfigures the Azure SQL Server to use the specified storage account for deployment script execution.
withAdminDeploymentScriptStorage(storage: AzureStorageResource): AzureSqlServerResourceParameters
storageAzureStorageResourceReturns
AzureSqlServerResourceConfigures the Azure SQL Server to use the specified subnet for deployment script execution.
withAdminDeploymentScriptSubnet(subnet: AzureSubnetResource): AzureSqlServerResourceParameters
subnetAzureSubnetResourceReturns
AzureSqlServerResource