AzureSqlServerResource
Represents an Azure Sql Server resource.
type AzureSqlServerResource interface { ExpressionValue Resource ResourceWithConnectionString}Properties
AzureSqlDatabases map[string]AzureSqlDatabaseResource getAzureSqlDatabases() (map[string]AzureSqlDatabaseResource, error)ConnectionStringExpression *ReferenceExpression getConnectionStringExpression() *ReferenceExpressionDatabasesmap[string]string getDatabases() (map[string]string, error)FullyQualifiedDomainName BicepOutputReference getFullyQualifiedDomainName() BicepOutputReferenceHostName *ReferenceExpression getHostName() *ReferenceExpressionIdBicepOutputReference getId() BicepOutputReferenceIsContainer boolgetIsContainer() (bool, error)JdbcConnectionString *ReferenceExpression getJdbcConnectionString() *ReferenceExpressionNameOutputReference BicepOutputReference getNameOutputReference() BicepOutputReferencePort*ReferenceExpression getPort() *ReferenceExpressionResourceTypeDisplayName stringgetResourceTypeDisplayName() (string, error)UriExpression *ReferenceExpression getUriExpression() *ReferenceExpressionMethods
AddDatabase( name string, options ...*AddDatabaseOptions,) AzureSqlDatabaseResourceParameters
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.options...*AddDatabaseOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddDatabaseOptions argument.
DatabaseName *stringThe name of the database. If not provided, this defaults to the same value as name.Returns
AzureSqlDatabaseResource The resource builder.
Returns a handle; failures surface later via Err().
RunAsContainer(options ...*RunAsContainerOptions) AzureSqlServerResourceParameters
options...*RunAsContainerOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*RunAsContainerOptions argument.
ConfigureContainer func(obj SqlServerServerResource) callbackCallback that exposes underlying container to allow for customization.Returns
AzureSqlServerResource The resource builder.
Returns a handle; failures surface later via Err().
WithAdminDeploymentScriptStorage(storage AzureStorageResource) AzureSqlServerResourceParameters
storageAzureStorageResource The storage account to use for deployment scripts.Returns
AzureSqlServerResource The resource builder.
Returns a handle; failures surface later via Err().
WithAdminDeploymentScriptSubnet(subnet AzureSubnetResource) AzureSqlServerResourceParameters
subnetAzureSubnetResource The subnet to delegate for Azure Container Instances used by deployment scripts.Returns
AzureSqlServerResource The resource builder.
Returns a handle; failures surface later via Err().