SqlServer
Manages a Microsoft SQL Azure Database Server.
Create a SqlServer Resource
new SqlServer(name: string, args: SqlServerArgs, opts?: CustomResourceOptions);def SqlServer(resource_name, opts=None, administrator_login=None, administrator_login_password=None, connection_policy=None, extended_auditing_policy=None, identity=None, location=None, name=None, resource_group_name=None, tags=None, version=None, __props__=None);func NewSqlServer(ctx *Context, name string, args SqlServerArgs, opts ...ResourceOption) (*SqlServer, error)public SqlServer(string name, SqlServerArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SqlServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SqlServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SqlServer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SqlServer resource accepts the following input properties:
- Administrator
Login string The administrator login name for the new server. Changing this forces a new resource to be created.
- Administrator
Login stringPassword The password associated with the
administrator_loginuser. Needs to comply with Azure’s Password Policy- Resource
Group stringName The name of the resource group in which to create the Microsoft SQL Server.
- Version string
The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server).
- Connection
Policy string The connection policy the server will use. Possible values are
Default,Proxy, andRedirect. Defaults toDefault.- Extended
Auditing SqlPolicy Server Extended Auditing Policy Args A
extended_auditing_policyblock as defined below.- Identity
Sql
Server Identity Args An
identityblock as defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
The name of the Microsoft SQL Server. This needs to be globally unique within Azure.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Administrator
Login string The administrator login name for the new server. Changing this forces a new resource to be created.
- Administrator
Login stringPassword The password associated with the
administrator_loginuser. Needs to comply with Azure’s Password Policy- Resource
Group stringName The name of the resource group in which to create the Microsoft SQL Server.
- Version string
The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server).
- Connection
Policy string The connection policy the server will use. Possible values are
Default,Proxy, andRedirect. Defaults toDefault.- Extended
Auditing SqlPolicy Server Extended Auditing Policy A
extended_auditing_policyblock as defined below.- Identity
Sql
Server Identity An
identityblock as defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
The name of the Microsoft SQL Server. This needs to be globally unique within Azure.
- map[string]string
A mapping of tags to assign to the resource.
- administrator
Login string The administrator login name for the new server. Changing this forces a new resource to be created.
- administrator
Login stringPassword The password associated with the
administrator_loginuser. Needs to comply with Azure’s Password Policy- resource
Group stringName The name of the resource group in which to create the Microsoft SQL Server.
- version string
The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server).
- connection
Policy string The connection policy the server will use. Possible values are
Default,Proxy, andRedirect. Defaults toDefault.- extended
Auditing SqlPolicy Server Extended Auditing Policy A
extended_auditing_policyblock as defined below.- identity
Sql
Server Identity An
identityblock as defined below.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
The name of the Microsoft SQL Server. This needs to be globally unique within Azure.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- administrator_
login str The administrator login name for the new server. Changing this forces a new resource to be created.
- administrator_
login_ strpassword The password associated with the
administrator_loginuser. Needs to comply with Azure’s Password Policy- resource_
group_ strname The name of the resource group in which to create the Microsoft SQL Server.
- version str
The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server).
- connection_
policy str The connection policy the server will use. Possible values are
Default,Proxy, andRedirect. Defaults toDefault.- extended_
auditing_ Dict[Sqlpolicy Server Extended Auditing Policy] A
extended_auditing_policyblock as defined below.- identity
Dict[Sql
Server Identity] An
identityblock as defined below.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
The name of the Microsoft SQL Server. This needs to be globally unique within Azure.
- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlServer resource produces the following output properties:
- Fully
Qualified stringDomain Name The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net)
- Id string
- The provider-assigned unique ID for this managed resource.
- Fully
Qualified stringDomain Name The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net)
- Id string
- The provider-assigned unique ID for this managed resource.
- fully
Qualified stringDomain Name The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net)
- id string
- The provider-assigned unique ID for this managed resource.
- fully_
qualified_ strdomain_ name The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net)
- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing SqlServer Resource
Get an existing SqlServer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SqlServerState, opts?: CustomResourceOptions): SqlServerstatic get(resource_name, id, opts=None, administrator_login=None, administrator_login_password=None, connection_policy=None, extended_auditing_policy=None, fully_qualified_domain_name=None, identity=None, location=None, name=None, resource_group_name=None, tags=None, version=None, __props__=None);func GetSqlServer(ctx *Context, name string, id IDInput, state *SqlServerState, opts ...ResourceOption) (*SqlServer, error)public static SqlServer Get(string name, Input<string> id, SqlServerState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Administrator
Login string The administrator login name for the new server. Changing this forces a new resource to be created.
- Administrator
Login stringPassword The password associated with the
administrator_loginuser. Needs to comply with Azure’s Password Policy- Connection
Policy string The connection policy the server will use. Possible values are
Default,Proxy, andRedirect. Defaults toDefault.- Extended
Auditing SqlPolicy Server Extended Auditing Policy Args A
extended_auditing_policyblock as defined below.- Fully
Qualified stringDomain Name The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net)
- Identity
Sql
Server Identity Args An
identityblock as defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
The name of the Microsoft SQL Server. This needs to be globally unique within Azure.
- Resource
Group stringName The name of the resource group in which to create the Microsoft SQL Server.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Version string
The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server).
- Administrator
Login string The administrator login name for the new server. Changing this forces a new resource to be created.
- Administrator
Login stringPassword The password associated with the
administrator_loginuser. Needs to comply with Azure’s Password Policy- Connection
Policy string The connection policy the server will use. Possible values are
Default,Proxy, andRedirect. Defaults toDefault.- Extended
Auditing SqlPolicy Server Extended Auditing Policy A
extended_auditing_policyblock as defined below.- Fully
Qualified stringDomain Name The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net)
- Identity
Sql
Server Identity An
identityblock as defined below.- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
The name of the Microsoft SQL Server. This needs to be globally unique within Azure.
- Resource
Group stringName The name of the resource group in which to create the Microsoft SQL Server.
- map[string]string
A mapping of tags to assign to the resource.
- Version string
The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server).
- administrator
Login string The administrator login name for the new server. Changing this forces a new resource to be created.
- administrator
Login stringPassword The password associated with the
administrator_loginuser. Needs to comply with Azure’s Password Policy- connection
Policy string The connection policy the server will use. Possible values are
Default,Proxy, andRedirect. Defaults toDefault.- extended
Auditing SqlPolicy Server Extended Auditing Policy A
extended_auditing_policyblock as defined below.- fully
Qualified stringDomain Name The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net)
- identity
Sql
Server Identity An
identityblock as defined below.- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
The name of the Microsoft SQL Server. This needs to be globally unique within Azure.
- resource
Group stringName The name of the resource group in which to create the Microsoft SQL Server.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- version string
The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server).
- administrator_
login str The administrator login name for the new server. Changing this forces a new resource to be created.
- administrator_
login_ strpassword The password associated with the
administrator_loginuser. Needs to comply with Azure’s Password Policy- connection_
policy str The connection policy the server will use. Possible values are
Default,Proxy, andRedirect. Defaults toDefault.- extended_
auditing_ Dict[Sqlpolicy Server Extended Auditing Policy] A
extended_auditing_policyblock as defined below.- fully_
qualified_ strdomain_ name The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net)
- identity
Dict[Sql
Server Identity] An
identityblock as defined below.- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
The name of the Microsoft SQL Server. This needs to be globally unique within Azure.
- resource_
group_ strname The name of the resource group in which to create the Microsoft SQL Server.
- Dict[str, str]
A mapping of tags to assign to the resource.
- version str
The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server).
Supporting Types
SqlServerExtendedAuditingPolicy
- Storage
Account stringAccess Key (Required) Specifies the access key to use for the auditing storage account.
- Storage
Endpoint string (Required) Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net).
- Retention
In intDays (Optional) Specifies the number of days to retain logs for in the storage account.
- Storage
Account boolAccess Key Is Secondary (Optional) Specifies whether
storage_account_access_keyvalue is the storage’s secondary key.
- Storage
Account stringAccess Key (Required) Specifies the access key to use for the auditing storage account.
- Storage
Endpoint string (Required) Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net).
- Retention
In intDays (Optional) Specifies the number of days to retain logs for in the storage account.
- Storage
Account boolAccess Key Is Secondary (Optional) Specifies whether
storage_account_access_keyvalue is the storage’s secondary key.
- storage
Account stringAccess Key (Required) Specifies the access key to use for the auditing storage account.
- storage
Endpoint string (Required) Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net).
- retention
In numberDays (Optional) Specifies the number of days to retain logs for in the storage account.
- storage
Account booleanAccess Key Is Secondary (Optional) Specifies whether
storage_account_access_keyvalue is the storage’s secondary key.
- storage_
account_ straccess_ key (Required) Specifies the access key to use for the auditing storage account.
- storage_
endpoint str (Required) Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net).
- retention_
in_ floatdays (Optional) Specifies the number of days to retain logs for in the storage account.
- storage
Account boolAccess Key Is Secondary (Optional) Specifies whether
storage_account_access_keyvalue is the storage’s secondary key.
SqlServerIdentity
- Type string
Specifies the identity type of the Microsoft SQL Server. At this time the only allowed value is
SystemAssigned.- Principal
Id string The Principal ID for the Service Principal associated with the Identity of this SQL Server.
- Tenant
Id string The Tenant ID for the Service Principal associated with the Identity of this SQL Server.
- Type string
Specifies the identity type of the Microsoft SQL Server. At this time the only allowed value is
SystemAssigned.- Principal
Id string The Principal ID for the Service Principal associated with the Identity of this SQL Server.
- Tenant
Id string The Tenant ID for the Service Principal associated with the Identity of this SQL Server.
- type string
Specifies the identity type of the Microsoft SQL Server. At this time the only allowed value is
SystemAssigned.- principal
Id string The Principal ID for the Service Principal associated with the Identity of this SQL Server.
- tenant
Id string The Tenant ID for the Service Principal associated with the Identity of this SQL Server.
- type str
Specifies the identity type of the Microsoft SQL Server. At this time the only allowed value is
SystemAssigned.- principal_
id str The Principal ID for the Service Principal associated with the Identity of this SQL Server.
- tenant_
id str The Tenant ID for the Service Principal associated with the Identity of this SQL Server.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.