VirtualMachine
Manages a Microsoft SQL Virtual Machine
Create a VirtualMachine Resource
new VirtualMachine(name: string, args: VirtualMachineArgs, opts?: CustomResourceOptions);def VirtualMachine(resource_name, opts=None, auto_patching=None, key_vault_credential=None, r_services_enabled=None, sql_connectivity_port=None, sql_connectivity_type=None, sql_connectivity_update_password=None, sql_connectivity_update_username=None, sql_license_type=None, tags=None, virtual_machine_id=None, __props__=None);func NewVirtualMachine(ctx *Context, name string, args VirtualMachineArgs, opts ...ResourceOption) (*VirtualMachine, error)public VirtualMachine(string name, VirtualMachineArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args 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.
VirtualMachine Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The VirtualMachine resource accepts the following input properties:
- Sql
License stringType The SQL Server license type. Possible values are
AHUB(Azure Hybrid Benefit) andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.- Virtual
Machine stringId The ID of the Virtual Machine. Changing this 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 (Optional) An
key_vault_credentialblock as defined below.- RServices
Enabled bool Should R Services be enabled?
- Sql
Connectivity intPort The SQL Server port. Defaults to
1433.- Sql
Connectivity stringType The connectivity type used for this SQL Server. Defaults to
PRIVATE.- Sql
Connectivity stringUpdate Password The SQL Server sysadmin login password.
- Sql
Connectivity stringUpdate Username The SQL Server sysadmin login to create.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Sql
License stringType The SQL Server license type. Possible values are
AHUB(Azure Hybrid Benefit) andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.- Virtual
Machine stringId The ID of the Virtual Machine. Changing this forces a new resource to be created.
- Auto
Patching VirtualMachine Auto Patching An
auto_patchingblock as defined below.- Key
Vault VirtualCredential Machine Key Vault Credential (Optional) An
key_vault_credentialblock as defined below.- RServices
Enabled bool Should R Services be enabled?
- Sql
Connectivity intPort The SQL Server port. Defaults to
1433.- Sql
Connectivity stringType The connectivity type used for this SQL Server. Defaults to
PRIVATE.- Sql
Connectivity stringUpdate Password The SQL Server sysadmin login password.
- Sql
Connectivity stringUpdate Username The SQL Server sysadmin login to create.
- map[string]string
A mapping of tags to assign to the resource.
- sql
License stringType The SQL Server license type. Possible values are
AHUB(Azure Hybrid Benefit) andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.- virtual
Machine stringId The ID of the Virtual Machine. Changing this forces a new resource to be created.
- auto
Patching VirtualMachine Auto Patching An
auto_patchingblock as defined below.- key
Vault VirtualCredential Machine Key Vault Credential (Optional) An
key_vault_credentialblock as defined below.- r
Services booleanEnabled Should R Services be enabled?
- sql
Connectivity numberPort The SQL Server port. Defaults to
1433.- sql
Connectivity stringType The connectivity type used for this SQL Server. Defaults to
PRIVATE.- sql
Connectivity stringUpdate Password The SQL Server sysadmin login password.
- sql
Connectivity stringUpdate Username The SQL Server sysadmin login to create.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- sql_
license_ strtype The SQL Server license type. Possible values are
AHUB(Azure Hybrid Benefit) andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.- virtual_
machine_ strid The ID of the Virtual Machine. Changing this forces a new resource to be created.
- auto_
patching Dict[VirtualMachine Auto Patching] An
auto_patchingblock as defined below.- key_
vault_ Dict[Virtualcredential Machine Key Vault Credential] (Optional) An
key_vault_credentialblock as defined below.- r_
services_ boolenabled Should R Services be enabled?
- sql_
connectivity_ floatport The SQL Server port. Defaults to
1433.- sql_
connectivity_ strtype The connectivity type used for this SQL Server. Defaults to
PRIVATE.- sql_
connectivity_ strupdate_ password The SQL Server sysadmin login password.
- sql_
connectivity_ strupdate_ username The SQL Server sysadmin login to create.
- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualMachine resource produces the following output properties:
Look up an 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): VirtualMachinestatic get(resource_name, id, opts=None, auto_patching=None, key_vault_credential=None, r_services_enabled=None, sql_connectivity_port=None, sql_connectivity_type=None, sql_connectivity_update_password=None, sql_connectivity_update_username=None, sql_license_type=None, tags=None, virtual_machine_id=None, __props__=None);func 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)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Auto
Patching VirtualMachine Auto Patching Args An
auto_patchingblock as defined below.- Key
Vault VirtualCredential Machine Key Vault Credential Args (Optional) An
key_vault_credentialblock as defined below.- RServices
Enabled bool Should R Services be enabled?
- Sql
Connectivity intPort The SQL Server port. Defaults to
1433.- Sql
Connectivity stringType The connectivity type used for this SQL Server. Defaults to
PRIVATE.- Sql
Connectivity stringUpdate Password The SQL Server sysadmin login password.
- Sql
Connectivity stringUpdate Username The SQL Server sysadmin login to create.
- Sql
License stringType The SQL Server license type. Possible values are
AHUB(Azure Hybrid Benefit) andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Virtual
Machine stringId The ID of the Virtual Machine. Changing this forces a new resource to be created.
- Auto
Patching VirtualMachine Auto Patching An
auto_patchingblock as defined below.- Key
Vault VirtualCredential Machine Key Vault Credential (Optional) An
key_vault_credentialblock as defined below.- RServices
Enabled bool Should R Services be enabled?
- Sql
Connectivity intPort The SQL Server port. Defaults to
1433.- Sql
Connectivity stringType The connectivity type used for this SQL Server. Defaults to
PRIVATE.- Sql
Connectivity stringUpdate Password The SQL Server sysadmin login password.
- Sql
Connectivity stringUpdate Username The SQL Server sysadmin login to create.
- Sql
License stringType The SQL Server license type. Possible values are
AHUB(Azure Hybrid Benefit) andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.- map[string]string
A mapping of tags to assign to the resource.
- Virtual
Machine stringId The ID of the Virtual Machine. Changing this forces a new resource to be created.
- auto
Patching VirtualMachine Auto Patching An
auto_patchingblock as defined below.- key
Vault VirtualCredential Machine Key Vault Credential (Optional) An
key_vault_credentialblock as defined below.- r
Services booleanEnabled Should R Services be enabled?
- sql
Connectivity numberPort The SQL Server port. Defaults to
1433.- sql
Connectivity stringType The connectivity type used for this SQL Server. Defaults to
PRIVATE.- sql
Connectivity stringUpdate Password The SQL Server sysadmin login password.
- sql
Connectivity stringUpdate Username The SQL Server sysadmin login to create.
- sql
License stringType The SQL Server license type. Possible values are
AHUB(Azure Hybrid Benefit) andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.- {[key: string]: string}
A mapping of tags to assign to the resource.
- virtual
Machine stringId The ID of the Virtual Machine. Changing this forces a new resource to be created.
- auto_
patching Dict[VirtualMachine Auto Patching] An
auto_patchingblock as defined below.- key_
vault_ Dict[Virtualcredential Machine Key Vault Credential] (Optional) An
key_vault_credentialblock as defined below.- r_
services_ boolenabled Should R Services be enabled?
- sql_
connectivity_ floatport The SQL Server port. Defaults to
1433.- sql_
connectivity_ strtype The connectivity type used for this SQL Server. Defaults to
PRIVATE.- sql_
connectivity_ strupdate_ password The SQL Server sysadmin login password.
- sql_
connectivity_ strupdate_ username The SQL Server sysadmin login to create.
- sql_
license_ strtype The SQL Server license type. Possible values are
AHUB(Azure Hybrid Benefit) andPAYG(Pay-As-You-Go). Changing this forces a new resource to be created.- Dict[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.
Supporting Types
VirtualMachineAutoPatching
- Day
Of stringWeek The day of week to apply the patch on.
- 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.
- Day
Of stringWeek The day of week to apply the patch on.
- 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.
- day
Of stringWeek The day of week to apply the patch on.
- maintenance
Window numberDuration In Minutes The size of the Maintenance Window in minutes.
- maintenance
Window 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.
- maintenance
Window floatDuration In Minutes The size of the Maintenance Window in minutes.
- maintenance
Window floatStarting Hour The Hour, in the Virtual Machine Time-Zone when the patching maintenance window should begin.
VirtualMachineKeyVaultCredential
- Key
Vault stringUrl The azure Key Vault url. Changing this forces a new resource to be created.
- Name string
The credential name.
- Service
Principal stringName The service principal name to access key vault. Changing this forces a new resource to be created.
- Service
Principal stringSecret The service principal name secret to access key vault. Changing this forces a new resource to be created.
- Key
Vault stringUrl The azure Key Vault url. Changing this forces a new resource to be created.
- Name string
The credential name.
- Service
Principal stringName The service principal name to access key vault. Changing this forces a new resource to be created.
- Service
Principal stringSecret The service principal name secret to access key vault. Changing this forces a new resource to be created.
- key
Vault stringUrl The azure Key Vault url. Changing this forces a new resource to be created.
- name string
The credential name.
- service
Principal stringName The service principal name to access key vault. Changing this forces a new resource to be created.
- service
Principal 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.