Class Server
Manages a Microsoft SQL Azure Database Server.
Note: All arguments including the administrator login and password will be stored in the raw state as plain-text. Read more about sensitive data in state.
Inherited Members
Namespace: Pulumi.Azure.MSSql
Assembly: Pulumi.Azure.dll
Syntax
public class Server : CustomResource
Constructors
View SourceServer(String, ServerArgs, CustomResourceOptions)
Create a Server resource with the given unique name, arguments, and options.
Declaration
public Server(string name, ServerArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ServerArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAdministratorLogin
The administrator login name for the new server. Changing this forces a new resource to be created.
Declaration
public Output<string> AdministratorLogin { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AdministratorLoginPassword
The password associated with the administrator_login user. Needs to comply with Azure's Password Policy
Declaration
public Output<string> AdministratorLoginPassword { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AzureadAdministrator
An azuread_administrator block as defined below.
Declaration
public Output<ServerAzureadAdministrator> AzureadAdministrator { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServerAzureadAdministrator> |
ConnectionPolicy
The connection policy the server will use. Possible values are Default, Proxy, and Redirect. Defaults to Default.
Declaration
public Output<string> ConnectionPolicy { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ExtendedAuditingPolicy
A extended_auditing_policy block as defined below.
Declaration
public Output<ServerExtendedAuditingPolicy> ExtendedAuditingPolicy { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServerExtendedAuditingPolicy> |
FullyQualifiedDomainName
The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net)
Declaration
public Output<string> FullyQualifiedDomainName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Identity
An identity block as defined below.
Declaration
public Output<ServerIdentity> Identity { get; }
Property Value
| Type | Description |
|---|---|
| Output<ServerIdentity> |
Location
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the Microsoft SQL Server. This needs to be globally unique within Azure.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PublicNetworkAccessEnabled
Whether or not public network access is allowed for this server. Defaults to true.
Declaration
public Output<bool?> PublicNetworkAccessEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
ResourceGroupName
The name of the resource group in which to create the Microsoft SQL Server.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A mapping of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
Version
The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server).
Declaration
public Output<string> Version { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ServerState, CustomResourceOptions)
Get an existing Server resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Server Get(string name, Input<string> id, ServerState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ServerState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Server |