We recommend using Azure Native.
azure.mssql.VirtualMachine
Explore with Pulumi AI
Manages a Microsoft SQL Virtual Machine
Example Usage
This example provisions a brief Managed Microsoft SQL Virtual Machine.
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.compute.getVirtualMachine({
    name: "example-vm",
    resourceGroupName: "example-resources",
});
const exampleVirtualMachine = new azure.mssql.VirtualMachine("example", {
    virtualMachineId: example.then(example => example.id),
    sqlLicenseType: "PAYG",
    rServicesEnabled: true,
    sqlConnectivityPort: 1433,
    sqlConnectivityType: "PRIVATE",
    sqlConnectivityUpdatePassword: "Password1234!",
    sqlConnectivityUpdateUsername: "sqllogin",
    autoPatching: {
        dayOfWeek: "Sunday",
        maintenanceWindowDurationInMinutes: 60,
        maintenanceWindowStartingHour: 2,
    },
});
import pulumi
import pulumi_azure as azure
example = azure.compute.get_virtual_machine(name="example-vm",
    resource_group_name="example-resources")
example_virtual_machine = azure.mssql.VirtualMachine("example",
    virtual_machine_id=example.id,
    sql_license_type="PAYG",
    r_services_enabled=True,
    sql_connectivity_port=1433,
    sql_connectivity_type="PRIVATE",
    sql_connectivity_update_password="Password1234!",
    sql_connectivity_update_username="sqllogin",
    auto_patching={
        "day_of_week": "Sunday",
        "maintenance_window_duration_in_minutes": 60,
        "maintenance_window_starting_hour": 2,
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/mssql"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := compute.LookupVirtualMachine(ctx, &compute.LookupVirtualMachineArgs{
			Name:              "example-vm",
			ResourceGroupName: "example-resources",
		}, nil)
		if err != nil {
			return err
		}
		_, err = mssql.NewVirtualMachine(ctx, "example", &mssql.VirtualMachineArgs{
			VirtualMachineId:              pulumi.String(example.Id),
			SqlLicenseType:                pulumi.String("PAYG"),
			RServicesEnabled:              pulumi.Bool(true),
			SqlConnectivityPort:           pulumi.Int(1433),
			SqlConnectivityType:           pulumi.String("PRIVATE"),
			SqlConnectivityUpdatePassword: pulumi.String("Password1234!"),
			SqlConnectivityUpdateUsername: pulumi.String("sqllogin"),
			AutoPatching: &mssql.VirtualMachineAutoPatchingArgs{
				DayOfWeek:                          pulumi.String("Sunday"),
				MaintenanceWindowDurationInMinutes: pulumi.Int(60),
				MaintenanceWindowStartingHour:      pulumi.Int(2),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.Compute.GetVirtualMachine.Invoke(new()
    {
        Name = "example-vm",
        ResourceGroupName = "example-resources",
    });
    var exampleVirtualMachine = new Azure.MSSql.VirtualMachine("example", new()
    {
        VirtualMachineId = example.Apply(getVirtualMachineResult => getVirtualMachineResult.Id),
        SqlLicenseType = "PAYG",
        RServicesEnabled = true,
        SqlConnectivityPort = 1433,
        SqlConnectivityType = "PRIVATE",
        SqlConnectivityUpdatePassword = "Password1234!",
        SqlConnectivityUpdateUsername = "sqllogin",
        AutoPatching = new Azure.MSSql.Inputs.VirtualMachineAutoPatchingArgs
        {
            DayOfWeek = "Sunday",
            MaintenanceWindowDurationInMinutes = 60,
            MaintenanceWindowStartingHour = 2,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.compute.ComputeFunctions;
import com.pulumi.azure.compute.inputs.GetVirtualMachineArgs;
import com.pulumi.azure.mssql.VirtualMachine;
import com.pulumi.azure.mssql.VirtualMachineArgs;
import com.pulumi.azure.mssql.inputs.VirtualMachineAutoPatchingArgs;
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) {
        final var example = ComputeFunctions.getVirtualMachine(GetVirtualMachineArgs.builder()
            .name("example-vm")
            .resourceGroupName("example-resources")
            .build());
        var exampleVirtualMachine = new VirtualMachine("exampleVirtualMachine", VirtualMachineArgs.builder()
            .virtualMachineId(example.applyValue(getVirtualMachineResult -> getVirtualMachineResult.id()))
            .sqlLicenseType("PAYG")
            .rServicesEnabled(true)
            .sqlConnectivityPort(1433)
            .sqlConnectivityType("PRIVATE")
            .sqlConnectivityUpdatePassword("Password1234!")
            .sqlConnectivityUpdateUsername("sqllogin")
            .autoPatching(VirtualMachineAutoPatchingArgs.builder()
                .dayOfWeek("Sunday")
                .maintenanceWindowDurationInMinutes(60)
                .maintenanceWindowStartingHour(2)
                .build())
            .build());
    }
}
resources:
  exampleVirtualMachine:
    type: azure:mssql:VirtualMachine
    name: example
    properties:
      virtualMachineId: ${example.id}
      sqlLicenseType: PAYG
      rServicesEnabled: true
      sqlConnectivityPort: 1433
      sqlConnectivityType: PRIVATE
      sqlConnectivityUpdatePassword: Password1234!
      sqlConnectivityUpdateUsername: sqllogin
      autoPatching:
        dayOfWeek: Sunday
        maintenanceWindowDurationInMinutes: 60
        maintenanceWindowStartingHour: 2
variables:
  example:
    fn::invoke:
      function: azure:compute:getVirtualMachine
      arguments:
        name: example-vm
        resourceGroupName: example-resources
Create VirtualMachine Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualMachine(name: string, args: VirtualMachineArgs, opts?: CustomResourceOptions);@overload
def VirtualMachine(resource_name: str,
                   args: VirtualMachineArgs,
                   opts: Optional[ResourceOptions] = None)
@overload
def VirtualMachine(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   virtual_machine_id: Optional[str] = None,
                   sql_connectivity_update_username: Optional[str] = None,
                   sql_instance: Optional[VirtualMachineSqlInstanceArgs] = None,
                   key_vault_credential: Optional[VirtualMachineKeyVaultCredentialArgs] = None,
                   r_services_enabled: Optional[bool] = None,
                   sql_connectivity_port: Optional[int] = None,
                   sql_connectivity_type: Optional[str] = None,
                   auto_patching: Optional[VirtualMachineAutoPatchingArgs] = None,
                   assessment: Optional[VirtualMachineAssessmentArgs] = None,
                   sql_connectivity_update_password: Optional[str] = None,
                   sql_license_type: Optional[str] = None,
                   sql_virtual_machine_group_id: Optional[str] = None,
                   storage_configuration: Optional[VirtualMachineStorageConfigurationArgs] = None,
                   tags: Optional[Mapping[str, str]] = None,
                   auto_backup: Optional[VirtualMachineAutoBackupArgs] = None,
                   wsfc_domain_credential: Optional[VirtualMachineWsfcDomainCredentialArgs] = None)func NewVirtualMachine(ctx *Context, name string, args VirtualMachineArgs, opts ...ResourceOption) (*VirtualMachine, error)public VirtualMachine(string name, VirtualMachineArgs args, CustomResourceOptions? opts = null)
public VirtualMachine(String name, VirtualMachineArgs args)
public VirtualMachine(String name, VirtualMachineArgs args, CustomResourceOptions options)
type: azure:mssql:VirtualMachine
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azureVirtualMachineResource = new Azure.MSSql.VirtualMachine("azureVirtualMachineResource", new()
{
    VirtualMachineId = "string",
    SqlConnectivityUpdateUsername = "string",
    SqlInstance = new Azure.MSSql.Inputs.VirtualMachineSqlInstanceArgs
    {
        AdhocWorkloadsOptimizationEnabled = false,
        Collation = "string",
        InstantFileInitializationEnabled = false,
        LockPagesInMemoryEnabled = false,
        MaxDop = 0,
        MaxServerMemoryMb = 0,
        MinServerMemoryMb = 0,
    },
    KeyVaultCredential = new Azure.MSSql.Inputs.VirtualMachineKeyVaultCredentialArgs
    {
        KeyVaultUrl = "string",
        Name = "string",
        ServicePrincipalName = "string",
        ServicePrincipalSecret = "string",
    },
    RServicesEnabled = false,
    SqlConnectivityPort = 0,
    SqlConnectivityType = "string",
    AutoPatching = new Azure.MSSql.Inputs.VirtualMachineAutoPatchingArgs
    {
        DayOfWeek = "string",
        MaintenanceWindowDurationInMinutes = 0,
        MaintenanceWindowStartingHour = 0,
    },
    Assessment = new Azure.MSSql.Inputs.VirtualMachineAssessmentArgs
    {
        Enabled = false,
        RunImmediately = false,
        Schedule = new Azure.MSSql.Inputs.VirtualMachineAssessmentScheduleArgs
        {
            DayOfWeek = "string",
            StartTime = "string",
            MonthlyOccurrence = 0,
            WeeklyInterval = 0,
        },
    },
    SqlConnectivityUpdatePassword = "string",
    SqlLicenseType = "string",
    SqlVirtualMachineGroupId = "string",
    StorageConfiguration = new Azure.MSSql.Inputs.VirtualMachineStorageConfigurationArgs
    {
        DiskType = "string",
        StorageWorkloadType = "string",
        DataSettings = new Azure.MSSql.Inputs.VirtualMachineStorageConfigurationDataSettingsArgs
        {
            DefaultFilePath = "string",
            Luns = new[]
            {
                0,
            },
        },
        LogSettings = new Azure.MSSql.Inputs.VirtualMachineStorageConfigurationLogSettingsArgs
        {
            DefaultFilePath = "string",
            Luns = new[]
            {
                0,
            },
        },
        SystemDbOnDataDiskEnabled = false,
        TempDbSettings = new Azure.MSSql.Inputs.VirtualMachineStorageConfigurationTempDbSettingsArgs
        {
            DefaultFilePath = "string",
            Luns = new[]
            {
                0,
            },
            DataFileCount = 0,
            DataFileGrowthInMb = 0,
            DataFileSizeMb = 0,
            LogFileGrowthMb = 0,
            LogFileSizeMb = 0,
        },
    },
    Tags = 
    {
        { "string", "string" },
    },
    AutoBackup = new Azure.MSSql.Inputs.VirtualMachineAutoBackupArgs
    {
        RetentionPeriodInDays = 0,
        StorageAccountAccessKey = "string",
        StorageBlobEndpoint = "string",
        EncryptionPassword = "string",
        ManualSchedule = new Azure.MSSql.Inputs.VirtualMachineAutoBackupManualScheduleArgs
        {
            FullBackupFrequency = "string",
            FullBackupStartHour = 0,
            FullBackupWindowInHours = 0,
            LogBackupFrequencyInMinutes = 0,
            DaysOfWeeks = new[]
            {
                "string",
            },
        },
        SystemDatabasesBackupEnabled = false,
    },
    WsfcDomainCredential = new Azure.MSSql.Inputs.VirtualMachineWsfcDomainCredentialArgs
    {
        ClusterBootstrapAccountPassword = "string",
        ClusterOperatorAccountPassword = "string",
        SqlServiceAccountPassword = "string",
    },
});
example, err := mssql.NewVirtualMachine(ctx, "azureVirtualMachineResource", &mssql.VirtualMachineArgs{
	VirtualMachineId:              pulumi.String("string"),
	SqlConnectivityUpdateUsername: pulumi.String("string"),
	SqlInstance: &mssql.VirtualMachineSqlInstanceArgs{
		AdhocWorkloadsOptimizationEnabled: pulumi.Bool(false),
		Collation:                         pulumi.String("string"),
		InstantFileInitializationEnabled:  pulumi.Bool(false),
		LockPagesInMemoryEnabled:          pulumi.Bool(false),
		MaxDop:                            pulumi.Int(0),
		MaxServerMemoryMb:                 pulumi.Int(0),
		MinServerMemoryMb:                 pulumi.Int(0),
	},
	KeyVaultCredential: &mssql.VirtualMachineKeyVaultCredentialArgs{
		KeyVaultUrl:            pulumi.String("string"),
		Name:                   pulumi.String("string"),
		ServicePrincipalName:   pulumi.String("string"),
		ServicePrincipalSecret: pulumi.String("string"),
	},
	RServicesEnabled:    pulumi.Bool(false),
	SqlConnectivityPort: pulumi.Int(0),
	SqlConnectivityType: pulumi.String("string"),
	AutoPatching: &mssql.VirtualMachineAutoPatchingArgs{
		DayOfWeek:                          pulumi.String("string"),
		MaintenanceWindowDurationInMinutes: pulumi.Int(0),
		MaintenanceWindowStartingHour:      pulumi.Int(0),
	},
	Assessment: &mssql.VirtualMachineAssessmentArgs{
		Enabled:        pulumi.Bool(false),
		RunImmediately: pulumi.Bool(false),
		Schedule: &mssql.VirtualMachineAssessmentScheduleArgs{
			DayOfWeek:         pulumi.String("string"),
			StartTime:         pulumi.String("string"),
			MonthlyOccurrence: pulumi.Int(0),
			WeeklyInterval:    pulumi.Int(0),
		},
	},
	SqlConnectivityUpdatePassword: pulumi.String("string"),
	SqlLicenseType:                pulumi.String("string"),
	SqlVirtualMachineGroupId:      pulumi.String("string"),
	StorageConfiguration: &mssql.VirtualMachineStorageConfigurationArgs{
		DiskType:            pulumi.String("string"),
		StorageWorkloadType: pulumi.String("string"),
		DataSettings: &mssql.VirtualMachineStorageConfigurationDataSettingsArgs{
			DefaultFilePath: pulumi.String("string"),
			Luns: pulumi.IntArray{
				pulumi.Int(0),
			},
		},
		LogSettings: &mssql.VirtualMachineStorageConfigurationLogSettingsArgs{
			DefaultFilePath: pulumi.String("string"),
			Luns: pulumi.IntArray{
				pulumi.Int(0),
			},
		},
		SystemDbOnDataDiskEnabled: pulumi.Bool(false),
		TempDbSettings: &mssql.VirtualMachineStorageConfigurationTempDbSettingsArgs{
			DefaultFilePath: pulumi.String("string"),
			Luns: pulumi.IntArray{
				pulumi.Int(0),
			},
			DataFileCount:      pulumi.Int(0),
			DataFileGrowthInMb: pulumi.Int(0),
			DataFileSizeMb:     pulumi.Int(0),
			LogFileGrowthMb:    pulumi.Int(0),
			LogFileSizeMb:      pulumi.Int(0),
		},
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	AutoBackup: &mssql.VirtualMachineAutoBackupArgs{
		RetentionPeriodInDays:   pulumi.Int(0),
		StorageAccountAccessKey: pulumi.String("string"),
		StorageBlobEndpoint:     pulumi.String("string"),
		EncryptionPassword:      pulumi.String("string"),
		ManualSchedule: &mssql.VirtualMachineAutoBackupManualScheduleArgs{
			FullBackupFrequency:         pulumi.String("string"),
			FullBackupStartHour:         pulumi.Int(0),
			FullBackupWindowInHours:     pulumi.Int(0),
			LogBackupFrequencyInMinutes: pulumi.Int(0),
			DaysOfWeeks: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		SystemDatabasesBackupEnabled: pulumi.Bool(false),
	},
	WsfcDomainCredential: &mssql.VirtualMachineWsfcDomainCredentialArgs{
		ClusterBootstrapAccountPassword: pulumi.String("string"),
		ClusterOperatorAccountPassword:  pulumi.String("string"),
		SqlServiceAccountPassword:       pulumi.String("string"),
	},
})
var azureVirtualMachineResource = new VirtualMachine("azureVirtualMachineResource", VirtualMachineArgs.builder()
    .virtualMachineId("string")
    .sqlConnectivityUpdateUsername("string")
    .sqlInstance(VirtualMachineSqlInstanceArgs.builder()
        .adhocWorkloadsOptimizationEnabled(false)
        .collation("string")
        .instantFileInitializationEnabled(false)
        .lockPagesInMemoryEnabled(false)
        .maxDop(0)
        .maxServerMemoryMb(0)
        .minServerMemoryMb(0)
        .build())
    .keyVaultCredential(VirtualMachineKeyVaultCredentialArgs.builder()
        .keyVaultUrl("string")
        .name("string")
        .servicePrincipalName("string")
        .servicePrincipalSecret("string")
        .build())
    .rServicesEnabled(false)
    .sqlConnectivityPort(0)
    .sqlConnectivityType("string")
    .autoPatching(VirtualMachineAutoPatchingArgs.builder()
        .dayOfWeek("string")
        .maintenanceWindowDurationInMinutes(0)
        .maintenanceWindowStartingHour(0)
        .build())
    .assessment(VirtualMachineAssessmentArgs.builder()
        .enabled(false)
        .runImmediately(false)
        .schedule(VirtualMachineAssessmentScheduleArgs.builder()
            .dayOfWeek("string")
            .startTime("string")
            .monthlyOccurrence(0)
            .weeklyInterval(0)
            .build())
        .build())
    .sqlConnectivityUpdatePassword("string")
    .sqlLicenseType("string")
    .sqlVirtualMachineGroupId("string")
    .storageConfiguration(VirtualMachineStorageConfigurationArgs.builder()
        .diskType("string")
        .storageWorkloadType("string")
        .dataSettings(VirtualMachineStorageConfigurationDataSettingsArgs.builder()
            .defaultFilePath("string")
            .luns(0)
            .build())
        .logSettings(VirtualMachineStorageConfigurationLogSettingsArgs.builder()
            .defaultFilePath("string")
            .luns(0)
            .build())
        .systemDbOnDataDiskEnabled(false)
        .tempDbSettings(VirtualMachineStorageConfigurationTempDbSettingsArgs.builder()
            .defaultFilePath("string")
            .luns(0)
            .dataFileCount(0)
            .dataFileGrowthInMb(0)
            .dataFileSizeMb(0)
            .logFileGrowthMb(0)
            .logFileSizeMb(0)
            .build())
        .build())
    .tags(Map.of("string", "string"))
    .autoBackup(VirtualMachineAutoBackupArgs.builder()
        .retentionPeriodInDays(0)
        .storageAccountAccessKey("string")
        .storageBlobEndpoint("string")
        .encryptionPassword("string")
        .manualSchedule(VirtualMachineAutoBackupManualScheduleArgs.builder()
            .fullBackupFrequency("string")
            .fullBackupStartHour(0)
            .fullBackupWindowInHours(0)
            .logBackupFrequencyInMinutes(0)
            .daysOfWeeks("string")
            .build())
        .systemDatabasesBackupEnabled(false)
        .build())
    .wsfcDomainCredential(VirtualMachineWsfcDomainCredentialArgs.builder()
        .clusterBootstrapAccountPassword("string")
        .clusterOperatorAccountPassword("string")
        .sqlServiceAccountPassword("string")
        .build())
    .build());
azure_virtual_machine_resource = azure.mssql.VirtualMachine("azureVirtualMachineResource",
    virtual_machine_id="string",
    sql_connectivity_update_username="string",
    sql_instance={
        "adhoc_workloads_optimization_enabled": False,
        "collation": "string",
        "instant_file_initialization_enabled": False,
        "lock_pages_in_memory_enabled": False,
        "max_dop": 0,
        "max_server_memory_mb": 0,
        "min_server_memory_mb": 0,
    },
    key_vault_credential={
        "key_vault_url": "string",
        "name": "string",
        "service_principal_name": "string",
        "service_principal_secret": "string",
    },
    r_services_enabled=False,
    sql_connectivity_port=0,
    sql_connectivity_type="string",
    auto_patching={
        "day_of_week": "string",
        "maintenance_window_duration_in_minutes": 0,
        "maintenance_window_starting_hour": 0,
    },
    assessment={
        "enabled": False,
        "run_immediately": False,
        "schedule": {
            "day_of_week": "string",
            "start_time": "string",
            "monthly_occurrence": 0,
            "weekly_interval": 0,
        },
    },
    sql_connectivity_update_password="string",
    sql_license_type="string",
    sql_virtual_machine_group_id="string",
    storage_configuration={
        "disk_type": "string",
        "storage_workload_type": "string",
        "data_settings": {
            "default_file_path": "string",
            "luns": [0],
        },
        "log_settings": {
            "default_file_path": "string",
            "luns": [0],
        },
        "system_db_on_data_disk_enabled": False,
        "temp_db_settings": {
            "default_file_path": "string",
            "luns": [0],
            "data_file_count": 0,
            "data_file_growth_in_mb": 0,
            "data_file_size_mb": 0,
            "log_file_growth_mb": 0,
            "log_file_size_mb": 0,
        },
    },
    tags={
        "string": "string",
    },
    auto_backup={
        "retention_period_in_days": 0,
        "storage_account_access_key": "string",
        "storage_blob_endpoint": "string",
        "encryption_password": "string",
        "manual_schedule": {
            "full_backup_frequency": "string",
            "full_backup_start_hour": 0,
            "full_backup_window_in_hours": 0,
            "log_backup_frequency_in_minutes": 0,
            "days_of_weeks": ["string"],
        },
        "system_databases_backup_enabled": False,
    },
    wsfc_domain_credential={
        "cluster_bootstrap_account_password": "string",
        "cluster_operator_account_password": "string",
        "sql_service_account_password": "string",
    })
const azureVirtualMachineResource = new azure.mssql.VirtualMachine("azureVirtualMachineResource", {
    virtualMachineId: "string",
    sqlConnectivityUpdateUsername: "string",
    sqlInstance: {
        adhocWorkloadsOptimizationEnabled: false,
        collation: "string",
        instantFileInitializationEnabled: false,
        lockPagesInMemoryEnabled: false,
        maxDop: 0,
        maxServerMemoryMb: 0,
        minServerMemoryMb: 0,
    },
    keyVaultCredential: {
        keyVaultUrl: "string",
        name: "string",
        servicePrincipalName: "string",
        servicePrincipalSecret: "string",
    },
    rServicesEnabled: false,
    sqlConnectivityPort: 0,
    sqlConnectivityType: "string",
    autoPatching: {
        dayOfWeek: "string",
        maintenanceWindowDurationInMinutes: 0,
        maintenanceWindowStartingHour: 0,
    },
    assessment: {
        enabled: false,
        runImmediately: false,
        schedule: {
            dayOfWeek: "string",
            startTime: "string",
            monthlyOccurrence: 0,
            weeklyInterval: 0,
        },
    },
    sqlConnectivityUpdatePassword: "string",
    sqlLicenseType: "string",
    sqlVirtualMachineGroupId: "string",
    storageConfiguration: {
        diskType: "string",
        storageWorkloadType: "string",
        dataSettings: {
            defaultFilePath: "string",
            luns: [0],
        },
        logSettings: {
            defaultFilePath: "string",
            luns: [0],
        },
        systemDbOnDataDiskEnabled: false,
        tempDbSettings: {
            defaultFilePath: "string",
            luns: [0],
            dataFileCount: 0,
            dataFileGrowthInMb: 0,
            dataFileSizeMb: 0,
            logFileGrowthMb: 0,
            logFileSizeMb: 0,
        },
    },
    tags: {
        string: "string",
    },
    autoBackup: {
        retentionPeriodInDays: 0,
        storageAccountAccessKey: "string",
        storageBlobEndpoint: "string",
        encryptionPassword: "string",
        manualSchedule: {
            fullBackupFrequency: "string",
            fullBackupStartHour: 0,
            fullBackupWindowInHours: 0,
            logBackupFrequencyInMinutes: 0,
            daysOfWeeks: ["string"],
        },
        systemDatabasesBackupEnabled: false,
    },
    wsfcDomainCredential: {
        clusterBootstrapAccountPassword: "string",
        clusterOperatorAccountPassword: "string",
        sqlServiceAccountPassword: "string",
    },
});
type: azure:mssql:VirtualMachine
properties:
    assessment:
        enabled: false
        runImmediately: false
        schedule:
            dayOfWeek: string
            monthlyOccurrence: 0
            startTime: string
            weeklyInterval: 0
    autoBackup:
        encryptionPassword: string
        manualSchedule:
            daysOfWeeks:
                - string
            fullBackupFrequency: string
            fullBackupStartHour: 0
            fullBackupWindowInHours: 0
            logBackupFrequencyInMinutes: 0
        retentionPeriodInDays: 0
        storageAccountAccessKey: string
        storageBlobEndpoint: string
        systemDatabasesBackupEnabled: false
    autoPatching:
        dayOfWeek: string
        maintenanceWindowDurationInMinutes: 0
        maintenanceWindowStartingHour: 0
    keyVaultCredential:
        keyVaultUrl: string
        name: string
        servicePrincipalName: string
        servicePrincipalSecret: string
    rServicesEnabled: false
    sqlConnectivityPort: 0
    sqlConnectivityType: string
    sqlConnectivityUpdatePassword: string
    sqlConnectivityUpdateUsername: string
    sqlInstance:
        adhocWorkloadsOptimizationEnabled: false
        collation: string
        instantFileInitializationEnabled: false
        lockPagesInMemoryEnabled: false
        maxDop: 0
        maxServerMemoryMb: 0
        minServerMemoryMb: 0
    sqlLicenseType: string
    sqlVirtualMachineGroupId: string
    storageConfiguration:
        dataSettings:
            defaultFilePath: string
            luns:
                - 0
        diskType: string
        logSettings:
            defaultFilePath: string
            luns:
                - 0
        storageWorkloadType: string
        systemDbOnDataDiskEnabled: false
        tempDbSettings:
            dataFileCount: 0
            dataFileGrowthInMb: 0
            dataFileSizeMb: 0
            defaultFilePath: string
            logFileGrowthMb: 0
            logFileSizeMb: 0
            luns:
                - 0
    tags:
        string: string
    virtualMachineId: string
    wsfcDomainCredential:
        clusterBootstrapAccountPassword: string
        clusterOperatorAccountPassword: string
        sqlServiceAccountPassword: string
VirtualMachine Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VirtualMachine resource accepts the following input properties:
- VirtualMachine stringId 
- The ID of the Virtual Machine. Changing this forces a new resource to be created.
- Assessment
VirtualMachine Assessment 
- An assessmentblock as defined below.
- AutoBackup VirtualMachine Auto Backup 
- An auto_backupblock as defined below. This block can be added to an existing resource, but removing this block forces a new resource to be created.
- AutoPatching VirtualMachine Auto Patching 
- An auto_patchingblock as defined below.
- KeyVault VirtualCredential Machine Key Vault Credential 
- An key_vault_credentialblock as defined below.
- RServicesEnabled bool
- Should R Services be enabled?
- SqlConnectivity intPort 
- The SQL Server port. Defaults to 1433.
- SqlConnectivity stringType 
- The connectivity type used for this SQL Server. Possible values are LOCAL,PRIVATEandPUBLIC. Defaults toPRIVATE.
- SqlConnectivity stringUpdate Password 
- The SQL Server sysadmin login password.
- SqlConnectivity stringUpdate Username 
- The SQL Server sysadmin login to create.
- SqlInstance VirtualMachine Sql Instance 
- A sql_instanceblock as defined below.
- SqlLicense stringType 
- The SQL Server license type. Possible values are AHUB(Azure Hybrid Benefit),DR(Disaster Recovery), andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.
- SqlVirtual stringMachine Group Id 
- The ID of the SQL Virtual Machine Group that the SQL Virtual Machine belongs to.
- StorageConfiguration VirtualMachine Storage Configuration 
- An storage_configurationblock as defined below.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- WsfcDomain VirtualCredential Machine Wsfc Domain Credential 
- A wsfc_domain_credentialblock as defined below
- VirtualMachine stringId 
- The ID of the Virtual Machine. Changing this forces a new resource to be created.
- Assessment
VirtualMachine Assessment Args 
- An assessmentblock as defined below.
- AutoBackup VirtualMachine Auto Backup Args 
- An auto_backupblock as defined below. This block can be added to an existing resource, but removing this block forces a new resource to be created.
- AutoPatching VirtualMachine Auto Patching Args 
- An auto_patchingblock as defined below.
- KeyVault VirtualCredential Machine Key Vault Credential Args 
- An key_vault_credentialblock as defined below.
- RServicesEnabled bool
- Should R Services be enabled?
- SqlConnectivity intPort 
- The SQL Server port. Defaults to 1433.
- SqlConnectivity stringType 
- The connectivity type used for this SQL Server. Possible values are LOCAL,PRIVATEandPUBLIC. Defaults toPRIVATE.
- SqlConnectivity stringUpdate Password 
- The SQL Server sysadmin login password.
- SqlConnectivity stringUpdate Username 
- The SQL Server sysadmin login to create.
- SqlInstance VirtualMachine Sql Instance Args 
- A sql_instanceblock as defined below.
- SqlLicense stringType 
- The SQL Server license type. Possible values are AHUB(Azure Hybrid Benefit),DR(Disaster Recovery), andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.
- SqlVirtual stringMachine Group Id 
- The ID of the SQL Virtual Machine Group that the SQL Virtual Machine belongs to.
- StorageConfiguration VirtualMachine Storage Configuration Args 
- An storage_configurationblock as defined below.
- map[string]string
- A mapping of tags to assign to the resource.
- WsfcDomain VirtualCredential Machine Wsfc Domain Credential Args 
- A wsfc_domain_credentialblock as defined below
- virtualMachine StringId 
- The ID of the Virtual Machine. Changing this forces a new resource to be created.
- assessment
VirtualMachine Assessment 
- An assessmentblock as defined below.
- autoBackup VirtualMachine Auto Backup 
- An auto_backupblock as defined below. This block can be added to an existing resource, but removing this block forces a new resource to be created.
- autoPatching VirtualMachine Auto Patching 
- An auto_patchingblock as defined below.
- keyVault VirtualCredential Machine Key Vault Credential 
- An key_vault_credentialblock as defined below.
- rServices BooleanEnabled 
- Should R Services be enabled?
- sqlConnectivity IntegerPort 
- The SQL Server port. Defaults to 1433.
- sqlConnectivity StringType 
- The connectivity type used for this SQL Server. Possible values are LOCAL,PRIVATEandPUBLIC. Defaults toPRIVATE.
- sqlConnectivity StringUpdate Password 
- The SQL Server sysadmin login password.
- sqlConnectivity StringUpdate Username 
- The SQL Server sysadmin login to create.
- sqlInstance VirtualMachine Sql Instance 
- A sql_instanceblock as defined below.
- sqlLicense StringType 
- The SQL Server license type. Possible values are AHUB(Azure Hybrid Benefit),DR(Disaster Recovery), andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.
- sqlVirtual StringMachine Group Id 
- The ID of the SQL Virtual Machine Group that the SQL Virtual Machine belongs to.
- storageConfiguration VirtualMachine Storage Configuration 
- An storage_configurationblock as defined below.
- Map<String,String>
- A mapping of tags to assign to the resource.
- wsfcDomain VirtualCredential Machine Wsfc Domain Credential 
- A wsfc_domain_credentialblock as defined below
- virtualMachine stringId 
- The ID of the Virtual Machine. Changing this forces a new resource to be created.
- assessment
VirtualMachine Assessment 
- An assessmentblock as defined below.
- autoBackup VirtualMachine Auto Backup 
- An auto_backupblock as defined below. This block can be added to an existing resource, but removing this block forces a new resource to be created.
- autoPatching VirtualMachine Auto Patching 
- An auto_patchingblock as defined below.
- keyVault VirtualCredential Machine Key Vault Credential 
- An key_vault_credentialblock as defined below.
- rServices booleanEnabled 
- Should R Services be enabled?
- sqlConnectivity numberPort 
- The SQL Server port. Defaults to 1433.
- sqlConnectivity stringType 
- The connectivity type used for this SQL Server. Possible values are LOCAL,PRIVATEandPUBLIC. Defaults toPRIVATE.
- sqlConnectivity stringUpdate Password 
- The SQL Server sysadmin login password.
- sqlConnectivity stringUpdate Username 
- The SQL Server sysadmin login to create.
- sqlInstance VirtualMachine Sql Instance 
- A sql_instanceblock as defined below.
- sqlLicense stringType 
- The SQL Server license type. Possible values are AHUB(Azure Hybrid Benefit),DR(Disaster Recovery), andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.
- sqlVirtual stringMachine Group Id 
- The ID of the SQL Virtual Machine Group that the SQL Virtual Machine belongs to.
- storageConfiguration VirtualMachine Storage Configuration 
- An storage_configurationblock as defined below.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- wsfcDomain VirtualCredential Machine Wsfc Domain Credential 
- A wsfc_domain_credentialblock as defined below
- virtual_machine_ strid 
- The ID of the Virtual Machine. Changing this forces a new resource to be created.
- assessment
VirtualMachine Assessment Args 
- An assessmentblock as defined below.
- auto_backup VirtualMachine Auto Backup Args 
- An auto_backupblock as defined below. This block can be added to an existing resource, but removing this block forces a new resource to be created.
- auto_patching VirtualMachine Auto Patching Args 
- An auto_patchingblock as defined below.
- key_vault_ Virtualcredential Machine Key Vault Credential Args 
- An key_vault_credentialblock as defined below.
- r_services_ boolenabled 
- Should R Services be enabled?
- sql_connectivity_ intport 
- The SQL Server port. Defaults to 1433.
- sql_connectivity_ strtype 
- The connectivity type used for this SQL Server. Possible values are LOCAL,PRIVATEandPUBLIC. Defaults toPRIVATE.
- sql_connectivity_ strupdate_ password 
- The SQL Server sysadmin login password.
- sql_connectivity_ strupdate_ username 
- The SQL Server sysadmin login to create.
- sql_instance VirtualMachine Sql Instance Args 
- A sql_instanceblock as defined below.
- sql_license_ strtype 
- The SQL Server license type. Possible values are AHUB(Azure Hybrid Benefit),DR(Disaster Recovery), andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.
- sql_virtual_ strmachine_ group_ id 
- The ID of the SQL Virtual Machine Group that the SQL Virtual Machine belongs to.
- storage_configuration VirtualMachine Storage Configuration Args 
- An storage_configurationblock as defined below.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- wsfc_domain_ Virtualcredential Machine Wsfc Domain Credential Args 
- A wsfc_domain_credentialblock as defined below
- virtualMachine StringId 
- The ID of the Virtual Machine. Changing this forces a new resource to be created.
- assessment Property Map
- An assessmentblock as defined below.
- autoBackup Property Map
- An auto_backupblock as defined below. This block can be added to an existing resource, but removing this block forces a new resource to be created.
- autoPatching Property Map
- An auto_patchingblock as defined below.
- keyVault Property MapCredential 
- An key_vault_credentialblock as defined below.
- rServices BooleanEnabled 
- Should R Services be enabled?
- sqlConnectivity NumberPort 
- The SQL Server port. Defaults to 1433.
- sqlConnectivity StringType 
- The connectivity type used for this SQL Server. Possible values are LOCAL,PRIVATEandPUBLIC. Defaults toPRIVATE.
- sqlConnectivity StringUpdate Password 
- The SQL Server sysadmin login password.
- sqlConnectivity StringUpdate Username 
- The SQL Server sysadmin login to create.
- sqlInstance Property Map
- A sql_instanceblock as defined below.
- sqlLicense StringType 
- The SQL Server license type. Possible values are AHUB(Azure Hybrid Benefit),DR(Disaster Recovery), andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.
- sqlVirtual StringMachine Group Id 
- The ID of the SQL Virtual Machine Group that the SQL Virtual Machine belongs to.
- storageConfiguration Property Map
- An storage_configurationblock as defined below.
- Map<String>
- A mapping of tags to assign to the resource.
- wsfcDomain Property MapCredential 
- A wsfc_domain_credentialblock as defined below
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualMachine resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing VirtualMachine Resource
Get an existing VirtualMachine 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?: VirtualMachineState, opts?: CustomResourceOptions): VirtualMachine@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        assessment: Optional[VirtualMachineAssessmentArgs] = None,
        auto_backup: Optional[VirtualMachineAutoBackupArgs] = None,
        auto_patching: Optional[VirtualMachineAutoPatchingArgs] = None,
        key_vault_credential: Optional[VirtualMachineKeyVaultCredentialArgs] = None,
        r_services_enabled: Optional[bool] = None,
        sql_connectivity_port: Optional[int] = None,
        sql_connectivity_type: Optional[str] = None,
        sql_connectivity_update_password: Optional[str] = None,
        sql_connectivity_update_username: Optional[str] = None,
        sql_instance: Optional[VirtualMachineSqlInstanceArgs] = None,
        sql_license_type: Optional[str] = None,
        sql_virtual_machine_group_id: Optional[str] = None,
        storage_configuration: Optional[VirtualMachineStorageConfigurationArgs] = None,
        tags: Optional[Mapping[str, str]] = None,
        virtual_machine_id: Optional[str] = None,
        wsfc_domain_credential: Optional[VirtualMachineWsfcDomainCredentialArgs] = None) -> VirtualMachinefunc GetVirtualMachine(ctx *Context, name string, id IDInput, state *VirtualMachineState, opts ...ResourceOption) (*VirtualMachine, error)public static VirtualMachine Get(string name, Input<string> id, VirtualMachineState? state, CustomResourceOptions? opts = null)public static VirtualMachine get(String name, Output<String> id, VirtualMachineState state, CustomResourceOptions options)resources:  _:    type: azure:mssql:VirtualMachine    get:      id: ${id}- 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.
- 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.
- Assessment
VirtualMachine Assessment 
- An assessmentblock as defined below.
- AutoBackup VirtualMachine Auto Backup 
- An auto_backupblock as defined below. This block can be added to an existing resource, but removing this block forces a new resource to be created.
- AutoPatching VirtualMachine Auto Patching 
- An auto_patchingblock as defined below.
- KeyVault VirtualCredential Machine Key Vault Credential 
- An key_vault_credentialblock as defined below.
- RServicesEnabled bool
- Should R Services be enabled?
- SqlConnectivity intPort 
- The SQL Server port. Defaults to 1433.
- SqlConnectivity stringType 
- The connectivity type used for this SQL Server. Possible values are LOCAL,PRIVATEandPUBLIC. Defaults toPRIVATE.
- SqlConnectivity stringUpdate Password 
- The SQL Server sysadmin login password.
- SqlConnectivity stringUpdate Username 
- The SQL Server sysadmin login to create.
- SqlInstance VirtualMachine Sql Instance 
- A sql_instanceblock as defined below.
- SqlLicense stringType 
- The SQL Server license type. Possible values are AHUB(Azure Hybrid Benefit),DR(Disaster Recovery), andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.
- SqlVirtual stringMachine Group Id 
- The ID of the SQL Virtual Machine Group that the SQL Virtual Machine belongs to.
- StorageConfiguration VirtualMachine Storage Configuration 
- An storage_configurationblock as defined below.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- VirtualMachine stringId 
- The ID of the Virtual Machine. Changing this forces a new resource to be created.
- WsfcDomain VirtualCredential Machine Wsfc Domain Credential 
- A wsfc_domain_credentialblock as defined below
- Assessment
VirtualMachine Assessment Args 
- An assessmentblock as defined below.
- AutoBackup VirtualMachine Auto Backup Args 
- An auto_backupblock as defined below. This block can be added to an existing resource, but removing this block forces a new resource to be created.
- AutoPatching VirtualMachine Auto Patching Args 
- An auto_patchingblock as defined below.
- KeyVault VirtualCredential Machine Key Vault Credential Args 
- An key_vault_credentialblock as defined below.
- RServicesEnabled bool
- Should R Services be enabled?
- SqlConnectivity intPort 
- The SQL Server port. Defaults to 1433.
- SqlConnectivity stringType 
- The connectivity type used for this SQL Server. Possible values are LOCAL,PRIVATEandPUBLIC. Defaults toPRIVATE.
- SqlConnectivity stringUpdate Password 
- The SQL Server sysadmin login password.
- SqlConnectivity stringUpdate Username 
- The SQL Server sysadmin login to create.
- SqlInstance VirtualMachine Sql Instance Args 
- A sql_instanceblock as defined below.
- SqlLicense stringType 
- The SQL Server license type. Possible values are AHUB(Azure Hybrid Benefit),DR(Disaster Recovery), andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.
- SqlVirtual stringMachine Group Id 
- The ID of the SQL Virtual Machine Group that the SQL Virtual Machine belongs to.
- StorageConfiguration VirtualMachine Storage Configuration Args 
- An storage_configurationblock as defined below.
- map[string]string
- A mapping of tags to assign to the resource.
- VirtualMachine stringId 
- The ID of the Virtual Machine. Changing this forces a new resource to be created.
- WsfcDomain VirtualCredential Machine Wsfc Domain Credential Args 
- A wsfc_domain_credentialblock as defined below
- assessment
VirtualMachine Assessment 
- An assessmentblock as defined below.
- autoBackup VirtualMachine Auto Backup 
- An auto_backupblock as defined below. This block can be added to an existing resource, but removing this block forces a new resource to be created.
- autoPatching VirtualMachine Auto Patching 
- An auto_patchingblock as defined below.
- keyVault VirtualCredential Machine Key Vault Credential 
- An key_vault_credentialblock as defined below.
- rServices BooleanEnabled 
- Should R Services be enabled?
- sqlConnectivity IntegerPort 
- The SQL Server port. Defaults to 1433.
- sqlConnectivity StringType 
- The connectivity type used for this SQL Server. Possible values are LOCAL,PRIVATEandPUBLIC. Defaults toPRIVATE.
- sqlConnectivity StringUpdate Password 
- The SQL Server sysadmin login password.
- sqlConnectivity StringUpdate Username 
- The SQL Server sysadmin login to create.
- sqlInstance VirtualMachine Sql Instance 
- A sql_instanceblock as defined below.
- sqlLicense StringType 
- The SQL Server license type. Possible values are AHUB(Azure Hybrid Benefit),DR(Disaster Recovery), andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.
- sqlVirtual StringMachine Group Id 
- The ID of the SQL Virtual Machine Group that the SQL Virtual Machine belongs to.
- storageConfiguration VirtualMachine Storage Configuration 
- An storage_configurationblock as defined below.
- Map<String,String>
- A mapping of tags to assign to the resource.
- virtualMachine StringId 
- The ID of the Virtual Machine. Changing this forces a new resource to be created.
- wsfcDomain VirtualCredential Machine Wsfc Domain Credential 
- A wsfc_domain_credentialblock as defined below
- assessment
VirtualMachine Assessment 
- An assessmentblock as defined below.
- autoBackup VirtualMachine Auto Backup 
- An auto_backupblock as defined below. This block can be added to an existing resource, but removing this block forces a new resource to be created.
- autoPatching VirtualMachine Auto Patching 
- An auto_patchingblock as defined below.
- keyVault VirtualCredential Machine Key Vault Credential 
- An key_vault_credentialblock as defined below.
- rServices booleanEnabled 
- Should R Services be enabled?
- sqlConnectivity numberPort 
- The SQL Server port. Defaults to 1433.
- sqlConnectivity stringType 
- The connectivity type used for this SQL Server. Possible values are LOCAL,PRIVATEandPUBLIC. Defaults toPRIVATE.
- sqlConnectivity stringUpdate Password 
- The SQL Server sysadmin login password.
- sqlConnectivity stringUpdate Username 
- The SQL Server sysadmin login to create.
- sqlInstance VirtualMachine Sql Instance 
- A sql_instanceblock as defined below.
- sqlLicense stringType 
- The SQL Server license type. Possible values are AHUB(Azure Hybrid Benefit),DR(Disaster Recovery), andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.
- sqlVirtual stringMachine Group Id 
- The ID of the SQL Virtual Machine Group that the SQL Virtual Machine belongs to.
- storageConfiguration VirtualMachine Storage Configuration 
- An storage_configurationblock as defined below.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- virtualMachine stringId 
- The ID of the Virtual Machine. Changing this forces a new resource to be created.
- wsfcDomain VirtualCredential Machine Wsfc Domain Credential 
- A wsfc_domain_credentialblock as defined below
- assessment
VirtualMachine Assessment Args 
- An assessmentblock as defined below.
- auto_backup VirtualMachine Auto Backup Args 
- An auto_backupblock as defined below. This block can be added to an existing resource, but removing this block forces a new resource to be created.
- auto_patching VirtualMachine Auto Patching Args 
- An auto_patchingblock as defined below.
- key_vault_ Virtualcredential Machine Key Vault Credential Args 
- An key_vault_credentialblock as defined below.
- r_services_ boolenabled 
- Should R Services be enabled?
- sql_connectivity_ intport 
- The SQL Server port. Defaults to 1433.
- sql_connectivity_ strtype 
- The connectivity type used for this SQL Server. Possible values are LOCAL,PRIVATEandPUBLIC. Defaults toPRIVATE.
- sql_connectivity_ strupdate_ password 
- The SQL Server sysadmin login password.
- sql_connectivity_ strupdate_ username 
- The SQL Server sysadmin login to create.
- sql_instance VirtualMachine Sql Instance Args 
- A sql_instanceblock as defined below.
- sql_license_ strtype 
- The SQL Server license type. Possible values are AHUB(Azure Hybrid Benefit),DR(Disaster Recovery), andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.
- sql_virtual_ strmachine_ group_ id 
- The ID of the SQL Virtual Machine Group that the SQL Virtual Machine belongs to.
- storage_configuration VirtualMachine Storage Configuration Args 
- An storage_configurationblock as defined below.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- virtual_machine_ strid 
- The ID of the Virtual Machine. Changing this forces a new resource to be created.
- wsfc_domain_ Virtualcredential Machine Wsfc Domain Credential Args 
- A wsfc_domain_credentialblock as defined below
- assessment Property Map
- An assessmentblock as defined below.
- autoBackup Property Map
- An auto_backupblock as defined below. This block can be added to an existing resource, but removing this block forces a new resource to be created.
- autoPatching Property Map
- An auto_patchingblock as defined below.
- keyVault Property MapCredential 
- An key_vault_credentialblock as defined below.
- rServices BooleanEnabled 
- Should R Services be enabled?
- sqlConnectivity NumberPort 
- The SQL Server port. Defaults to 1433.
- sqlConnectivity StringType 
- The connectivity type used for this SQL Server. Possible values are LOCAL,PRIVATEandPUBLIC. Defaults toPRIVATE.
- sqlConnectivity StringUpdate Password 
- The SQL Server sysadmin login password.
- sqlConnectivity StringUpdate Username 
- The SQL Server sysadmin login to create.
- sqlInstance Property Map
- A sql_instanceblock as defined below.
- sqlLicense StringType 
- The SQL Server license type. Possible values are AHUB(Azure Hybrid Benefit),DR(Disaster Recovery), andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.
- sqlVirtual StringMachine Group Id 
- The ID of the SQL Virtual Machine Group that the SQL Virtual Machine belongs to.
- storageConfiguration Property Map
- An storage_configurationblock as defined below.
- Map<String>
- A mapping of tags to assign to the resource.
- virtualMachine StringId 
- The ID of the Virtual Machine. Changing this forces a new resource to be created.
- wsfcDomain Property MapCredential 
- A wsfc_domain_credentialblock as defined below
Supporting Types
VirtualMachineAssessment, VirtualMachineAssessmentArgs      
- Enabled bool
- Should Assessment be enabled? Defaults to true.
- RunImmediately bool
- Should Assessment be run immediately? Defaults to false.
- Schedule
VirtualMachine Assessment Schedule 
- An scheduleblock as defined below.
- Enabled bool
- Should Assessment be enabled? Defaults to true.
- RunImmediately bool
- Should Assessment be run immediately? Defaults to false.
- Schedule
VirtualMachine Assessment Schedule 
- An scheduleblock as defined below.
- enabled Boolean
- Should Assessment be enabled? Defaults to true.
- runImmediately Boolean
- Should Assessment be run immediately? Defaults to false.
- schedule
VirtualMachine Assessment Schedule 
- An scheduleblock as defined below.
- enabled boolean
- Should Assessment be enabled? Defaults to true.
- runImmediately boolean
- Should Assessment be run immediately? Defaults to false.
- schedule
VirtualMachine Assessment Schedule 
- An scheduleblock as defined below.
- enabled bool
- Should Assessment be enabled? Defaults to true.
- run_immediately bool
- Should Assessment be run immediately? Defaults to false.
- schedule
VirtualMachine Assessment Schedule 
- An scheduleblock as defined below.
- enabled Boolean
- Should Assessment be enabled? Defaults to true.
- runImmediately Boolean
- Should Assessment be run immediately? Defaults to false.
- schedule Property Map
- An scheduleblock as defined below.
VirtualMachineAssessmentSchedule, VirtualMachineAssessmentScheduleArgs        
- DayOf stringWeek 
- What day of the week the assessment will be run. Possible values are Friday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- StartTime string
- What time the assessment will be run. Must be in the format HH:mm.
- MonthlyOccurrence int
- How many months between assessment runs. Valid values are between - 1and- 5.- NOTE: Either one of - weekly_intervalor- monthly_occurrencemust be specified.
- WeeklyInterval int
- How many weeks between assessment runs. Valid values are between 1and6.
- DayOf stringWeek 
- What day of the week the assessment will be run. Possible values are Friday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- StartTime string
- What time the assessment will be run. Must be in the format HH:mm.
- MonthlyOccurrence int
- How many months between assessment runs. Valid values are between - 1and- 5.- NOTE: Either one of - weekly_intervalor- monthly_occurrencemust be specified.
- WeeklyInterval int
- How many weeks between assessment runs. Valid values are between 1and6.
- dayOf StringWeek 
- What day of the week the assessment will be run. Possible values are Friday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- startTime String
- What time the assessment will be run. Must be in the format HH:mm.
- monthlyOccurrence Integer
- How many months between assessment runs. Valid values are between - 1and- 5.- NOTE: Either one of - weekly_intervalor- monthly_occurrencemust be specified.
- weeklyInterval Integer
- How many weeks between assessment runs. Valid values are between 1and6.
- dayOf stringWeek 
- What day of the week the assessment will be run. Possible values are Friday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- startTime string
- What time the assessment will be run. Must be in the format HH:mm.
- monthlyOccurrence number
- How many months between assessment runs. Valid values are between - 1and- 5.- NOTE: Either one of - weekly_intervalor- monthly_occurrencemust be specified.
- weeklyInterval number
- How many weeks between assessment runs. Valid values are between 1and6.
- day_of_ strweek 
- What day of the week the assessment will be run. Possible values are Friday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- start_time str
- What time the assessment will be run. Must be in the format HH:mm.
- monthly_occurrence int
- How many months between assessment runs. Valid values are between - 1and- 5.- NOTE: Either one of - weekly_intervalor- monthly_occurrencemust be specified.
- weekly_interval int
- How many weeks between assessment runs. Valid values are between 1and6.
- dayOf StringWeek 
- What day of the week the assessment will be run. Possible values are Friday,Monday,Saturday,Sunday,Thursday,TuesdayandWednesday.
- startTime String
- What time the assessment will be run. Must be in the format HH:mm.
- monthlyOccurrence Number
- How many months between assessment runs. Valid values are between - 1and- 5.- NOTE: Either one of - weekly_intervalor- monthly_occurrencemust be specified.
- weeklyInterval Number
- How many weeks between assessment runs. Valid values are between 1and6.
VirtualMachineAutoBackup, VirtualMachineAutoBackupArgs        
- RetentionPeriod intIn Days 
- Retention period of backups, in days. Valid values are from 1to30.
- StorageAccount stringAccess Key 
- Access key for the storage account where backups will be kept.
- StorageBlob stringEndpoint 
- Blob endpoint for the storage account where backups will be kept.
- EncryptionEnabled bool
- EncryptionPassword string
- Encryption password to use. Setting a password will enable encryption.
- ManualSchedule VirtualMachine Auto Backup Manual Schedule 
- A manual_scheduleblock as documented below. When this block is present, the schedule type is set toManual. Without this block, the schedule type is set toAutomated.
- SystemDatabases boolBackup Enabled 
- Include or exclude system databases from auto backup.
- RetentionPeriod intIn Days 
- Retention period of backups, in days. Valid values are from 1to30.
- StorageAccount stringAccess Key 
- Access key for the storage account where backups will be kept.
- StorageBlob stringEndpoint 
- Blob endpoint for the storage account where backups will be kept.
- EncryptionEnabled bool
- EncryptionPassword string
- Encryption password to use. Setting a password will enable encryption.
- ManualSchedule VirtualMachine Auto Backup Manual Schedule 
- A manual_scheduleblock as documented below. When this block is present, the schedule type is set toManual. Without this block, the schedule type is set toAutomated.
- SystemDatabases boolBackup Enabled 
- Include or exclude system databases from auto backup.
- retentionPeriod IntegerIn Days 
- Retention period of backups, in days. Valid values are from 1to30.
- storageAccount StringAccess Key 
- Access key for the storage account where backups will be kept.
- storageBlob StringEndpoint 
- Blob endpoint for the storage account where backups will be kept.
- encryptionEnabled Boolean
- encryptionPassword String
- Encryption password to use. Setting a password will enable encryption.
- manualSchedule VirtualMachine Auto Backup Manual Schedule 
- A manual_scheduleblock as documented below. When this block is present, the schedule type is set toManual. Without this block, the schedule type is set toAutomated.
- systemDatabases BooleanBackup Enabled 
- Include or exclude system databases from auto backup.
- retentionPeriod numberIn Days 
- Retention period of backups, in days. Valid values are from 1to30.
- storageAccount stringAccess Key 
- Access key for the storage account where backups will be kept.
- storageBlob stringEndpoint 
- Blob endpoint for the storage account where backups will be kept.
- encryptionEnabled boolean
- encryptionPassword string
- Encryption password to use. Setting a password will enable encryption.
- manualSchedule VirtualMachine Auto Backup Manual Schedule 
- A manual_scheduleblock as documented below. When this block is present, the schedule type is set toManual. Without this block, the schedule type is set toAutomated.
- systemDatabases booleanBackup Enabled 
- Include or exclude system databases from auto backup.
- retention_period_ intin_ days 
- Retention period of backups, in days. Valid values are from 1to30.
- storage_account_ straccess_ key 
- Access key for the storage account where backups will be kept.
- storage_blob_ strendpoint 
- Blob endpoint for the storage account where backups will be kept.
- encryption_enabled bool
- encryption_password str
- Encryption password to use. Setting a password will enable encryption.
- manual_schedule VirtualMachine Auto Backup Manual Schedule 
- A manual_scheduleblock as documented below. When this block is present, the schedule type is set toManual. Without this block, the schedule type is set toAutomated.
- system_databases_ boolbackup_ enabled 
- Include or exclude system databases from auto backup.
- retentionPeriod NumberIn Days 
- Retention period of backups, in days. Valid values are from 1to30.
- storageAccount StringAccess Key 
- Access key for the storage account where backups will be kept.
- storageBlob StringEndpoint 
- Blob endpoint for the storage account where backups will be kept.
- encryptionEnabled Boolean
- encryptionPassword String
- Encryption password to use. Setting a password will enable encryption.
- manualSchedule Property Map
- A manual_scheduleblock as documented below. When this block is present, the schedule type is set toManual. Without this block, the schedule type is set toAutomated.
- systemDatabases BooleanBackup Enabled 
- Include or exclude system databases from auto backup.
VirtualMachineAutoBackupManualSchedule, VirtualMachineAutoBackupManualScheduleArgs            
- FullBackup stringFrequency 
- Frequency of full backups. Valid values include DailyorWeekly.
- FullBackup intStart Hour 
- Start hour of a given day during which full backups can take place. Valid values are from 0to23.
- FullBackup intWindow In Hours 
- Duration of the time window of a given day during which full backups can take place, in hours. Valid values are between 1and23.
- LogBackup intFrequency In Minutes 
- Frequency of log backups, in minutes. Valid values are from 5to60.
- DaysOf List<string>Weeks 
- A list of days on which backup can take place. Possible values are - Monday,- Tuesday,- Wednesday,- Thursday,- Friday,- Saturdayand- Sunday- NOTE: - days_of_weekcan only be specified when- manual_scheduleis set to- Weekly
- FullBackup stringFrequency 
- Frequency of full backups. Valid values include DailyorWeekly.
- FullBackup intStart Hour 
- Start hour of a given day during which full backups can take place. Valid values are from 0to23.
- FullBackup intWindow In Hours 
- Duration of the time window of a given day during which full backups can take place, in hours. Valid values are between 1and23.
- LogBackup intFrequency In Minutes 
- Frequency of log backups, in minutes. Valid values are from 5to60.
- DaysOf []stringWeeks 
- A list of days on which backup can take place. Possible values are - Monday,- Tuesday,- Wednesday,- Thursday,- Friday,- Saturdayand- Sunday- NOTE: - days_of_weekcan only be specified when- manual_scheduleis set to- Weekly
- fullBackup StringFrequency 
- Frequency of full backups. Valid values include DailyorWeekly.
- fullBackup IntegerStart Hour 
- Start hour of a given day during which full backups can take place. Valid values are from 0to23.
- fullBackup IntegerWindow In Hours 
- Duration of the time window of a given day during which full backups can take place, in hours. Valid values are between 1and23.
- logBackup IntegerFrequency In Minutes 
- Frequency of log backups, in minutes. Valid values are from 5to60.
- daysOf List<String>Weeks 
- A list of days on which backup can take place. Possible values are - Monday,- Tuesday,- Wednesday,- Thursday,- Friday,- Saturdayand- Sunday- NOTE: - days_of_weekcan only be specified when- manual_scheduleis set to- Weekly
- fullBackup stringFrequency 
- Frequency of full backups. Valid values include DailyorWeekly.
- fullBackup numberStart Hour 
- Start hour of a given day during which full backups can take place. Valid values are from 0to23.
- fullBackup numberWindow In Hours 
- Duration of the time window of a given day during which full backups can take place, in hours. Valid values are between 1and23.
- logBackup numberFrequency In Minutes 
- Frequency of log backups, in minutes. Valid values are from 5to60.
- daysOf string[]Weeks 
- A list of days on which backup can take place. Possible values are - Monday,- Tuesday,- Wednesday,- Thursday,- Friday,- Saturdayand- Sunday- NOTE: - days_of_weekcan only be specified when- manual_scheduleis set to- Weekly
- full_backup_ strfrequency 
- Frequency of full backups. Valid values include DailyorWeekly.
- full_backup_ intstart_ hour 
- Start hour of a given day during which full backups can take place. Valid values are from 0to23.
- full_backup_ intwindow_ in_ hours 
- Duration of the time window of a given day during which full backups can take place, in hours. Valid values are between 1and23.
- log_backup_ intfrequency_ in_ minutes 
- Frequency of log backups, in minutes. Valid values are from 5to60.
- days_of_ Sequence[str]weeks 
- A list of days on which backup can take place. Possible values are - Monday,- Tuesday,- Wednesday,- Thursday,- Friday,- Saturdayand- Sunday- NOTE: - days_of_weekcan only be specified when- manual_scheduleis set to- Weekly
- fullBackup StringFrequency 
- Frequency of full backups. Valid values include DailyorWeekly.
- fullBackup NumberStart Hour 
- Start hour of a given day during which full backups can take place. Valid values are from 0to23.
- fullBackup NumberWindow In Hours 
- Duration of the time window of a given day during which full backups can take place, in hours. Valid values are between 1and23.
- logBackup NumberFrequency In Minutes 
- Frequency of log backups, in minutes. Valid values are from 5to60.
- daysOf List<String>Weeks 
- A list of days on which backup can take place. Possible values are - Monday,- Tuesday,- Wednesday,- Thursday,- Friday,- Saturdayand- Sunday- NOTE: - days_of_weekcan only be specified when- manual_scheduleis set to- Weekly
VirtualMachineAutoPatching, VirtualMachineAutoPatchingArgs        
- DayOf stringWeek 
- The day of week to apply the patch on. Possible values are Monday,Tuesday,Wednesday,Thursday,Friday,SaturdayandSunday.
- MaintenanceWindow intDuration In Minutes 
- The size of the Maintenance Window in minutes.
- MaintenanceWindow intStarting Hour 
- The Hour, in the Virtual Machine Time-Zone when the patching maintenance window should begin.
- DayOf stringWeek 
- The day of week to apply the patch on. Possible values are Monday,Tuesday,Wednesday,Thursday,Friday,SaturdayandSunday.
- MaintenanceWindow intDuration In Minutes 
- The size of the Maintenance Window in minutes.
- MaintenanceWindow intStarting Hour 
- The Hour, in the Virtual Machine Time-Zone when the patching maintenance window should begin.
- dayOf StringWeek 
- The day of week to apply the patch on. Possible values are Monday,Tuesday,Wednesday,Thursday,Friday,SaturdayandSunday.
- maintenanceWindow IntegerDuration In Minutes 
- The size of the Maintenance Window in minutes.
- maintenanceWindow IntegerStarting Hour 
- The Hour, in the Virtual Machine Time-Zone when the patching maintenance window should begin.
- dayOf stringWeek 
- The day of week to apply the patch on. Possible values are Monday,Tuesday,Wednesday,Thursday,Friday,SaturdayandSunday.
- maintenanceWindow numberDuration In Minutes 
- The size of the Maintenance Window in minutes.
- maintenanceWindow numberStarting Hour 
- The Hour, in the Virtual Machine Time-Zone when the patching maintenance window should begin.
- day_of_ strweek 
- The day of week to apply the patch on. Possible values are Monday,Tuesday,Wednesday,Thursday,Friday,SaturdayandSunday.
- maintenance_window_ intduration_ in_ minutes 
- The size of the Maintenance Window in minutes.
- maintenance_window_ intstarting_ hour 
- The Hour, in the Virtual Machine Time-Zone when the patching maintenance window should begin.
- dayOf StringWeek 
- The day of week to apply the patch on. Possible values are Monday,Tuesday,Wednesday,Thursday,Friday,SaturdayandSunday.
- maintenanceWindow NumberDuration In Minutes 
- The size of the Maintenance Window in minutes.
- maintenanceWindow NumberStarting Hour 
- The Hour, in the Virtual Machine Time-Zone when the patching maintenance window should begin.
VirtualMachineKeyVaultCredential, VirtualMachineKeyVaultCredentialArgs          
- KeyVault stringUrl 
- The Azure Key Vault url. Changing this forces a new resource to be created.
- Name string
- The credential name.
- ServicePrincipal stringName 
- The service principal name to access key vault. Changing this forces a new resource to be created.
- ServicePrincipal stringSecret 
- The service principal name secret to access key vault. Changing this forces a new resource to be created.
- KeyVault stringUrl 
- The Azure Key Vault url. Changing this forces a new resource to be created.
- Name string
- The credential name.
- ServicePrincipal stringName 
- The service principal name to access key vault. Changing this forces a new resource to be created.
- ServicePrincipal stringSecret 
- The service principal name secret to access key vault. Changing this forces a new resource to be created.
- keyVault StringUrl 
- The Azure Key Vault url. Changing this forces a new resource to be created.
- name String
- The credential name.
- servicePrincipal StringName 
- The service principal name to access key vault. Changing this forces a new resource to be created.
- servicePrincipal StringSecret 
- The service principal name secret to access key vault. Changing this forces a new resource to be created.
- keyVault stringUrl 
- The Azure Key Vault url. Changing this forces a new resource to be created.
- name string
- The credential name.
- servicePrincipal stringName 
- The service principal name to access key vault. Changing this forces a new resource to be created.
- servicePrincipal stringSecret 
- The service principal name secret to access key vault. Changing this forces a new resource to be created.
- key_vault_ strurl 
- The Azure Key Vault url. Changing this forces a new resource to be created.
- name str
- The credential name.
- service_principal_ strname 
- The service principal name to access key vault. Changing this forces a new resource to be created.
- service_principal_ strsecret 
- The service principal name secret to access key vault. Changing this forces a new resource to be created.
- keyVault StringUrl 
- The Azure Key Vault url. Changing this forces a new resource to be created.
- name String
- The credential name.
- servicePrincipal StringName 
- The service principal name to access key vault. Changing this forces a new resource to be created.
- servicePrincipal StringSecret 
- The service principal name secret to access key vault. Changing this forces a new resource to be created.
VirtualMachineSqlInstance, VirtualMachineSqlInstanceArgs        
- AdhocWorkloads boolOptimization Enabled 
- Specifies if the SQL Server is optimized for adhoc workloads. Possible values are trueandfalse. Defaults tofalse.
- Collation string
- Collation of the SQL Server. Defaults to SQL_Latin1_General_CP1_CI_AS. Changing this forces a new resource to be created.
- InstantFile boolInitialization Enabled 
- Specifies if Instant File Initialization is enabled for the SQL Server. Possible values are trueandfalse. Defaults tofalse. Changing this forces a new resource to be created.
- LockPages boolIn Memory Enabled 
- Specifies if Lock Pages in Memory is enabled for the SQL Server. Possible values are trueandfalse. Defaults tofalse. Changing this forces a new resource to be created.
- MaxDop int
- Maximum Degree of Parallelism of the SQL Server. Possible values are between 0and32767. Defaults to0.
- MaxServer intMemory Mb 
- Maximum amount memory that SQL Server Memory Manager can allocate to the SQL Server process. Possible values are between 128and2147483647Defaults to2147483647.
- MinServer intMemory Mb 
- Minimum amount memory that SQL Server Memory Manager can allocate to the SQL Server process. Possible values are between - 0and- 2147483647Defaults to- 0.- NOTE: - max_server_memory_mbmust be greater than or equal to- min_server_memory_mb
- AdhocWorkloads boolOptimization Enabled 
- Specifies if the SQL Server is optimized for adhoc workloads. Possible values are trueandfalse. Defaults tofalse.
- Collation string
- Collation of the SQL Server. Defaults to SQL_Latin1_General_CP1_CI_AS. Changing this forces a new resource to be created.
- InstantFile boolInitialization Enabled 
- Specifies if Instant File Initialization is enabled for the SQL Server. Possible values are trueandfalse. Defaults tofalse. Changing this forces a new resource to be created.
- LockPages boolIn Memory Enabled 
- Specifies if Lock Pages in Memory is enabled for the SQL Server. Possible values are trueandfalse. Defaults tofalse. Changing this forces a new resource to be created.
- MaxDop int
- Maximum Degree of Parallelism of the SQL Server. Possible values are between 0and32767. Defaults to0.
- MaxServer intMemory Mb 
- Maximum amount memory that SQL Server Memory Manager can allocate to the SQL Server process. Possible values are between 128and2147483647Defaults to2147483647.
- MinServer intMemory Mb 
- Minimum amount memory that SQL Server Memory Manager can allocate to the SQL Server process. Possible values are between - 0and- 2147483647Defaults to- 0.- NOTE: - max_server_memory_mbmust be greater than or equal to- min_server_memory_mb
- adhocWorkloads BooleanOptimization Enabled 
- Specifies if the SQL Server is optimized for adhoc workloads. Possible values are trueandfalse. Defaults tofalse.
- collation String
- Collation of the SQL Server. Defaults to SQL_Latin1_General_CP1_CI_AS. Changing this forces a new resource to be created.
- instantFile BooleanInitialization Enabled 
- Specifies if Instant File Initialization is enabled for the SQL Server. Possible values are trueandfalse. Defaults tofalse. Changing this forces a new resource to be created.
- lockPages BooleanIn Memory Enabled 
- Specifies if Lock Pages in Memory is enabled for the SQL Server. Possible values are trueandfalse. Defaults tofalse. Changing this forces a new resource to be created.
- maxDop Integer
- Maximum Degree of Parallelism of the SQL Server. Possible values are between 0and32767. Defaults to0.
- maxServer IntegerMemory Mb 
- Maximum amount memory that SQL Server Memory Manager can allocate to the SQL Server process. Possible values are between 128and2147483647Defaults to2147483647.
- minServer IntegerMemory Mb 
- Minimum amount memory that SQL Server Memory Manager can allocate to the SQL Server process. Possible values are between - 0and- 2147483647Defaults to- 0.- NOTE: - max_server_memory_mbmust be greater than or equal to- min_server_memory_mb
- adhocWorkloads booleanOptimization Enabled 
- Specifies if the SQL Server is optimized for adhoc workloads. Possible values are trueandfalse. Defaults tofalse.
- collation string
- Collation of the SQL Server. Defaults to SQL_Latin1_General_CP1_CI_AS. Changing this forces a new resource to be created.
- instantFile booleanInitialization Enabled 
- Specifies if Instant File Initialization is enabled for the SQL Server. Possible values are trueandfalse. Defaults tofalse. Changing this forces a new resource to be created.
- lockPages booleanIn Memory Enabled 
- Specifies if Lock Pages in Memory is enabled for the SQL Server. Possible values are trueandfalse. Defaults tofalse. Changing this forces a new resource to be created.
- maxDop number
- Maximum Degree of Parallelism of the SQL Server. Possible values are between 0and32767. Defaults to0.
- maxServer numberMemory Mb 
- Maximum amount memory that SQL Server Memory Manager can allocate to the SQL Server process. Possible values are between 128and2147483647Defaults to2147483647.
- minServer numberMemory Mb 
- Minimum amount memory that SQL Server Memory Manager can allocate to the SQL Server process. Possible values are between - 0and- 2147483647Defaults to- 0.- NOTE: - max_server_memory_mbmust be greater than or equal to- min_server_memory_mb
- adhoc_workloads_ booloptimization_ enabled 
- Specifies if the SQL Server is optimized for adhoc workloads. Possible values are trueandfalse. Defaults tofalse.
- collation str
- Collation of the SQL Server. Defaults to SQL_Latin1_General_CP1_CI_AS. Changing this forces a new resource to be created.
- instant_file_ boolinitialization_ enabled 
- Specifies if Instant File Initialization is enabled for the SQL Server. Possible values are trueandfalse. Defaults tofalse. Changing this forces a new resource to be created.
- lock_pages_ boolin_ memory_ enabled 
- Specifies if Lock Pages in Memory is enabled for the SQL Server. Possible values are trueandfalse. Defaults tofalse. Changing this forces a new resource to be created.
- max_dop int
- Maximum Degree of Parallelism of the SQL Server. Possible values are between 0and32767. Defaults to0.
- max_server_ intmemory_ mb 
- Maximum amount memory that SQL Server Memory Manager can allocate to the SQL Server process. Possible values are between 128and2147483647Defaults to2147483647.
- min_server_ intmemory_ mb 
- Minimum amount memory that SQL Server Memory Manager can allocate to the SQL Server process. Possible values are between - 0and- 2147483647Defaults to- 0.- NOTE: - max_server_memory_mbmust be greater than or equal to- min_server_memory_mb
- adhocWorkloads BooleanOptimization Enabled 
- Specifies if the SQL Server is optimized for adhoc workloads. Possible values are trueandfalse. Defaults tofalse.
- collation String
- Collation of the SQL Server. Defaults to SQL_Latin1_General_CP1_CI_AS. Changing this forces a new resource to be created.
- instantFile BooleanInitialization Enabled 
- Specifies if Instant File Initialization is enabled for the SQL Server. Possible values are trueandfalse. Defaults tofalse. Changing this forces a new resource to be created.
- lockPages BooleanIn Memory Enabled 
- Specifies if Lock Pages in Memory is enabled for the SQL Server. Possible values are trueandfalse. Defaults tofalse. Changing this forces a new resource to be created.
- maxDop Number
- Maximum Degree of Parallelism of the SQL Server. Possible values are between 0and32767. Defaults to0.
- maxServer NumberMemory Mb 
- Maximum amount memory that SQL Server Memory Manager can allocate to the SQL Server process. Possible values are between 128and2147483647Defaults to2147483647.
- minServer NumberMemory Mb 
- Minimum amount memory that SQL Server Memory Manager can allocate to the SQL Server process. Possible values are between - 0and- 2147483647Defaults to- 0.- NOTE: - max_server_memory_mbmust be greater than or equal to- min_server_memory_mb
VirtualMachineStorageConfiguration, VirtualMachineStorageConfigurationArgs        
- DiskType string
- The type of disk configuration to apply to the SQL Server. Valid values include NEW,EXTEND, orADD.
- StorageWorkload stringType 
- The type of storage workload. Valid values include GENERAL,OLTP, orDW.
- DataSettings VirtualMachine Storage Configuration Data Settings 
- A storage_settingsblock as defined below.
- LogSettings VirtualMachine Storage Configuration Log Settings 
- A storage_settingsblock as defined below.
- SystemDb boolOn Data Disk Enabled 
- Specifies whether to set system databases (except tempDb) location to newly created data storage. Possible values are trueandfalse. Defaults tofalse.
- TempDb VirtualSettings Machine Storage Configuration Temp Db Settings 
- An temp_db_settingsblock as defined below.
- DiskType string
- The type of disk configuration to apply to the SQL Server. Valid values include NEW,EXTEND, orADD.
- StorageWorkload stringType 
- The type of storage workload. Valid values include GENERAL,OLTP, orDW.
- DataSettings VirtualMachine Storage Configuration Data Settings 
- A storage_settingsblock as defined below.
- LogSettings VirtualMachine Storage Configuration Log Settings 
- A storage_settingsblock as defined below.
- SystemDb boolOn Data Disk Enabled 
- Specifies whether to set system databases (except tempDb) location to newly created data storage. Possible values are trueandfalse. Defaults tofalse.
- TempDb VirtualSettings Machine Storage Configuration Temp Db Settings 
- An temp_db_settingsblock as defined below.
- diskType String
- The type of disk configuration to apply to the SQL Server. Valid values include NEW,EXTEND, orADD.
- storageWorkload StringType 
- The type of storage workload. Valid values include GENERAL,OLTP, orDW.
- dataSettings VirtualMachine Storage Configuration Data Settings 
- A storage_settingsblock as defined below.
- logSettings VirtualMachine Storage Configuration Log Settings 
- A storage_settingsblock as defined below.
- systemDb BooleanOn Data Disk Enabled 
- Specifies whether to set system databases (except tempDb) location to newly created data storage. Possible values are trueandfalse. Defaults tofalse.
- tempDb VirtualSettings Machine Storage Configuration Temp Db Settings 
- An temp_db_settingsblock as defined below.
- diskType string
- The type of disk configuration to apply to the SQL Server. Valid values include NEW,EXTEND, orADD.
- storageWorkload stringType 
- The type of storage workload. Valid values include GENERAL,OLTP, orDW.
- dataSettings VirtualMachine Storage Configuration Data Settings 
- A storage_settingsblock as defined below.
- logSettings VirtualMachine Storage Configuration Log Settings 
- A storage_settingsblock as defined below.
- systemDb booleanOn Data Disk Enabled 
- Specifies whether to set system databases (except tempDb) location to newly created data storage. Possible values are trueandfalse. Defaults tofalse.
- tempDb VirtualSettings Machine Storage Configuration Temp Db Settings 
- An temp_db_settingsblock as defined below.
- disk_type str
- The type of disk configuration to apply to the SQL Server. Valid values include NEW,EXTEND, orADD.
- storage_workload_ strtype 
- The type of storage workload. Valid values include GENERAL,OLTP, orDW.
- data_settings VirtualMachine Storage Configuration Data Settings 
- A storage_settingsblock as defined below.
- log_settings VirtualMachine Storage Configuration Log Settings 
- A storage_settingsblock as defined below.
- system_db_ boolon_ data_ disk_ enabled 
- Specifies whether to set system databases (except tempDb) location to newly created data storage. Possible values are trueandfalse. Defaults tofalse.
- temp_db_ Virtualsettings Machine Storage Configuration Temp Db Settings 
- An temp_db_settingsblock as defined below.
- diskType String
- The type of disk configuration to apply to the SQL Server. Valid values include NEW,EXTEND, orADD.
- storageWorkload StringType 
- The type of storage workload. Valid values include GENERAL,OLTP, orDW.
- dataSettings Property Map
- A storage_settingsblock as defined below.
- logSettings Property Map
- A storage_settingsblock as defined below.
- systemDb BooleanOn Data Disk Enabled 
- Specifies whether to set system databases (except tempDb) location to newly created data storage. Possible values are trueandfalse. Defaults tofalse.
- tempDb Property MapSettings 
- An temp_db_settingsblock as defined below.
VirtualMachineStorageConfigurationDataSettings, VirtualMachineStorageConfigurationDataSettingsArgs            
- DefaultFile stringPath 
- Luns List<int>
- DefaultFile stringPath 
- Luns []int
- defaultFile StringPath 
- luns List<Integer>
- defaultFile stringPath 
- luns number[]
- default_file_ strpath 
- luns Sequence[int]
- defaultFile StringPath 
- luns List<Number>
VirtualMachineStorageConfigurationLogSettings, VirtualMachineStorageConfigurationLogSettingsArgs            
- DefaultFile stringPath 
- Luns List<int>
- DefaultFile stringPath 
- Luns []int
- defaultFile StringPath 
- luns List<Integer>
- defaultFile stringPath 
- luns number[]
- default_file_ strpath 
- luns Sequence[int]
- defaultFile StringPath 
- luns List<Number>
VirtualMachineStorageConfigurationTempDbSettings, VirtualMachineStorageConfigurationTempDbSettingsArgs              
- DefaultFile stringPath 
- The SQL Server default path
- Luns List<int>
- A list of Logical Unit Numbers for the disks.
- DataFile intCount 
- The SQL Server default file count. This value defaults to 8
- DataFile intGrowth In Mb 
- The SQL Server default file size - This value defaults to 512
- DataFile intSize Mb 
- The SQL Server default file size - This value defaults to 256
- LogFile intGrowth Mb 
- The SQL Server default file size - This value defaults to 512
- LogFile intSize Mb 
- The SQL Server default file size - This value defaults to 256
- DefaultFile stringPath 
- The SQL Server default path
- Luns []int
- A list of Logical Unit Numbers for the disks.
- DataFile intCount 
- The SQL Server default file count. This value defaults to 8
- DataFile intGrowth In Mb 
- The SQL Server default file size - This value defaults to 512
- DataFile intSize Mb 
- The SQL Server default file size - This value defaults to 256
- LogFile intGrowth Mb 
- The SQL Server default file size - This value defaults to 512
- LogFile intSize Mb 
- The SQL Server default file size - This value defaults to 256
- defaultFile StringPath 
- The SQL Server default path
- luns List<Integer>
- A list of Logical Unit Numbers for the disks.
- dataFile IntegerCount 
- The SQL Server default file count. This value defaults to 8
- dataFile IntegerGrowth In Mb 
- The SQL Server default file size - This value defaults to 512
- dataFile IntegerSize Mb 
- The SQL Server default file size - This value defaults to 256
- logFile IntegerGrowth Mb 
- The SQL Server default file size - This value defaults to 512
- logFile IntegerSize Mb 
- The SQL Server default file size - This value defaults to 256
- defaultFile stringPath 
- The SQL Server default path
- luns number[]
- A list of Logical Unit Numbers for the disks.
- dataFile numberCount 
- The SQL Server default file count. This value defaults to 8
- dataFile numberGrowth In Mb 
- The SQL Server default file size - This value defaults to 512
- dataFile numberSize Mb 
- The SQL Server default file size - This value defaults to 256
- logFile numberGrowth Mb 
- The SQL Server default file size - This value defaults to 512
- logFile numberSize Mb 
- The SQL Server default file size - This value defaults to 256
- default_file_ strpath 
- The SQL Server default path
- luns Sequence[int]
- A list of Logical Unit Numbers for the disks.
- data_file_ intcount 
- The SQL Server default file count. This value defaults to 8
- data_file_ intgrowth_ in_ mb 
- The SQL Server default file size - This value defaults to 512
- data_file_ intsize_ mb 
- The SQL Server default file size - This value defaults to 256
- log_file_ intgrowth_ mb 
- The SQL Server default file size - This value defaults to 512
- log_file_ intsize_ mb 
- The SQL Server default file size - This value defaults to 256
- defaultFile StringPath 
- The SQL Server default path
- luns List<Number>
- A list of Logical Unit Numbers for the disks.
- dataFile NumberCount 
- The SQL Server default file count. This value defaults to 8
- dataFile NumberGrowth In Mb 
- The SQL Server default file size - This value defaults to 512
- dataFile NumberSize Mb 
- The SQL Server default file size - This value defaults to 256
- logFile NumberGrowth Mb 
- The SQL Server default file size - This value defaults to 512
- logFile NumberSize Mb 
- The SQL Server default file size - This value defaults to 256
VirtualMachineWsfcDomainCredential, VirtualMachineWsfcDomainCredentialArgs          
- ClusterBootstrap stringAccount Password 
- The account password used for creating cluster.
- ClusterOperator stringAccount Password 
- The account password used for operating cluster.
- SqlService stringAccount Password 
- The account password under which SQL service will run on all participating SQL virtual machines in the cluster.
- ClusterBootstrap stringAccount Password 
- The account password used for creating cluster.
- ClusterOperator stringAccount Password 
- The account password used for operating cluster.
- SqlService stringAccount Password 
- The account password under which SQL service will run on all participating SQL virtual machines in the cluster.
- clusterBootstrap StringAccount Password 
- The account password used for creating cluster.
- clusterOperator StringAccount Password 
- The account password used for operating cluster.
- sqlService StringAccount Password 
- The account password under which SQL service will run on all participating SQL virtual machines in the cluster.
- clusterBootstrap stringAccount Password 
- The account password used for creating cluster.
- clusterOperator stringAccount Password 
- The account password used for operating cluster.
- sqlService stringAccount Password 
- The account password under which SQL service will run on all participating SQL virtual machines in the cluster.
- cluster_bootstrap_ straccount_ password 
- The account password used for creating cluster.
- cluster_operator_ straccount_ password 
- The account password used for operating cluster.
- sql_service_ straccount_ password 
- The account password under which SQL service will run on all participating SQL virtual machines in the cluster.
- clusterBootstrap StringAccount Password 
- The account password used for creating cluster.
- clusterOperator StringAccount Password 
- The account password used for operating cluster.
- sqlService StringAccount Password 
- The account password under which SQL service will run on all participating SQL virtual machines in the cluster.
Import
Microsoft SQL Virtual Machines can be imported using the resource id, e.g.
$ pulumi import azure:mssql/virtualMachine:VirtualMachine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/example1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.