UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

245 lines (244 loc) • 10.2 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; import * as enums from "../types/enums"; /** * A SQL virtual machine. * * Uses Azure REST API version 2023-10-01. In version 2.x of the Azure Native provider, it used API version 2022-02-01. * * Other available API versions: 2022-02-01, 2022-07-01-preview, 2022-08-01-preview, 2023-01-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native sqlvirtualmachine [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare class SqlVirtualMachine extends pulumi.CustomResource { /** * Get an existing SqlVirtualMachine resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): SqlVirtualMachine; /** * Returns true if the given object is an instance of SqlVirtualMachine. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SqlVirtualMachine; /** * Additional VM Patching solution enabled on the Virtual Machine */ readonly additionalVmPatch: pulumi.Output<string>; /** * SQL best practices Assessment Settings. */ readonly assessmentSettings: pulumi.Output<outputs.sqlvirtualmachine.AssessmentSettingsResponse | undefined>; /** * Auto backup settings for SQL Server. */ readonly autoBackupSettings: pulumi.Output<outputs.sqlvirtualmachine.AutoBackupSettingsResponse | undefined>; /** * Auto patching settings for applying critical security updates to SQL virtual machine. */ readonly autoPatchingSettings: pulumi.Output<outputs.sqlvirtualmachine.AutoPatchingSettingsResponse | undefined>; /** * The Azure API version of the resource. */ readonly azureApiVersion: pulumi.Output<string>; /** * Enable automatic upgrade of Sql IaaS extension Agent. */ readonly enableAutomaticUpgrade: pulumi.Output<boolean | undefined>; /** * DO NOT USE. This value will be deprecated. Azure Active Directory identity of the server. */ readonly identity: pulumi.Output<outputs.sqlvirtualmachine.ResourceIdentityResponse | undefined>; /** * Key vault credential settings. */ readonly keyVaultCredentialSettings: pulumi.Output<outputs.sqlvirtualmachine.KeyVaultCredentialSettingsResponse | undefined>; /** * SQL IaaS Agent least privilege mode. */ readonly leastPrivilegeMode: pulumi.Output<string | undefined>; /** * The geo-location where the resource lives */ readonly location: pulumi.Output<string>; /** * The name of the resource */ readonly name: pulumi.Output<string>; /** * Operating System of the current SQL Virtual Machine. */ readonly osType: pulumi.Output<string>; /** * Provisioning state to track the async operation status. */ readonly provisioningState: pulumi.Output<string>; /** * SQL Server configuration management settings. */ readonly serverConfigurationsManagementSettings: pulumi.Output<outputs.sqlvirtualmachine.ServerConfigurationsManagementSettingsResponse | undefined>; /** * SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016. */ readonly sqlImageOffer: pulumi.Output<string | undefined>; /** * SQL Server edition type. */ readonly sqlImageSku: pulumi.Output<string | undefined>; /** * SQL Server Management type. NOTE: This parameter is not used anymore. API will automatically detect the Sql Management, refrain from using it. */ readonly sqlManagement: pulumi.Output<string | undefined>; /** * SQL Server license type. */ readonly sqlServerLicenseType: pulumi.Output<string | undefined>; /** * ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of. */ readonly sqlVirtualMachineGroupResourceId: pulumi.Output<string | undefined>; /** * Storage Configuration Settings. */ readonly storageConfigurationSettings: pulumi.Output<outputs.sqlvirtualmachine.StorageConfigurationSettingsResponse | undefined>; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ readonly systemData: pulumi.Output<outputs.sqlvirtualmachine.SystemDataResponse>; /** * Resource tags. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Troubleshooting status */ readonly troubleshootingStatus: pulumi.Output<outputs.sqlvirtualmachine.TroubleshootingStatusResponse>; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: pulumi.Output<string>; /** * Virtual Machine Identity details used for Sql IaaS extension configurations. */ readonly virtualMachineIdentitySettings: pulumi.Output<outputs.sqlvirtualmachine.VirtualMachineIdentityResponse | undefined>; /** * ARM Resource id of underlying virtual machine created from SQL marketplace image. */ readonly virtualMachineResourceId: pulumi.Output<string | undefined>; /** * Domain credentials for setting up Windows Server Failover Cluster for SQL availability group. */ readonly wsfcDomainCredentials: pulumi.Output<outputs.sqlvirtualmachine.WsfcDomainCredentialsResponse | undefined>; /** * Domain credentials for setting up Windows Server Failover Cluster for SQL availability group. */ readonly wsfcStaticIp: pulumi.Output<string | undefined>; /** * Create a SqlVirtualMachine resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SqlVirtualMachineArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a SqlVirtualMachine resource. */ export interface SqlVirtualMachineArgs { /** * SQL best practices Assessment Settings. */ assessmentSettings?: pulumi.Input<inputs.sqlvirtualmachine.AssessmentSettingsArgs>; /** * Auto backup settings for SQL Server. */ autoBackupSettings?: pulumi.Input<inputs.sqlvirtualmachine.AutoBackupSettingsArgs>; /** * Auto patching settings for applying critical security updates to SQL virtual machine. */ autoPatchingSettings?: pulumi.Input<inputs.sqlvirtualmachine.AutoPatchingSettingsArgs>; /** * Enable automatic upgrade of Sql IaaS extension Agent. */ enableAutomaticUpgrade?: pulumi.Input<boolean>; /** * DO NOT USE. This value will be deprecated. Azure Active Directory identity of the server. */ identity?: pulumi.Input<inputs.sqlvirtualmachine.ResourceIdentityArgs>; /** * Key vault credential settings. */ keyVaultCredentialSettings?: pulumi.Input<inputs.sqlvirtualmachine.KeyVaultCredentialSettingsArgs>; /** * SQL IaaS Agent least privilege mode. */ leastPrivilegeMode?: pulumi.Input<string | enums.sqlvirtualmachine.LeastPrivilegeMode>; /** * The geo-location where the resource lives */ location?: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * SQL Server configuration management settings. */ serverConfigurationsManagementSettings?: pulumi.Input<inputs.sqlvirtualmachine.ServerConfigurationsManagementSettingsArgs>; /** * SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016. */ sqlImageOffer?: pulumi.Input<string>; /** * SQL Server edition type. */ sqlImageSku?: pulumi.Input<string | enums.sqlvirtualmachine.SqlImageSku>; /** * SQL Server Management type. NOTE: This parameter is not used anymore. API will automatically detect the Sql Management, refrain from using it. */ sqlManagement?: pulumi.Input<string | enums.sqlvirtualmachine.SqlManagementMode>; /** * SQL Server license type. */ sqlServerLicenseType?: pulumi.Input<string | enums.sqlvirtualmachine.SqlServerLicenseType>; /** * ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of. */ sqlVirtualMachineGroupResourceId?: pulumi.Input<string>; /** * Name of the SQL virtual machine. */ sqlVirtualMachineName?: pulumi.Input<string>; /** * Storage Configuration Settings. */ storageConfigurationSettings?: pulumi.Input<inputs.sqlvirtualmachine.StorageConfigurationSettingsArgs>; /** * Resource tags. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Virtual Machine Identity details used for Sql IaaS extension configurations. */ virtualMachineIdentitySettings?: pulumi.Input<inputs.sqlvirtualmachine.VirtualMachineIdentityArgs>; /** * ARM Resource id of underlying virtual machine created from SQL marketplace image. */ virtualMachineResourceId?: pulumi.Input<string>; /** * Domain credentials for setting up Windows Server Failover Cluster for SQL availability group. */ wsfcDomainCredentials?: pulumi.Input<inputs.sqlvirtualmachine.WsfcDomainCredentialsArgs>; /** * Domain credentials for setting up Windows Server Failover Cluster for SQL availability group. */ wsfcStaticIp?: pulumi.Input<string>; }