Share via


SqlDatabase Class

Definition

Represents a SQL database.

public class SqlDatabase : Azure.Provisioning.Resource<Azure.ResourceManager.Sql.SqlDatabaseData>
type SqlDatabase = class
    inherit Resource<SqlDatabaseData>
Public Class SqlDatabase
Inherits Resource(Of SqlDatabaseData)
Inheritance

Constructors

SqlDatabase(IConstruct, SqlServer, String, String, Nullable<AzureLocation>)

Initializes a new instance of the SqlDatabase.

Properties

Id

Gets the ResourceIdentifier of the resource.

(Inherited from Resource)
IsExisting

Whether or not the resource already exists.

(Inherited from Resource)
Name

Gets the name of the resource.

(Inherited from Resource)
Parent

Gets the parent Resource.

(Inherited from Resource)
Properties

Gets the properties of the resource.

(Inherited from Resource<T>)
ResourceData

Gets the data of the resource.

(Inherited from Resource)
Scope

Gets the IConstruct scope of the resource.

(Inherited from Resource)
Version

Gets the version of the resource.

(Inherited from Resource)

Methods

AddDependency(Resource)

Adds a dependency to the resource.

(Inherited from Resource)
AddOutput(String, Expression<Func<T,Object>>, BicepType, Boolean)

Adds an output to the resource.

(Inherited from Resource<T>)
AddOutput(String, String, Expression<Func<T,Object>>, BicepType, Boolean)

Adds an output to the resource.

(Inherited from Resource<T>)
AssignProperty(Expression<Func<T,Object>>, Parameter) (Inherited from Resource<T>)
AssignProperty(Expression<Func<T,Object>>, String) (Inherited from Resource<T>)
AssignRole(RoleDefinition, Nullable<Guid>, Nullable<RoleManagementPrincipalType>)

Assigns a role to the resource.

(Inherited from Resource)
FindParentInScope(IConstruct)

Finds the parent resource in the scope.

FromExisting(IConstruct, String, SqlServer)

Creates a new instance of the SqlDatabase class referencing an existing instance.

GetAzureName(IConstruct, String)

Validate and sanitize the resource name.

(Inherited from Resource)
GetBicepName(Resource)

Gets the name of the resource for Bicep.

(Inherited from Resource)
GetConnectionString(Parameter, String)

Gets the connection string for the SqlDatabase.

GetGloballyUniqueName(String)

Gets a globally unique name for the resource.

(Inherited from Resource)
NeedsParent()

Determines whether the resource needs a parent declaration.

(Inherited from Resource)
NeedsScope()

Determines whether the resource needs a scope declaration.

(Inherited from Resource)

Explicit Interface Implementations

IPersistableModel<Resource>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from Resource)
IPersistableModel<Resource>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from Resource)
IPersistableModel<Resource>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from Resource)

Applies to