Sql Server Args
data class SqlServerArgs(val administratorLogin: Output<String>? = null, val administratorLoginPassword: Output<String>? = null, val connectionPolicy: Output<String>? = null, val identity: Output<SqlServerIdentityArgs>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val threatDetectionPolicy: Output<SqlServerThreatDetectionPolicyArgs>? = null, val version: Output<String>? = null) : ConvertibleToJava<SqlServerArgs>
Manages a Microsoft SQL Azure Database Server.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.sql.SqlServer;
import com.pulumi.azure.sql.SqlServerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var exampleSqlServer = new SqlServer("exampleSqlServer", SqlServerArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.version("12.0")
.administratorLogin("mradministrator")
.administratorLoginPassword("thisIsDog11")
.tags(Map.of("environment", "production"))
.build());
}
}
Content copied to clipboard
Import
SQL Servers can be imported using the resource id
, e.g.
$ pulumi import azure:sql/sqlServer:SqlServer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/servers/myserver
Content copied to clipboard
Constructors
Link copied to clipboard
fun SqlServerArgs(administratorLogin: Output<String>? = null, administratorLoginPassword: Output<String>? = null, connectionPolicy: Output<String>? = null, identity: Output<SqlServerIdentityArgs>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, threatDetectionPolicy: Output<SqlServerThreatDetectionPolicyArgs>? = null, version: Output<String>? = null)
Functions
Properties
Link copied to clipboard
The password associated with the administrator_login
user. Needs to comply with Azure's Password Policy
Link copied to clipboard