microsoft-cdktfconstructs 0.0.3.dev11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- microsoft_cdktfconstructs/__init__.py +217 -0
- microsoft_cdktfconstructs/_jsii/__init__.py +31 -0
- microsoft_cdktfconstructs/_jsii/terraform-cdk-constructs@0.0.3-pre.11.jsii.tgz +0 -0
- microsoft_cdktfconstructs/azure_applicationgateway/__init__.py +823 -0
- microsoft_cdktfconstructs/azure_applicationinsights/__init__.py +397 -0
- microsoft_cdktfconstructs/azure_containerregistry/__init__.py +320 -0
- microsoft_cdktfconstructs/azure_eventhub/__init__.py +2213 -0
- microsoft_cdktfconstructs/azure_functionapp/__init__.py +908 -0
- microsoft_cdktfconstructs/azure_keyvault/__init__.py +1982 -0
- microsoft_cdktfconstructs/azure_kubernetes/__init__.py +400 -0
- microsoft_cdktfconstructs/azure_kusto/__init__.py +2485 -0
- microsoft_cdktfconstructs/azure_loganalytics/__init__.py +652 -0
- microsoft_cdktfconstructs/azure_metricalert/__init__.py +1260 -0
- microsoft_cdktfconstructs/azure_networksecuritygroup/__init__.py +1742 -0
- microsoft_cdktfconstructs/azure_queryrulealert/__init__.py +1189 -0
- microsoft_cdktfconstructs/azure_resourcegroup/__init__.py +320 -0
- microsoft_cdktfconstructs/azure_storageaccount/__init__.py +1910 -0
- microsoft_cdktfconstructs/azure_virtualmachine/__init__.py +1460 -0
- microsoft_cdktfconstructs/azure_virtualmachinescaleset/__init__.py +1185 -0
- microsoft_cdktfconstructs/azure_virtualnetwork/__init__.py +707 -0
- microsoft_cdktfconstructs/core_azure/__init__.py +931 -0
- microsoft_cdktfconstructs/py.typed +1 -0
- microsoft_cdktfconstructs-0.0.3.dev11.dist-info/LICENSE +19 -0
- microsoft_cdktfconstructs-0.0.3.dev11.dist-info/METADATA +188 -0
- microsoft_cdktfconstructs-0.0.3.dev11.dist-info/RECORD +27 -0
- microsoft_cdktfconstructs-0.0.3.dev11.dist-info/WHEEL +5 -0
- microsoft_cdktfconstructs-0.0.3.dev11.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1460 @@
|
|
|
1
|
+
'''
|
|
2
|
+
# Azure Virtual Machine Construct
|
|
3
|
+
|
|
4
|
+
This construct provides a simplified way to deploy and manage an Azure Virtual Machine (VM), suitable for both Windows and Linux configurations.
|
|
5
|
+
|
|
6
|
+
## Overview
|
|
7
|
+
|
|
8
|
+
Azure Virtual Machines give you the flexibility of virtualization without buying and maintaining the physical hardware. They are ideal for a variety of computing solutions like development and testing, running applications, and extending your datacenter.
|
|
9
|
+
|
|
10
|
+
For detailed information on Azure VMs, visit the [Azure Virtual Machines documentation](https://docs.microsoft.com/en-us/azure/virtual-machines/).
|
|
11
|
+
|
|
12
|
+
## Best Practices for Virtual Machines
|
|
13
|
+
|
|
14
|
+
* **Size Appropriately**: Choose a VM size that fits your workload requirements.
|
|
15
|
+
* **Keep Updated**: Regularly apply updates and patches to your VMs.
|
|
16
|
+
* **Network Security**: Secure your VMs with network security groups and firewall rules.
|
|
17
|
+
* **Use Managed Disks**: Leverage managed disks for better management and security of your VM storage.
|
|
18
|
+
* **Backup and Recovery**: Implement a backup strategy and disaster recovery plan.
|
|
19
|
+
|
|
20
|
+
## Construct Properties
|
|
21
|
+
|
|
22
|
+
Configure your VM with the following properties:
|
|
23
|
+
|
|
24
|
+
* `location`: The deployment region for the VM.
|
|
25
|
+
* `resourceGroupName`: The name of the resource group.
|
|
26
|
+
* `name`: The name of the VM.
|
|
27
|
+
* `size`: The VM size (e.g., `Standard_B2s`).
|
|
28
|
+
* `adminUsername`: Administrator username for the VM.
|
|
29
|
+
* `adminPassword`: Administrator password for the VM.
|
|
30
|
+
* `sourceImageReference`: Reference to the source image for the VM's operating system.
|
|
31
|
+
* `osDisk`: Configuration for the operating system disk.
|
|
32
|
+
* `networkInterface`: Network interface details for the VM.
|
|
33
|
+
* `publicIPAllocationMethod`: Allocation method for the VM's public IP address.
|
|
34
|
+
* `tags`: A dictionary of tags to apply to the VM.
|
|
35
|
+
* `customData`: Custom data for bootstrapping the VM.
|
|
36
|
+
|
|
37
|
+
## Deployment Example
|
|
38
|
+
|
|
39
|
+
### Windows Virtual Machine
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
const azureWindowsVM = new AzureWindowsVirtualMachine(this, 'myWindowsVM', {
|
|
43
|
+
resourceGroupName: 'myResourceGroup',
|
|
44
|
+
location: 'West US',
|
|
45
|
+
name: 'myWindowsVM',
|
|
46
|
+
adminUsername: 'adminuser',
|
|
47
|
+
adminPassword: 'SecurePassword123',
|
|
48
|
+
size: 'Standard_B2s',
|
|
49
|
+
tags: {
|
|
50
|
+
'env': 'production',
|
|
51
|
+
},
|
|
52
|
+
// Additional configurations...
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Linux Virtual Machine
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
const azureLinuxVM = new AzureLinuxVirtualMachine(this, 'myLinuxVM', {
|
|
60
|
+
resourceGroupName: 'myResourceGroup',
|
|
61
|
+
location: 'West US',
|
|
62
|
+
name: 'myLinuxVM',
|
|
63
|
+
adminUsername: 'adminuser',
|
|
64
|
+
size: 'Standard_B2s',
|
|
65
|
+
tags: {
|
|
66
|
+
'env': 'development',
|
|
67
|
+
},
|
|
68
|
+
// Additional configurations...
|
|
69
|
+
});
|
|
70
|
+
```
|
|
71
|
+
'''
|
|
72
|
+
from pkgutil import extend_path
|
|
73
|
+
__path__ = extend_path(__path__, __name__)
|
|
74
|
+
|
|
75
|
+
import abc
|
|
76
|
+
import builtins
|
|
77
|
+
import datetime
|
|
78
|
+
import enum
|
|
79
|
+
import typing
|
|
80
|
+
|
|
81
|
+
import jsii
|
|
82
|
+
import publication
|
|
83
|
+
import typing_extensions
|
|
84
|
+
|
|
85
|
+
from typeguard import check_type
|
|
86
|
+
|
|
87
|
+
from .._jsii import *
|
|
88
|
+
|
|
89
|
+
import cdktf as _cdktf_9a9027ec
|
|
90
|
+
import cdktf_cdktf_provider_azurerm.linux_virtual_machine as _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf
|
|
91
|
+
import cdktf_cdktf_provider_azurerm.resource_group as _cdktf_cdktf_provider_azurerm_resource_group_92bbcedf
|
|
92
|
+
import cdktf_cdktf_provider_azurerm.subnet as _cdktf_cdktf_provider_azurerm_subnet_92bbcedf
|
|
93
|
+
import cdktf_cdktf_provider_azurerm.windows_virtual_machine as _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf
|
|
94
|
+
import constructs as _constructs_77d1e7e8
|
|
95
|
+
from ..core_azure import AzureResource as _AzureResource_74eec1c4
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
class LinuxImageReferences(
|
|
99
|
+
metaclass=jsii.JSIIMeta,
|
|
100
|
+
jsii_type="@microsoft/terraform-cdk-constructs.azure_virtualmachine.LinuxImageReferences",
|
|
101
|
+
):
|
|
102
|
+
def __init__(self) -> None:
|
|
103
|
+
jsii.create(self.__class__, self, [])
|
|
104
|
+
|
|
105
|
+
@jsii.python.classproperty
|
|
106
|
+
@jsii.member(jsii_name="centOS75")
|
|
107
|
+
def cent_os75(
|
|
108
|
+
cls,
|
|
109
|
+
) -> _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
110
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference, jsii.sget(cls, "centOS75"))
|
|
111
|
+
|
|
112
|
+
@cent_os75.setter # type: ignore[no-redef]
|
|
113
|
+
def cent_os75(
|
|
114
|
+
cls,
|
|
115
|
+
value: _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference,
|
|
116
|
+
) -> None:
|
|
117
|
+
if __debug__:
|
|
118
|
+
type_hints = typing.get_type_hints(_typecheckingstub__29a7c8d8f4ade05e5e41d2ccd39372d86d2fa2224109c485bf2f79e84b4836ae)
|
|
119
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
120
|
+
jsii.sset(cls, "centOS75", value)
|
|
121
|
+
|
|
122
|
+
@jsii.python.classproperty
|
|
123
|
+
@jsii.member(jsii_name="centOS85Gen2")
|
|
124
|
+
def cent_os85_gen2(
|
|
125
|
+
cls,
|
|
126
|
+
) -> _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
127
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference, jsii.sget(cls, "centOS85Gen2"))
|
|
128
|
+
|
|
129
|
+
@cent_os85_gen2.setter # type: ignore[no-redef]
|
|
130
|
+
def cent_os85_gen2(
|
|
131
|
+
cls,
|
|
132
|
+
value: _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference,
|
|
133
|
+
) -> None:
|
|
134
|
+
if __debug__:
|
|
135
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c5930d1184f218f5a271e84427012d2dbc17809f7422ecce05bf2b3ac575715e)
|
|
136
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
137
|
+
jsii.sset(cls, "centOS85Gen2", value)
|
|
138
|
+
|
|
139
|
+
@jsii.python.classproperty
|
|
140
|
+
@jsii.member(jsii_name="debian10")
|
|
141
|
+
def debian10(
|
|
142
|
+
cls,
|
|
143
|
+
) -> _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
144
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference, jsii.sget(cls, "debian10"))
|
|
145
|
+
|
|
146
|
+
@debian10.setter # type: ignore[no-redef]
|
|
147
|
+
def debian10(
|
|
148
|
+
cls,
|
|
149
|
+
value: _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference,
|
|
150
|
+
) -> None:
|
|
151
|
+
if __debug__:
|
|
152
|
+
type_hints = typing.get_type_hints(_typecheckingstub__332d98f3e6e5e53589f78bddd78e5ca9dcf43ecf7932ce6bf073b7dfc11ee209)
|
|
153
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
154
|
+
jsii.sset(cls, "debian10", value)
|
|
155
|
+
|
|
156
|
+
@jsii.python.classproperty
|
|
157
|
+
@jsii.member(jsii_name="debian11BackportsGen2")
|
|
158
|
+
def debian11_backports_gen2(
|
|
159
|
+
cls,
|
|
160
|
+
) -> _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
161
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference, jsii.sget(cls, "debian11BackportsGen2"))
|
|
162
|
+
|
|
163
|
+
@debian11_backports_gen2.setter # type: ignore[no-redef]
|
|
164
|
+
def debian11_backports_gen2(
|
|
165
|
+
cls,
|
|
166
|
+
value: _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference,
|
|
167
|
+
) -> None:
|
|
168
|
+
if __debug__:
|
|
169
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cf30a5745843a5ebe2e5fdf88ed967b6ea615a6c1cf691bc07b3711445edb237)
|
|
170
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
171
|
+
jsii.sset(cls, "debian11BackportsGen2", value)
|
|
172
|
+
|
|
173
|
+
@jsii.python.classproperty
|
|
174
|
+
@jsii.member(jsii_name="ubuntuServer1804LTS")
|
|
175
|
+
def ubuntu_server1804_lts(
|
|
176
|
+
cls,
|
|
177
|
+
) -> _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
178
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference, jsii.sget(cls, "ubuntuServer1804LTS"))
|
|
179
|
+
|
|
180
|
+
@ubuntu_server1804_lts.setter # type: ignore[no-redef]
|
|
181
|
+
def ubuntu_server1804_lts(
|
|
182
|
+
cls,
|
|
183
|
+
value: _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference,
|
|
184
|
+
) -> None:
|
|
185
|
+
if __debug__:
|
|
186
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7c977d4d4456b47218802aab7d3dd741e65a3c5b0c2772fb3b495a2733bc5209)
|
|
187
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
188
|
+
jsii.sset(cls, "ubuntuServer1804LTS", value)
|
|
189
|
+
|
|
190
|
+
@jsii.python.classproperty
|
|
191
|
+
@jsii.member(jsii_name="ubuntuServer2204LTS")
|
|
192
|
+
def ubuntu_server2204_lts(
|
|
193
|
+
cls,
|
|
194
|
+
) -> _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
195
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference, jsii.sget(cls, "ubuntuServer2204LTS"))
|
|
196
|
+
|
|
197
|
+
@ubuntu_server2204_lts.setter # type: ignore[no-redef]
|
|
198
|
+
def ubuntu_server2204_lts(
|
|
199
|
+
cls,
|
|
200
|
+
value: _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference,
|
|
201
|
+
) -> None:
|
|
202
|
+
if __debug__:
|
|
203
|
+
type_hints = typing.get_type_hints(_typecheckingstub__55ae29f90b43e9254f55fda36fb112dacb0a667d26f0ab3e6a15f145f8a2e180)
|
|
204
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
205
|
+
jsii.sset(cls, "ubuntuServer2204LTS", value)
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
class LinuxVM(
|
|
209
|
+
_AzureResource_74eec1c4,
|
|
210
|
+
metaclass=jsii.JSIIMeta,
|
|
211
|
+
jsii_type="@microsoft/terraform-cdk-constructs.azure_virtualmachine.LinuxVM",
|
|
212
|
+
):
|
|
213
|
+
def __init__(
|
|
214
|
+
self,
|
|
215
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
216
|
+
id: builtins.str,
|
|
217
|
+
*,
|
|
218
|
+
additional_capabilities: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineAdditionalCapabilities, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
219
|
+
admin_password: typing.Optional[builtins.str] = None,
|
|
220
|
+
admin_ssh_key: typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineAdminSshKey, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
|
221
|
+
admin_username: typing.Optional[builtins.str] = None,
|
|
222
|
+
availability_set_id: typing.Optional[builtins.str] = None,
|
|
223
|
+
boot_diagnostics_storage_uri: typing.Optional[builtins.str] = None,
|
|
224
|
+
custom_data: typing.Optional[builtins.str] = None,
|
|
225
|
+
enable_ssh_azure_ad_login: typing.Optional[builtins.bool] = None,
|
|
226
|
+
identity: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
227
|
+
location: typing.Optional[builtins.str] = None,
|
|
228
|
+
name: typing.Optional[builtins.str] = None,
|
|
229
|
+
os_disk: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineOsDisk, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
230
|
+
public_ip_allocation_method: typing.Optional[builtins.str] = None,
|
|
231
|
+
resource_group: typing.Optional[_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup] = None,
|
|
232
|
+
secret: typing.Optional[typing.Sequence[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSecret, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
233
|
+
size: typing.Optional[builtins.str] = None,
|
|
234
|
+
source_image_id: typing.Optional[builtins.str] = None,
|
|
235
|
+
source_image_reference: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
236
|
+
subnet: typing.Optional[_cdktf_cdktf_provider_azurerm_subnet_92bbcedf.Subnet] = None,
|
|
237
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
238
|
+
user_data: typing.Optional[builtins.str] = None,
|
|
239
|
+
zone: typing.Optional[builtins.str] = None,
|
|
240
|
+
) -> None:
|
|
241
|
+
'''Represents a Linux-based Virtual Machine (VM) within Microsoft Azure.
|
|
242
|
+
|
|
243
|
+
This class is designed to provision and manage a Linux VM in Azure, facilitating detailed configuration including
|
|
244
|
+
VM size, the operating system image, network settings, and administrative credentials. It supports custom data scripts,
|
|
245
|
+
SSH configurations, and optional features like managed identity and boot diagnostics.
|
|
246
|
+
|
|
247
|
+
:param scope: - The scope in which to define this construct, typically representing the Cloud Development Kit (CDK) application.
|
|
248
|
+
:param id: - The unique identifier for this instance of the Linux VM, used within the scope for reference.
|
|
249
|
+
:param additional_capabilities: Additional capabilities like Ultra Disk compatibility.
|
|
250
|
+
:param admin_password: The admin password for the virtual machine.
|
|
251
|
+
:param admin_ssh_key: An array of SSH keys for the admin user.
|
|
252
|
+
:param admin_username: The admin username for the virtual machine.
|
|
253
|
+
:param availability_set_id: The ID of the availability set in which the VM should be placed.
|
|
254
|
+
:param boot_diagnostics_storage_uri: Bootdiagnostics settings for the VM.
|
|
255
|
+
:param custom_data: Custom data to pass to the virtual machine upon creation.
|
|
256
|
+
:param enable_ssh_azure_ad_login: Enable SSH Azure AD Login, required managed identity to be set.
|
|
257
|
+
:param identity: Managed identity settings for the VM.
|
|
258
|
+
:param location: The Azure location where the virtual machine should be created. Default: "eastus"
|
|
259
|
+
:param name: The name of the virtual machine. Default: - Uses the name derived from the construct path.
|
|
260
|
+
:param os_disk: The OS disk configuration for the virtual machine. Default: - Uses a disk with caching set to "ReadWrite" and storage account type "Standard_LRS".
|
|
261
|
+
:param public_ip_allocation_method: The allocation method for the public IP.
|
|
262
|
+
:param resource_group: An optional reference to the resource group in which to deploy the Virtual Machine. If not provided, the Virtual Machine will be deployed in the default resource group.
|
|
263
|
+
:param secret: An array of secrets to be passed to the VM.
|
|
264
|
+
:param size: The size of the virtual machine. Default: "Standard_B2s"
|
|
265
|
+
:param source_image_id: The ID of the source image for the virtual machine.
|
|
266
|
+
:param source_image_reference: The source image reference for the virtual machine. Default: - Uses WindowsServer2022DatacenterCore.
|
|
267
|
+
:param subnet: The subnet in which the virtual machine will be placed. Default: - Uses the default subnet from a new virtual network.
|
|
268
|
+
:param tags: Tags to apply to the virtual machine.
|
|
269
|
+
:param user_data: Custom data to pass to the virtual machine upon creation.
|
|
270
|
+
:param zone: The availability zone in which the VM should be placed.
|
|
271
|
+
'''
|
|
272
|
+
if __debug__:
|
|
273
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4503c856086be09ccd03fad9fec5fa5a06773c3e3cfd91a62ac778582a4b3ada)
|
|
274
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
275
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
276
|
+
props = LinuxVMProps(
|
|
277
|
+
additional_capabilities=additional_capabilities,
|
|
278
|
+
admin_password=admin_password,
|
|
279
|
+
admin_ssh_key=admin_ssh_key,
|
|
280
|
+
admin_username=admin_username,
|
|
281
|
+
availability_set_id=availability_set_id,
|
|
282
|
+
boot_diagnostics_storage_uri=boot_diagnostics_storage_uri,
|
|
283
|
+
custom_data=custom_data,
|
|
284
|
+
enable_ssh_azure_ad_login=enable_ssh_azure_ad_login,
|
|
285
|
+
identity=identity,
|
|
286
|
+
location=location,
|
|
287
|
+
name=name,
|
|
288
|
+
os_disk=os_disk,
|
|
289
|
+
public_ip_allocation_method=public_ip_allocation_method,
|
|
290
|
+
resource_group=resource_group,
|
|
291
|
+
secret=secret,
|
|
292
|
+
size=size,
|
|
293
|
+
source_image_id=source_image_id,
|
|
294
|
+
source_image_reference=source_image_reference,
|
|
295
|
+
subnet=subnet,
|
|
296
|
+
tags=tags,
|
|
297
|
+
user_data=user_data,
|
|
298
|
+
zone=zone,
|
|
299
|
+
)
|
|
300
|
+
|
|
301
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
302
|
+
|
|
303
|
+
@builtins.property
|
|
304
|
+
@jsii.member(jsii_name="name")
|
|
305
|
+
def name(self) -> builtins.str:
|
|
306
|
+
return typing.cast(builtins.str, jsii.get(self, "name"))
|
|
307
|
+
|
|
308
|
+
@builtins.property
|
|
309
|
+
@jsii.member(jsii_name="props")
|
|
310
|
+
def props(self) -> "LinuxVMProps":
|
|
311
|
+
return typing.cast("LinuxVMProps", jsii.get(self, "props"))
|
|
312
|
+
|
|
313
|
+
@builtins.property
|
|
314
|
+
@jsii.member(jsii_name="publicIp")
|
|
315
|
+
def public_ip(self) -> typing.Optional[builtins.str]:
|
|
316
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "publicIp"))
|
|
317
|
+
|
|
318
|
+
@builtins.property
|
|
319
|
+
@jsii.member(jsii_name="id")
|
|
320
|
+
def id(self) -> builtins.str:
|
|
321
|
+
return typing.cast(builtins.str, jsii.get(self, "id"))
|
|
322
|
+
|
|
323
|
+
@id.setter
|
|
324
|
+
def id(self, value: builtins.str) -> None:
|
|
325
|
+
if __debug__:
|
|
326
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2c5f0ee7ea05450a854f9fbb748ea8d4d20d5af57db5caff9ee90994b7c45755)
|
|
327
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
328
|
+
jsii.set(self, "id", value)
|
|
329
|
+
|
|
330
|
+
@builtins.property
|
|
331
|
+
@jsii.member(jsii_name="resourceGroup")
|
|
332
|
+
def resource_group(
|
|
333
|
+
self,
|
|
334
|
+
) -> _cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup:
|
|
335
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup, jsii.get(self, "resourceGroup"))
|
|
336
|
+
|
|
337
|
+
@resource_group.setter
|
|
338
|
+
def resource_group(
|
|
339
|
+
self,
|
|
340
|
+
value: _cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup,
|
|
341
|
+
) -> None:
|
|
342
|
+
if __debug__:
|
|
343
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a57b7d59a91a7d43ceef299ac7a55a7e1c678e52058ec6f6fa9c402e61271919)
|
|
344
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
345
|
+
jsii.set(self, "resourceGroup", value)
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
@jsii.data_type(
|
|
349
|
+
jsii_type="@microsoft/terraform-cdk-constructs.azure_virtualmachine.LinuxVMProps",
|
|
350
|
+
jsii_struct_bases=[],
|
|
351
|
+
name_mapping={
|
|
352
|
+
"additional_capabilities": "additionalCapabilities",
|
|
353
|
+
"admin_password": "adminPassword",
|
|
354
|
+
"admin_ssh_key": "adminSshKey",
|
|
355
|
+
"admin_username": "adminUsername",
|
|
356
|
+
"availability_set_id": "availabilitySetId",
|
|
357
|
+
"boot_diagnostics_storage_uri": "bootDiagnosticsStorageURI",
|
|
358
|
+
"custom_data": "customData",
|
|
359
|
+
"enable_ssh_azure_ad_login": "enableSshAzureADLogin",
|
|
360
|
+
"identity": "identity",
|
|
361
|
+
"location": "location",
|
|
362
|
+
"name": "name",
|
|
363
|
+
"os_disk": "osDisk",
|
|
364
|
+
"public_ip_allocation_method": "publicIPAllocationMethod",
|
|
365
|
+
"resource_group": "resourceGroup",
|
|
366
|
+
"secret": "secret",
|
|
367
|
+
"size": "size",
|
|
368
|
+
"source_image_id": "sourceImageId",
|
|
369
|
+
"source_image_reference": "sourceImageReference",
|
|
370
|
+
"subnet": "subnet",
|
|
371
|
+
"tags": "tags",
|
|
372
|
+
"user_data": "userData",
|
|
373
|
+
"zone": "zone",
|
|
374
|
+
},
|
|
375
|
+
)
|
|
376
|
+
class LinuxVMProps:
|
|
377
|
+
def __init__(
|
|
378
|
+
self,
|
|
379
|
+
*,
|
|
380
|
+
additional_capabilities: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineAdditionalCapabilities, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
381
|
+
admin_password: typing.Optional[builtins.str] = None,
|
|
382
|
+
admin_ssh_key: typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineAdminSshKey, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
|
383
|
+
admin_username: typing.Optional[builtins.str] = None,
|
|
384
|
+
availability_set_id: typing.Optional[builtins.str] = None,
|
|
385
|
+
boot_diagnostics_storage_uri: typing.Optional[builtins.str] = None,
|
|
386
|
+
custom_data: typing.Optional[builtins.str] = None,
|
|
387
|
+
enable_ssh_azure_ad_login: typing.Optional[builtins.bool] = None,
|
|
388
|
+
identity: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
389
|
+
location: typing.Optional[builtins.str] = None,
|
|
390
|
+
name: typing.Optional[builtins.str] = None,
|
|
391
|
+
os_disk: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineOsDisk, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
392
|
+
public_ip_allocation_method: typing.Optional[builtins.str] = None,
|
|
393
|
+
resource_group: typing.Optional[_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup] = None,
|
|
394
|
+
secret: typing.Optional[typing.Sequence[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSecret, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
395
|
+
size: typing.Optional[builtins.str] = None,
|
|
396
|
+
source_image_id: typing.Optional[builtins.str] = None,
|
|
397
|
+
source_image_reference: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
398
|
+
subnet: typing.Optional[_cdktf_cdktf_provider_azurerm_subnet_92bbcedf.Subnet] = None,
|
|
399
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
400
|
+
user_data: typing.Optional[builtins.str] = None,
|
|
401
|
+
zone: typing.Optional[builtins.str] = None,
|
|
402
|
+
) -> None:
|
|
403
|
+
'''
|
|
404
|
+
:param additional_capabilities: Additional capabilities like Ultra Disk compatibility.
|
|
405
|
+
:param admin_password: The admin password for the virtual machine.
|
|
406
|
+
:param admin_ssh_key: An array of SSH keys for the admin user.
|
|
407
|
+
:param admin_username: The admin username for the virtual machine.
|
|
408
|
+
:param availability_set_id: The ID of the availability set in which the VM should be placed.
|
|
409
|
+
:param boot_diagnostics_storage_uri: Bootdiagnostics settings for the VM.
|
|
410
|
+
:param custom_data: Custom data to pass to the virtual machine upon creation.
|
|
411
|
+
:param enable_ssh_azure_ad_login: Enable SSH Azure AD Login, required managed identity to be set.
|
|
412
|
+
:param identity: Managed identity settings for the VM.
|
|
413
|
+
:param location: The Azure location where the virtual machine should be created. Default: "eastus"
|
|
414
|
+
:param name: The name of the virtual machine. Default: - Uses the name derived from the construct path.
|
|
415
|
+
:param os_disk: The OS disk configuration for the virtual machine. Default: - Uses a disk with caching set to "ReadWrite" and storage account type "Standard_LRS".
|
|
416
|
+
:param public_ip_allocation_method: The allocation method for the public IP.
|
|
417
|
+
:param resource_group: An optional reference to the resource group in which to deploy the Virtual Machine. If not provided, the Virtual Machine will be deployed in the default resource group.
|
|
418
|
+
:param secret: An array of secrets to be passed to the VM.
|
|
419
|
+
:param size: The size of the virtual machine. Default: "Standard_B2s"
|
|
420
|
+
:param source_image_id: The ID of the source image for the virtual machine.
|
|
421
|
+
:param source_image_reference: The source image reference for the virtual machine. Default: - Uses WindowsServer2022DatacenterCore.
|
|
422
|
+
:param subnet: The subnet in which the virtual machine will be placed. Default: - Uses the default subnet from a new virtual network.
|
|
423
|
+
:param tags: Tags to apply to the virtual machine.
|
|
424
|
+
:param user_data: Custom data to pass to the virtual machine upon creation.
|
|
425
|
+
:param zone: The availability zone in which the VM should be placed.
|
|
426
|
+
'''
|
|
427
|
+
if isinstance(additional_capabilities, dict):
|
|
428
|
+
additional_capabilities = _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineAdditionalCapabilities(**additional_capabilities)
|
|
429
|
+
if isinstance(identity, dict):
|
|
430
|
+
identity = _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineIdentity(**identity)
|
|
431
|
+
if isinstance(os_disk, dict):
|
|
432
|
+
os_disk = _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineOsDisk(**os_disk)
|
|
433
|
+
if isinstance(source_image_reference, dict):
|
|
434
|
+
source_image_reference = _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference(**source_image_reference)
|
|
435
|
+
if __debug__:
|
|
436
|
+
type_hints = typing.get_type_hints(_typecheckingstub__53d88c32a57de5faac8a76fe382df39f974f727204f91f8ebede45487727829e)
|
|
437
|
+
check_type(argname="argument additional_capabilities", value=additional_capabilities, expected_type=type_hints["additional_capabilities"])
|
|
438
|
+
check_type(argname="argument admin_password", value=admin_password, expected_type=type_hints["admin_password"])
|
|
439
|
+
check_type(argname="argument admin_ssh_key", value=admin_ssh_key, expected_type=type_hints["admin_ssh_key"])
|
|
440
|
+
check_type(argname="argument admin_username", value=admin_username, expected_type=type_hints["admin_username"])
|
|
441
|
+
check_type(argname="argument availability_set_id", value=availability_set_id, expected_type=type_hints["availability_set_id"])
|
|
442
|
+
check_type(argname="argument boot_diagnostics_storage_uri", value=boot_diagnostics_storage_uri, expected_type=type_hints["boot_diagnostics_storage_uri"])
|
|
443
|
+
check_type(argname="argument custom_data", value=custom_data, expected_type=type_hints["custom_data"])
|
|
444
|
+
check_type(argname="argument enable_ssh_azure_ad_login", value=enable_ssh_azure_ad_login, expected_type=type_hints["enable_ssh_azure_ad_login"])
|
|
445
|
+
check_type(argname="argument identity", value=identity, expected_type=type_hints["identity"])
|
|
446
|
+
check_type(argname="argument location", value=location, expected_type=type_hints["location"])
|
|
447
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
448
|
+
check_type(argname="argument os_disk", value=os_disk, expected_type=type_hints["os_disk"])
|
|
449
|
+
check_type(argname="argument public_ip_allocation_method", value=public_ip_allocation_method, expected_type=type_hints["public_ip_allocation_method"])
|
|
450
|
+
check_type(argname="argument resource_group", value=resource_group, expected_type=type_hints["resource_group"])
|
|
451
|
+
check_type(argname="argument secret", value=secret, expected_type=type_hints["secret"])
|
|
452
|
+
check_type(argname="argument size", value=size, expected_type=type_hints["size"])
|
|
453
|
+
check_type(argname="argument source_image_id", value=source_image_id, expected_type=type_hints["source_image_id"])
|
|
454
|
+
check_type(argname="argument source_image_reference", value=source_image_reference, expected_type=type_hints["source_image_reference"])
|
|
455
|
+
check_type(argname="argument subnet", value=subnet, expected_type=type_hints["subnet"])
|
|
456
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
457
|
+
check_type(argname="argument user_data", value=user_data, expected_type=type_hints["user_data"])
|
|
458
|
+
check_type(argname="argument zone", value=zone, expected_type=type_hints["zone"])
|
|
459
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
460
|
+
if additional_capabilities is not None:
|
|
461
|
+
self._values["additional_capabilities"] = additional_capabilities
|
|
462
|
+
if admin_password is not None:
|
|
463
|
+
self._values["admin_password"] = admin_password
|
|
464
|
+
if admin_ssh_key is not None:
|
|
465
|
+
self._values["admin_ssh_key"] = admin_ssh_key
|
|
466
|
+
if admin_username is not None:
|
|
467
|
+
self._values["admin_username"] = admin_username
|
|
468
|
+
if availability_set_id is not None:
|
|
469
|
+
self._values["availability_set_id"] = availability_set_id
|
|
470
|
+
if boot_diagnostics_storage_uri is not None:
|
|
471
|
+
self._values["boot_diagnostics_storage_uri"] = boot_diagnostics_storage_uri
|
|
472
|
+
if custom_data is not None:
|
|
473
|
+
self._values["custom_data"] = custom_data
|
|
474
|
+
if enable_ssh_azure_ad_login is not None:
|
|
475
|
+
self._values["enable_ssh_azure_ad_login"] = enable_ssh_azure_ad_login
|
|
476
|
+
if identity is not None:
|
|
477
|
+
self._values["identity"] = identity
|
|
478
|
+
if location is not None:
|
|
479
|
+
self._values["location"] = location
|
|
480
|
+
if name is not None:
|
|
481
|
+
self._values["name"] = name
|
|
482
|
+
if os_disk is not None:
|
|
483
|
+
self._values["os_disk"] = os_disk
|
|
484
|
+
if public_ip_allocation_method is not None:
|
|
485
|
+
self._values["public_ip_allocation_method"] = public_ip_allocation_method
|
|
486
|
+
if resource_group is not None:
|
|
487
|
+
self._values["resource_group"] = resource_group
|
|
488
|
+
if secret is not None:
|
|
489
|
+
self._values["secret"] = secret
|
|
490
|
+
if size is not None:
|
|
491
|
+
self._values["size"] = size
|
|
492
|
+
if source_image_id is not None:
|
|
493
|
+
self._values["source_image_id"] = source_image_id
|
|
494
|
+
if source_image_reference is not None:
|
|
495
|
+
self._values["source_image_reference"] = source_image_reference
|
|
496
|
+
if subnet is not None:
|
|
497
|
+
self._values["subnet"] = subnet
|
|
498
|
+
if tags is not None:
|
|
499
|
+
self._values["tags"] = tags
|
|
500
|
+
if user_data is not None:
|
|
501
|
+
self._values["user_data"] = user_data
|
|
502
|
+
if zone is not None:
|
|
503
|
+
self._values["zone"] = zone
|
|
504
|
+
|
|
505
|
+
@builtins.property
|
|
506
|
+
def additional_capabilities(
|
|
507
|
+
self,
|
|
508
|
+
) -> typing.Optional[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineAdditionalCapabilities]:
|
|
509
|
+
'''Additional capabilities like Ultra Disk compatibility.'''
|
|
510
|
+
result = self._values.get("additional_capabilities")
|
|
511
|
+
return typing.cast(typing.Optional[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineAdditionalCapabilities], result)
|
|
512
|
+
|
|
513
|
+
@builtins.property
|
|
514
|
+
def admin_password(self) -> typing.Optional[builtins.str]:
|
|
515
|
+
'''The admin password for the virtual machine.'''
|
|
516
|
+
result = self._values.get("admin_password")
|
|
517
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
518
|
+
|
|
519
|
+
@builtins.property
|
|
520
|
+
def admin_ssh_key(
|
|
521
|
+
self,
|
|
522
|
+
) -> typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineAdminSshKey]]]:
|
|
523
|
+
'''An array of SSH keys for the admin user.'''
|
|
524
|
+
result = self._values.get("admin_ssh_key")
|
|
525
|
+
return typing.cast(typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineAdminSshKey]]], result)
|
|
526
|
+
|
|
527
|
+
@builtins.property
|
|
528
|
+
def admin_username(self) -> typing.Optional[builtins.str]:
|
|
529
|
+
'''The admin username for the virtual machine.'''
|
|
530
|
+
result = self._values.get("admin_username")
|
|
531
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
532
|
+
|
|
533
|
+
@builtins.property
|
|
534
|
+
def availability_set_id(self) -> typing.Optional[builtins.str]:
|
|
535
|
+
'''The ID of the availability set in which the VM should be placed.'''
|
|
536
|
+
result = self._values.get("availability_set_id")
|
|
537
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
538
|
+
|
|
539
|
+
@builtins.property
|
|
540
|
+
def boot_diagnostics_storage_uri(self) -> typing.Optional[builtins.str]:
|
|
541
|
+
'''Bootdiagnostics settings for the VM.'''
|
|
542
|
+
result = self._values.get("boot_diagnostics_storage_uri")
|
|
543
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
544
|
+
|
|
545
|
+
@builtins.property
|
|
546
|
+
def custom_data(self) -> typing.Optional[builtins.str]:
|
|
547
|
+
'''Custom data to pass to the virtual machine upon creation.'''
|
|
548
|
+
result = self._values.get("custom_data")
|
|
549
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
550
|
+
|
|
551
|
+
@builtins.property
|
|
552
|
+
def enable_ssh_azure_ad_login(self) -> typing.Optional[builtins.bool]:
|
|
553
|
+
'''Enable SSH Azure AD Login, required managed identity to be set.'''
|
|
554
|
+
result = self._values.get("enable_ssh_azure_ad_login")
|
|
555
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
556
|
+
|
|
557
|
+
@builtins.property
|
|
558
|
+
def identity(
|
|
559
|
+
self,
|
|
560
|
+
) -> typing.Optional[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineIdentity]:
|
|
561
|
+
'''Managed identity settings for the VM.'''
|
|
562
|
+
result = self._values.get("identity")
|
|
563
|
+
return typing.cast(typing.Optional[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineIdentity], result)
|
|
564
|
+
|
|
565
|
+
@builtins.property
|
|
566
|
+
def location(self) -> typing.Optional[builtins.str]:
|
|
567
|
+
'''The Azure location where the virtual machine should be created.
|
|
568
|
+
|
|
569
|
+
:default: "eastus"
|
|
570
|
+
'''
|
|
571
|
+
result = self._values.get("location")
|
|
572
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
573
|
+
|
|
574
|
+
@builtins.property
|
|
575
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
576
|
+
'''The name of the virtual machine.
|
|
577
|
+
|
|
578
|
+
:default: - Uses the name derived from the construct path.
|
|
579
|
+
'''
|
|
580
|
+
result = self._values.get("name")
|
|
581
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
582
|
+
|
|
583
|
+
@builtins.property
|
|
584
|
+
def os_disk(
|
|
585
|
+
self,
|
|
586
|
+
) -> typing.Optional[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineOsDisk]:
|
|
587
|
+
'''The OS disk configuration for the virtual machine.
|
|
588
|
+
|
|
589
|
+
:default: - Uses a disk with caching set to "ReadWrite" and storage account type "Standard_LRS".
|
|
590
|
+
'''
|
|
591
|
+
result = self._values.get("os_disk")
|
|
592
|
+
return typing.cast(typing.Optional[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineOsDisk], result)
|
|
593
|
+
|
|
594
|
+
@builtins.property
|
|
595
|
+
def public_ip_allocation_method(self) -> typing.Optional[builtins.str]:
|
|
596
|
+
'''The allocation method for the public IP.'''
|
|
597
|
+
result = self._values.get("public_ip_allocation_method")
|
|
598
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
599
|
+
|
|
600
|
+
@builtins.property
|
|
601
|
+
def resource_group(
|
|
602
|
+
self,
|
|
603
|
+
) -> typing.Optional[_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup]:
|
|
604
|
+
'''An optional reference to the resource group in which to deploy the Virtual Machine.
|
|
605
|
+
|
|
606
|
+
If not provided, the Virtual Machine will be deployed in the default resource group.
|
|
607
|
+
'''
|
|
608
|
+
result = self._values.get("resource_group")
|
|
609
|
+
return typing.cast(typing.Optional[_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup], result)
|
|
610
|
+
|
|
611
|
+
@builtins.property
|
|
612
|
+
def secret(
|
|
613
|
+
self,
|
|
614
|
+
) -> typing.Optional[typing.List[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSecret]]:
|
|
615
|
+
'''An array of secrets to be passed to the VM.'''
|
|
616
|
+
result = self._values.get("secret")
|
|
617
|
+
return typing.cast(typing.Optional[typing.List[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSecret]], result)
|
|
618
|
+
|
|
619
|
+
@builtins.property
|
|
620
|
+
def size(self) -> typing.Optional[builtins.str]:
|
|
621
|
+
'''The size of the virtual machine.
|
|
622
|
+
|
|
623
|
+
:default: "Standard_B2s"
|
|
624
|
+
'''
|
|
625
|
+
result = self._values.get("size")
|
|
626
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
627
|
+
|
|
628
|
+
@builtins.property
|
|
629
|
+
def source_image_id(self) -> typing.Optional[builtins.str]:
|
|
630
|
+
'''The ID of the source image for the virtual machine.'''
|
|
631
|
+
result = self._values.get("source_image_id")
|
|
632
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
633
|
+
|
|
634
|
+
@builtins.property
|
|
635
|
+
def source_image_reference(
|
|
636
|
+
self,
|
|
637
|
+
) -> typing.Optional[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference]:
|
|
638
|
+
'''The source image reference for the virtual machine.
|
|
639
|
+
|
|
640
|
+
:default: - Uses WindowsServer2022DatacenterCore.
|
|
641
|
+
'''
|
|
642
|
+
result = self._values.get("source_image_reference")
|
|
643
|
+
return typing.cast(typing.Optional[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference], result)
|
|
644
|
+
|
|
645
|
+
@builtins.property
|
|
646
|
+
def subnet(
|
|
647
|
+
self,
|
|
648
|
+
) -> typing.Optional[_cdktf_cdktf_provider_azurerm_subnet_92bbcedf.Subnet]:
|
|
649
|
+
'''The subnet in which the virtual machine will be placed.
|
|
650
|
+
|
|
651
|
+
:default: - Uses the default subnet from a new virtual network.
|
|
652
|
+
'''
|
|
653
|
+
result = self._values.get("subnet")
|
|
654
|
+
return typing.cast(typing.Optional[_cdktf_cdktf_provider_azurerm_subnet_92bbcedf.Subnet], result)
|
|
655
|
+
|
|
656
|
+
@builtins.property
|
|
657
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
658
|
+
'''Tags to apply to the virtual machine.'''
|
|
659
|
+
result = self._values.get("tags")
|
|
660
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
661
|
+
|
|
662
|
+
@builtins.property
|
|
663
|
+
def user_data(self) -> typing.Optional[builtins.str]:
|
|
664
|
+
'''Custom data to pass to the virtual machine upon creation.'''
|
|
665
|
+
result = self._values.get("user_data")
|
|
666
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
667
|
+
|
|
668
|
+
@builtins.property
|
|
669
|
+
def zone(self) -> typing.Optional[builtins.str]:
|
|
670
|
+
'''The availability zone in which the VM should be placed.'''
|
|
671
|
+
result = self._values.get("zone")
|
|
672
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
673
|
+
|
|
674
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
675
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
676
|
+
|
|
677
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
678
|
+
return not (rhs == self)
|
|
679
|
+
|
|
680
|
+
def __repr__(self) -> str:
|
|
681
|
+
return "LinuxVMProps(%s)" % ", ".join(
|
|
682
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
683
|
+
)
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
class WindowsImageReferences(
|
|
687
|
+
metaclass=jsii.JSIIMeta,
|
|
688
|
+
jsii_type="@microsoft/terraform-cdk-constructs.azure_virtualmachine.WindowsImageReferences",
|
|
689
|
+
):
|
|
690
|
+
def __init__(self) -> None:
|
|
691
|
+
jsii.create(self.__class__, self, [])
|
|
692
|
+
|
|
693
|
+
@jsii.python.classproperty
|
|
694
|
+
@jsii.member(jsii_name="windows10Enterprise")
|
|
695
|
+
def windows10_enterprise(
|
|
696
|
+
cls,
|
|
697
|
+
) -> _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
698
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, jsii.sget(cls, "windows10Enterprise"))
|
|
699
|
+
|
|
700
|
+
@windows10_enterprise.setter # type: ignore[no-redef]
|
|
701
|
+
def windows10_enterprise(
|
|
702
|
+
cls,
|
|
703
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
704
|
+
) -> None:
|
|
705
|
+
if __debug__:
|
|
706
|
+
type_hints = typing.get_type_hints(_typecheckingstub__bf40c34d0166c0f6bee833b7b61bb742f4f48b90d3e4b3e5eeef1a04db5c4606)
|
|
707
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
708
|
+
jsii.sset(cls, "windows10Enterprise", value)
|
|
709
|
+
|
|
710
|
+
@jsii.python.classproperty
|
|
711
|
+
@jsii.member(jsii_name="windows10Pro")
|
|
712
|
+
def windows10_pro(
|
|
713
|
+
cls,
|
|
714
|
+
) -> _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
715
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, jsii.sget(cls, "windows10Pro"))
|
|
716
|
+
|
|
717
|
+
@windows10_pro.setter # type: ignore[no-redef]
|
|
718
|
+
def windows10_pro(
|
|
719
|
+
cls,
|
|
720
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
721
|
+
) -> None:
|
|
722
|
+
if __debug__:
|
|
723
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9aff3b10fb9bc184f52cf14764691d0c805719c00ccd9637a645f259045085d9)
|
|
724
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
725
|
+
jsii.sset(cls, "windows10Pro", value)
|
|
726
|
+
|
|
727
|
+
@jsii.python.classproperty
|
|
728
|
+
@jsii.member(jsii_name="windowsServer2012R2Datacenter")
|
|
729
|
+
def windows_server2012_r2_datacenter(
|
|
730
|
+
cls,
|
|
731
|
+
) -> _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
732
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, jsii.sget(cls, "windowsServer2012R2Datacenter"))
|
|
733
|
+
|
|
734
|
+
@windows_server2012_r2_datacenter.setter # type: ignore[no-redef]
|
|
735
|
+
def windows_server2012_r2_datacenter(
|
|
736
|
+
cls,
|
|
737
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
738
|
+
) -> None:
|
|
739
|
+
if __debug__:
|
|
740
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c5ebfee79d399fb0e9a7b8f50006a53381a91211129c2124c0f1ae78ee3dd172)
|
|
741
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
742
|
+
jsii.sset(cls, "windowsServer2012R2Datacenter", value)
|
|
743
|
+
|
|
744
|
+
@jsii.python.classproperty
|
|
745
|
+
@jsii.member(jsii_name="windowsServer2012R2DatacenterCore")
|
|
746
|
+
def windows_server2012_r2_datacenter_core(
|
|
747
|
+
cls,
|
|
748
|
+
) -> _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
749
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, jsii.sget(cls, "windowsServer2012R2DatacenterCore"))
|
|
750
|
+
|
|
751
|
+
@windows_server2012_r2_datacenter_core.setter # type: ignore[no-redef]
|
|
752
|
+
def windows_server2012_r2_datacenter_core(
|
|
753
|
+
cls,
|
|
754
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
755
|
+
) -> None:
|
|
756
|
+
if __debug__:
|
|
757
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5fb3ea6e310f913788b2dcc3f2798ad0ac7f3162bec92b92c2e0d06399e7c0d0)
|
|
758
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
759
|
+
jsii.sset(cls, "windowsServer2012R2DatacenterCore", value)
|
|
760
|
+
|
|
761
|
+
@jsii.python.classproperty
|
|
762
|
+
@jsii.member(jsii_name="windowsServer2016Datacenter")
|
|
763
|
+
def windows_server2016_datacenter(
|
|
764
|
+
cls,
|
|
765
|
+
) -> _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
766
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, jsii.sget(cls, "windowsServer2016Datacenter"))
|
|
767
|
+
|
|
768
|
+
@windows_server2016_datacenter.setter # type: ignore[no-redef]
|
|
769
|
+
def windows_server2016_datacenter(
|
|
770
|
+
cls,
|
|
771
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
772
|
+
) -> None:
|
|
773
|
+
if __debug__:
|
|
774
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ab632c1332e6eb149f8379dd60672373b62743d1a44f42fcf20f220c5190cf9b)
|
|
775
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
776
|
+
jsii.sset(cls, "windowsServer2016Datacenter", value)
|
|
777
|
+
|
|
778
|
+
@jsii.python.classproperty
|
|
779
|
+
@jsii.member(jsii_name="windowsServer2016DatacenterCore")
|
|
780
|
+
def windows_server2016_datacenter_core(
|
|
781
|
+
cls,
|
|
782
|
+
) -> _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
783
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, jsii.sget(cls, "windowsServer2016DatacenterCore"))
|
|
784
|
+
|
|
785
|
+
@windows_server2016_datacenter_core.setter # type: ignore[no-redef]
|
|
786
|
+
def windows_server2016_datacenter_core(
|
|
787
|
+
cls,
|
|
788
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
789
|
+
) -> None:
|
|
790
|
+
if __debug__:
|
|
791
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cce5ebd44c0d1eb2ecf32b2c12611fe3c6fca269e4b37341c6bb8615d8dd0e3f)
|
|
792
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
793
|
+
jsii.sset(cls, "windowsServer2016DatacenterCore", value)
|
|
794
|
+
|
|
795
|
+
@jsii.python.classproperty
|
|
796
|
+
@jsii.member(jsii_name="windowsServer2019Datacenter")
|
|
797
|
+
def windows_server2019_datacenter(
|
|
798
|
+
cls,
|
|
799
|
+
) -> _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
800
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, jsii.sget(cls, "windowsServer2019Datacenter"))
|
|
801
|
+
|
|
802
|
+
@windows_server2019_datacenter.setter # type: ignore[no-redef]
|
|
803
|
+
def windows_server2019_datacenter(
|
|
804
|
+
cls,
|
|
805
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
806
|
+
) -> None:
|
|
807
|
+
if __debug__:
|
|
808
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ca4185605ed0a1f2183d40eaa7ba6d4284c7431d629b2e82ffb3c7f6822189ef)
|
|
809
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
810
|
+
jsii.sset(cls, "windowsServer2019Datacenter", value)
|
|
811
|
+
|
|
812
|
+
@jsii.python.classproperty
|
|
813
|
+
@jsii.member(jsii_name="windowsServer2019DatacenterCore")
|
|
814
|
+
def windows_server2019_datacenter_core(
|
|
815
|
+
cls,
|
|
816
|
+
) -> _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
817
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, jsii.sget(cls, "windowsServer2019DatacenterCore"))
|
|
818
|
+
|
|
819
|
+
@windows_server2019_datacenter_core.setter # type: ignore[no-redef]
|
|
820
|
+
def windows_server2019_datacenter_core(
|
|
821
|
+
cls,
|
|
822
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
823
|
+
) -> None:
|
|
824
|
+
if __debug__:
|
|
825
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f57c5d44eee3ebbd882a61df6189449ceea10f7dd5141cf63bbb84bfa77850d4)
|
|
826
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
827
|
+
jsii.sset(cls, "windowsServer2019DatacenterCore", value)
|
|
828
|
+
|
|
829
|
+
@jsii.python.classproperty
|
|
830
|
+
@jsii.member(jsii_name="windowsServer2022Datacenter")
|
|
831
|
+
def windows_server2022_datacenter(
|
|
832
|
+
cls,
|
|
833
|
+
) -> _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
834
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, jsii.sget(cls, "windowsServer2022Datacenter"))
|
|
835
|
+
|
|
836
|
+
@windows_server2022_datacenter.setter # type: ignore[no-redef]
|
|
837
|
+
def windows_server2022_datacenter(
|
|
838
|
+
cls,
|
|
839
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
840
|
+
) -> None:
|
|
841
|
+
if __debug__:
|
|
842
|
+
type_hints = typing.get_type_hints(_typecheckingstub__47ebd4045041171630b40321487b500a7da9806e4f60bdfe7b79957dd3a12e64)
|
|
843
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
844
|
+
jsii.sset(cls, "windowsServer2022Datacenter", value)
|
|
845
|
+
|
|
846
|
+
@jsii.python.classproperty
|
|
847
|
+
@jsii.member(jsii_name="windowsServer2022DatacenterCore")
|
|
848
|
+
def windows_server2022_datacenter_core(
|
|
849
|
+
cls,
|
|
850
|
+
) -> _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference: # pyright: ignore [reportGeneralTypeIssues]
|
|
851
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, jsii.sget(cls, "windowsServer2022DatacenterCore"))
|
|
852
|
+
|
|
853
|
+
@windows_server2022_datacenter_core.setter # type: ignore[no-redef]
|
|
854
|
+
def windows_server2022_datacenter_core(
|
|
855
|
+
cls,
|
|
856
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
857
|
+
) -> None:
|
|
858
|
+
if __debug__:
|
|
859
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3e56057d4d440886628ab2559209f143dd2c88e7da105be6d2a71911f212b8e6)
|
|
860
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
861
|
+
jsii.sset(cls, "windowsServer2022DatacenterCore", value)
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
class WindowsVM(
|
|
865
|
+
_AzureResource_74eec1c4,
|
|
866
|
+
metaclass=jsii.JSIIMeta,
|
|
867
|
+
jsii_type="@microsoft/terraform-cdk-constructs.azure_virtualmachine.WindowsVM",
|
|
868
|
+
):
|
|
869
|
+
def __init__(
|
|
870
|
+
self,
|
|
871
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
872
|
+
id: builtins.str,
|
|
873
|
+
*,
|
|
874
|
+
admin_password: builtins.str,
|
|
875
|
+
admin_username: builtins.str,
|
|
876
|
+
boostrap_custom_data: typing.Optional[builtins.str] = None,
|
|
877
|
+
boot_diagnostics_storage_uri: typing.Optional[builtins.str] = None,
|
|
878
|
+
custom_data: typing.Optional[builtins.str] = None,
|
|
879
|
+
location: typing.Optional[builtins.str] = None,
|
|
880
|
+
name: typing.Optional[builtins.str] = None,
|
|
881
|
+
os_disk: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineOsDisk, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
882
|
+
public_ip_allocation_method: typing.Optional[builtins.str] = None,
|
|
883
|
+
resource_group: typing.Optional[_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup] = None,
|
|
884
|
+
size: typing.Optional[builtins.str] = None,
|
|
885
|
+
source_image_id: typing.Optional[builtins.str] = None,
|
|
886
|
+
source_image_reference: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
887
|
+
subnet: typing.Optional[_cdktf_cdktf_provider_azurerm_subnet_92bbcedf.Subnet] = None,
|
|
888
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
889
|
+
) -> None:
|
|
890
|
+
'''Represents a Windows-based Virtual Machine (VM) within Microsoft Azure.
|
|
891
|
+
|
|
892
|
+
This class is designed to provision and manage a Windows VM in Azure, allowing for detailed configuration including
|
|
893
|
+
the VM's size, the operating system image, network settings, and administrative credentials. It supports customization
|
|
894
|
+
of the OS disk, networking setup, and optional features like custom data scripts and boot diagnostics.
|
|
895
|
+
|
|
896
|
+
:param scope: - The scope in which to define this construct, typically representing the Cloud Development Kit (CDK) application.
|
|
897
|
+
:param id: - The unique identifier for this instance of the Windows VM, used within the scope for reference.
|
|
898
|
+
:param admin_password: The admin password for the virtual machine.
|
|
899
|
+
:param admin_username: The admin username for the virtual machine.
|
|
900
|
+
:param boostrap_custom_data: Custom data to bootstrap the virtual machine. Automatically triggers Azure Custom Script extension to deploy code in custom data.
|
|
901
|
+
:param boot_diagnostics_storage_uri: Bootdiagnostics settings for the VM.
|
|
902
|
+
:param custom_data: Custom data to pass to the virtual machine upon creation.
|
|
903
|
+
:param location: The Azure location where the virtual machine should be created. Default: "eastus"
|
|
904
|
+
:param name: The name of the virtual machine. Default: - Uses the name derived from the construct path.
|
|
905
|
+
:param os_disk: The OS disk configuration for the virtual machine. Default: - Uses a disk with caching set to "ReadWrite" and storage account type "Standard_LRS".
|
|
906
|
+
:param public_ip_allocation_method: The allocation method for the public IP.
|
|
907
|
+
:param resource_group: An optional reference to the resource group in which to deploy the Virtual Machine. If not provided, the Virtual Machine will be deployed in the default resource group.
|
|
908
|
+
:param size: The size of the virtual machine. Default: "Standard_B2s"
|
|
909
|
+
:param source_image_id: The ID of the source image for the virtual machine.
|
|
910
|
+
:param source_image_reference: The source image reference for the virtual machine. Default: - Uses WindowsServer2022DatacenterCore.
|
|
911
|
+
:param subnet: The subnet in which the virtual machine will be placed. Default: - Uses the default subnet from a new virtual network.
|
|
912
|
+
:param tags: Tags to apply to the virtual machine.
|
|
913
|
+
'''
|
|
914
|
+
if __debug__:
|
|
915
|
+
type_hints = typing.get_type_hints(_typecheckingstub__bc4ad31f1b205600bc2a349d409b5768c7caa371a75834fb6702709fa88f3494)
|
|
916
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
917
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
918
|
+
props = WindowsVMProps(
|
|
919
|
+
admin_password=admin_password,
|
|
920
|
+
admin_username=admin_username,
|
|
921
|
+
boostrap_custom_data=boostrap_custom_data,
|
|
922
|
+
boot_diagnostics_storage_uri=boot_diagnostics_storage_uri,
|
|
923
|
+
custom_data=custom_data,
|
|
924
|
+
location=location,
|
|
925
|
+
name=name,
|
|
926
|
+
os_disk=os_disk,
|
|
927
|
+
public_ip_allocation_method=public_ip_allocation_method,
|
|
928
|
+
resource_group=resource_group,
|
|
929
|
+
size=size,
|
|
930
|
+
source_image_id=source_image_id,
|
|
931
|
+
source_image_reference=source_image_reference,
|
|
932
|
+
subnet=subnet,
|
|
933
|
+
tags=tags,
|
|
934
|
+
)
|
|
935
|
+
|
|
936
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
937
|
+
|
|
938
|
+
@builtins.property
|
|
939
|
+
@jsii.member(jsii_name="name")
|
|
940
|
+
def name(self) -> builtins.str:
|
|
941
|
+
return typing.cast(builtins.str, jsii.get(self, "name"))
|
|
942
|
+
|
|
943
|
+
@builtins.property
|
|
944
|
+
@jsii.member(jsii_name="props")
|
|
945
|
+
def props(self) -> "WindowsVMProps":
|
|
946
|
+
return typing.cast("WindowsVMProps", jsii.get(self, "props"))
|
|
947
|
+
|
|
948
|
+
@builtins.property
|
|
949
|
+
@jsii.member(jsii_name="publicIp")
|
|
950
|
+
def public_ip(self) -> typing.Optional[builtins.str]:
|
|
951
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "publicIp"))
|
|
952
|
+
|
|
953
|
+
@builtins.property
|
|
954
|
+
@jsii.member(jsii_name="id")
|
|
955
|
+
def id(self) -> builtins.str:
|
|
956
|
+
return typing.cast(builtins.str, jsii.get(self, "id"))
|
|
957
|
+
|
|
958
|
+
@id.setter
|
|
959
|
+
def id(self, value: builtins.str) -> None:
|
|
960
|
+
if __debug__:
|
|
961
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b47a207b1765a3aa336ec4612e50b423d4eb44694227971bffbfca74437aa9de)
|
|
962
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
963
|
+
jsii.set(self, "id", value)
|
|
964
|
+
|
|
965
|
+
@builtins.property
|
|
966
|
+
@jsii.member(jsii_name="resourceGroup")
|
|
967
|
+
def resource_group(
|
|
968
|
+
self,
|
|
969
|
+
) -> _cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup:
|
|
970
|
+
return typing.cast(_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup, jsii.get(self, "resourceGroup"))
|
|
971
|
+
|
|
972
|
+
@resource_group.setter
|
|
973
|
+
def resource_group(
|
|
974
|
+
self,
|
|
975
|
+
value: _cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup,
|
|
976
|
+
) -> None:
|
|
977
|
+
if __debug__:
|
|
978
|
+
type_hints = typing.get_type_hints(_typecheckingstub__33f6db9075a6d9a44f420490ba2399cd34e8e67d1c6f6ae522059159ec0d794e)
|
|
979
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
980
|
+
jsii.set(self, "resourceGroup", value)
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
@jsii.data_type(
|
|
984
|
+
jsii_type="@microsoft/terraform-cdk-constructs.azure_virtualmachine.WindowsVMProps",
|
|
985
|
+
jsii_struct_bases=[],
|
|
986
|
+
name_mapping={
|
|
987
|
+
"admin_password": "adminPassword",
|
|
988
|
+
"admin_username": "adminUsername",
|
|
989
|
+
"boostrap_custom_data": "boostrapCustomData",
|
|
990
|
+
"boot_diagnostics_storage_uri": "bootDiagnosticsStorageURI",
|
|
991
|
+
"custom_data": "customData",
|
|
992
|
+
"location": "location",
|
|
993
|
+
"name": "name",
|
|
994
|
+
"os_disk": "osDisk",
|
|
995
|
+
"public_ip_allocation_method": "publicIPAllocationMethod",
|
|
996
|
+
"resource_group": "resourceGroup",
|
|
997
|
+
"size": "size",
|
|
998
|
+
"source_image_id": "sourceImageId",
|
|
999
|
+
"source_image_reference": "sourceImageReference",
|
|
1000
|
+
"subnet": "subnet",
|
|
1001
|
+
"tags": "tags",
|
|
1002
|
+
},
|
|
1003
|
+
)
|
|
1004
|
+
class WindowsVMProps:
|
|
1005
|
+
def __init__(
|
|
1006
|
+
self,
|
|
1007
|
+
*,
|
|
1008
|
+
admin_password: builtins.str,
|
|
1009
|
+
admin_username: builtins.str,
|
|
1010
|
+
boostrap_custom_data: typing.Optional[builtins.str] = None,
|
|
1011
|
+
boot_diagnostics_storage_uri: typing.Optional[builtins.str] = None,
|
|
1012
|
+
custom_data: typing.Optional[builtins.str] = None,
|
|
1013
|
+
location: typing.Optional[builtins.str] = None,
|
|
1014
|
+
name: typing.Optional[builtins.str] = None,
|
|
1015
|
+
os_disk: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineOsDisk, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1016
|
+
public_ip_allocation_method: typing.Optional[builtins.str] = None,
|
|
1017
|
+
resource_group: typing.Optional[_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup] = None,
|
|
1018
|
+
size: typing.Optional[builtins.str] = None,
|
|
1019
|
+
source_image_id: typing.Optional[builtins.str] = None,
|
|
1020
|
+
source_image_reference: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1021
|
+
subnet: typing.Optional[_cdktf_cdktf_provider_azurerm_subnet_92bbcedf.Subnet] = None,
|
|
1022
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
1023
|
+
) -> None:
|
|
1024
|
+
'''
|
|
1025
|
+
:param admin_password: The admin password for the virtual machine.
|
|
1026
|
+
:param admin_username: The admin username for the virtual machine.
|
|
1027
|
+
:param boostrap_custom_data: Custom data to bootstrap the virtual machine. Automatically triggers Azure Custom Script extension to deploy code in custom data.
|
|
1028
|
+
:param boot_diagnostics_storage_uri: Bootdiagnostics settings for the VM.
|
|
1029
|
+
:param custom_data: Custom data to pass to the virtual machine upon creation.
|
|
1030
|
+
:param location: The Azure location where the virtual machine should be created. Default: "eastus"
|
|
1031
|
+
:param name: The name of the virtual machine. Default: - Uses the name derived from the construct path.
|
|
1032
|
+
:param os_disk: The OS disk configuration for the virtual machine. Default: - Uses a disk with caching set to "ReadWrite" and storage account type "Standard_LRS".
|
|
1033
|
+
:param public_ip_allocation_method: The allocation method for the public IP.
|
|
1034
|
+
:param resource_group: An optional reference to the resource group in which to deploy the Virtual Machine. If not provided, the Virtual Machine will be deployed in the default resource group.
|
|
1035
|
+
:param size: The size of the virtual machine. Default: "Standard_B2s"
|
|
1036
|
+
:param source_image_id: The ID of the source image for the virtual machine.
|
|
1037
|
+
:param source_image_reference: The source image reference for the virtual machine. Default: - Uses WindowsServer2022DatacenterCore.
|
|
1038
|
+
:param subnet: The subnet in which the virtual machine will be placed. Default: - Uses the default subnet from a new virtual network.
|
|
1039
|
+
:param tags: Tags to apply to the virtual machine.
|
|
1040
|
+
'''
|
|
1041
|
+
if isinstance(os_disk, dict):
|
|
1042
|
+
os_disk = _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineOsDisk(**os_disk)
|
|
1043
|
+
if isinstance(source_image_reference, dict):
|
|
1044
|
+
source_image_reference = _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference(**source_image_reference)
|
|
1045
|
+
if __debug__:
|
|
1046
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c829d260403fdd4cef500aeb0808fafc9d26c9425d70d31f1740bccd18470681)
|
|
1047
|
+
check_type(argname="argument admin_password", value=admin_password, expected_type=type_hints["admin_password"])
|
|
1048
|
+
check_type(argname="argument admin_username", value=admin_username, expected_type=type_hints["admin_username"])
|
|
1049
|
+
check_type(argname="argument boostrap_custom_data", value=boostrap_custom_data, expected_type=type_hints["boostrap_custom_data"])
|
|
1050
|
+
check_type(argname="argument boot_diagnostics_storage_uri", value=boot_diagnostics_storage_uri, expected_type=type_hints["boot_diagnostics_storage_uri"])
|
|
1051
|
+
check_type(argname="argument custom_data", value=custom_data, expected_type=type_hints["custom_data"])
|
|
1052
|
+
check_type(argname="argument location", value=location, expected_type=type_hints["location"])
|
|
1053
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
1054
|
+
check_type(argname="argument os_disk", value=os_disk, expected_type=type_hints["os_disk"])
|
|
1055
|
+
check_type(argname="argument public_ip_allocation_method", value=public_ip_allocation_method, expected_type=type_hints["public_ip_allocation_method"])
|
|
1056
|
+
check_type(argname="argument resource_group", value=resource_group, expected_type=type_hints["resource_group"])
|
|
1057
|
+
check_type(argname="argument size", value=size, expected_type=type_hints["size"])
|
|
1058
|
+
check_type(argname="argument source_image_id", value=source_image_id, expected_type=type_hints["source_image_id"])
|
|
1059
|
+
check_type(argname="argument source_image_reference", value=source_image_reference, expected_type=type_hints["source_image_reference"])
|
|
1060
|
+
check_type(argname="argument subnet", value=subnet, expected_type=type_hints["subnet"])
|
|
1061
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
1062
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1063
|
+
"admin_password": admin_password,
|
|
1064
|
+
"admin_username": admin_username,
|
|
1065
|
+
}
|
|
1066
|
+
if boostrap_custom_data is not None:
|
|
1067
|
+
self._values["boostrap_custom_data"] = boostrap_custom_data
|
|
1068
|
+
if boot_diagnostics_storage_uri is not None:
|
|
1069
|
+
self._values["boot_diagnostics_storage_uri"] = boot_diagnostics_storage_uri
|
|
1070
|
+
if custom_data is not None:
|
|
1071
|
+
self._values["custom_data"] = custom_data
|
|
1072
|
+
if location is not None:
|
|
1073
|
+
self._values["location"] = location
|
|
1074
|
+
if name is not None:
|
|
1075
|
+
self._values["name"] = name
|
|
1076
|
+
if os_disk is not None:
|
|
1077
|
+
self._values["os_disk"] = os_disk
|
|
1078
|
+
if public_ip_allocation_method is not None:
|
|
1079
|
+
self._values["public_ip_allocation_method"] = public_ip_allocation_method
|
|
1080
|
+
if resource_group is not None:
|
|
1081
|
+
self._values["resource_group"] = resource_group
|
|
1082
|
+
if size is not None:
|
|
1083
|
+
self._values["size"] = size
|
|
1084
|
+
if source_image_id is not None:
|
|
1085
|
+
self._values["source_image_id"] = source_image_id
|
|
1086
|
+
if source_image_reference is not None:
|
|
1087
|
+
self._values["source_image_reference"] = source_image_reference
|
|
1088
|
+
if subnet is not None:
|
|
1089
|
+
self._values["subnet"] = subnet
|
|
1090
|
+
if tags is not None:
|
|
1091
|
+
self._values["tags"] = tags
|
|
1092
|
+
|
|
1093
|
+
@builtins.property
|
|
1094
|
+
def admin_password(self) -> builtins.str:
|
|
1095
|
+
'''The admin password for the virtual machine.'''
|
|
1096
|
+
result = self._values.get("admin_password")
|
|
1097
|
+
assert result is not None, "Required property 'admin_password' is missing"
|
|
1098
|
+
return typing.cast(builtins.str, result)
|
|
1099
|
+
|
|
1100
|
+
@builtins.property
|
|
1101
|
+
def admin_username(self) -> builtins.str:
|
|
1102
|
+
'''The admin username for the virtual machine.'''
|
|
1103
|
+
result = self._values.get("admin_username")
|
|
1104
|
+
assert result is not None, "Required property 'admin_username' is missing"
|
|
1105
|
+
return typing.cast(builtins.str, result)
|
|
1106
|
+
|
|
1107
|
+
@builtins.property
|
|
1108
|
+
def boostrap_custom_data(self) -> typing.Optional[builtins.str]:
|
|
1109
|
+
'''Custom data to bootstrap the virtual machine.
|
|
1110
|
+
|
|
1111
|
+
Automatically triggers Azure Custom Script extension to deploy code in custom data.
|
|
1112
|
+
'''
|
|
1113
|
+
result = self._values.get("boostrap_custom_data")
|
|
1114
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1115
|
+
|
|
1116
|
+
@builtins.property
|
|
1117
|
+
def boot_diagnostics_storage_uri(self) -> typing.Optional[builtins.str]:
|
|
1118
|
+
'''Bootdiagnostics settings for the VM.'''
|
|
1119
|
+
result = self._values.get("boot_diagnostics_storage_uri")
|
|
1120
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1121
|
+
|
|
1122
|
+
@builtins.property
|
|
1123
|
+
def custom_data(self) -> typing.Optional[builtins.str]:
|
|
1124
|
+
'''Custom data to pass to the virtual machine upon creation.'''
|
|
1125
|
+
result = self._values.get("custom_data")
|
|
1126
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1127
|
+
|
|
1128
|
+
@builtins.property
|
|
1129
|
+
def location(self) -> typing.Optional[builtins.str]:
|
|
1130
|
+
'''The Azure location where the virtual machine should be created.
|
|
1131
|
+
|
|
1132
|
+
:default: "eastus"
|
|
1133
|
+
'''
|
|
1134
|
+
result = self._values.get("location")
|
|
1135
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1136
|
+
|
|
1137
|
+
@builtins.property
|
|
1138
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
1139
|
+
'''The name of the virtual machine.
|
|
1140
|
+
|
|
1141
|
+
:default: - Uses the name derived from the construct path.
|
|
1142
|
+
'''
|
|
1143
|
+
result = self._values.get("name")
|
|
1144
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1145
|
+
|
|
1146
|
+
@builtins.property
|
|
1147
|
+
def os_disk(
|
|
1148
|
+
self,
|
|
1149
|
+
) -> typing.Optional[_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineOsDisk]:
|
|
1150
|
+
'''The OS disk configuration for the virtual machine.
|
|
1151
|
+
|
|
1152
|
+
:default: - Uses a disk with caching set to "ReadWrite" and storage account type "Standard_LRS".
|
|
1153
|
+
'''
|
|
1154
|
+
result = self._values.get("os_disk")
|
|
1155
|
+
return typing.cast(typing.Optional[_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineOsDisk], result)
|
|
1156
|
+
|
|
1157
|
+
@builtins.property
|
|
1158
|
+
def public_ip_allocation_method(self) -> typing.Optional[builtins.str]:
|
|
1159
|
+
'''The allocation method for the public IP.'''
|
|
1160
|
+
result = self._values.get("public_ip_allocation_method")
|
|
1161
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1162
|
+
|
|
1163
|
+
@builtins.property
|
|
1164
|
+
def resource_group(
|
|
1165
|
+
self,
|
|
1166
|
+
) -> typing.Optional[_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup]:
|
|
1167
|
+
'''An optional reference to the resource group in which to deploy the Virtual Machine.
|
|
1168
|
+
|
|
1169
|
+
If not provided, the Virtual Machine will be deployed in the default resource group.
|
|
1170
|
+
'''
|
|
1171
|
+
result = self._values.get("resource_group")
|
|
1172
|
+
return typing.cast(typing.Optional[_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup], result)
|
|
1173
|
+
|
|
1174
|
+
@builtins.property
|
|
1175
|
+
def size(self) -> typing.Optional[builtins.str]:
|
|
1176
|
+
'''The size of the virtual machine.
|
|
1177
|
+
|
|
1178
|
+
:default: "Standard_B2s"
|
|
1179
|
+
'''
|
|
1180
|
+
result = self._values.get("size")
|
|
1181
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1182
|
+
|
|
1183
|
+
@builtins.property
|
|
1184
|
+
def source_image_id(self) -> typing.Optional[builtins.str]:
|
|
1185
|
+
'''The ID of the source image for the virtual machine.'''
|
|
1186
|
+
result = self._values.get("source_image_id")
|
|
1187
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1188
|
+
|
|
1189
|
+
@builtins.property
|
|
1190
|
+
def source_image_reference(
|
|
1191
|
+
self,
|
|
1192
|
+
) -> typing.Optional[_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference]:
|
|
1193
|
+
'''The source image reference for the virtual machine.
|
|
1194
|
+
|
|
1195
|
+
:default: - Uses WindowsServer2022DatacenterCore.
|
|
1196
|
+
'''
|
|
1197
|
+
result = self._values.get("source_image_reference")
|
|
1198
|
+
return typing.cast(typing.Optional[_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference], result)
|
|
1199
|
+
|
|
1200
|
+
@builtins.property
|
|
1201
|
+
def subnet(
|
|
1202
|
+
self,
|
|
1203
|
+
) -> typing.Optional[_cdktf_cdktf_provider_azurerm_subnet_92bbcedf.Subnet]:
|
|
1204
|
+
'''The subnet in which the virtual machine will be placed.
|
|
1205
|
+
|
|
1206
|
+
:default: - Uses the default subnet from a new virtual network.
|
|
1207
|
+
'''
|
|
1208
|
+
result = self._values.get("subnet")
|
|
1209
|
+
return typing.cast(typing.Optional[_cdktf_cdktf_provider_azurerm_subnet_92bbcedf.Subnet], result)
|
|
1210
|
+
|
|
1211
|
+
@builtins.property
|
|
1212
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
1213
|
+
'''Tags to apply to the virtual machine.'''
|
|
1214
|
+
result = self._values.get("tags")
|
|
1215
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
1216
|
+
|
|
1217
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1218
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1219
|
+
|
|
1220
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1221
|
+
return not (rhs == self)
|
|
1222
|
+
|
|
1223
|
+
def __repr__(self) -> str:
|
|
1224
|
+
return "WindowsVMProps(%s)" % ", ".join(
|
|
1225
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1226
|
+
)
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
__all__ = [
|
|
1230
|
+
"LinuxImageReferences",
|
|
1231
|
+
"LinuxVM",
|
|
1232
|
+
"LinuxVMProps",
|
|
1233
|
+
"WindowsImageReferences",
|
|
1234
|
+
"WindowsVM",
|
|
1235
|
+
"WindowsVMProps",
|
|
1236
|
+
]
|
|
1237
|
+
|
|
1238
|
+
publication.publish()
|
|
1239
|
+
|
|
1240
|
+
def _typecheckingstub__29a7c8d8f4ade05e5e41d2ccd39372d86d2fa2224109c485bf2f79e84b4836ae(
|
|
1241
|
+
value: _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference,
|
|
1242
|
+
) -> None:
|
|
1243
|
+
"""Type checking stubs"""
|
|
1244
|
+
pass
|
|
1245
|
+
|
|
1246
|
+
def _typecheckingstub__c5930d1184f218f5a271e84427012d2dbc17809f7422ecce05bf2b3ac575715e(
|
|
1247
|
+
value: _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference,
|
|
1248
|
+
) -> None:
|
|
1249
|
+
"""Type checking stubs"""
|
|
1250
|
+
pass
|
|
1251
|
+
|
|
1252
|
+
def _typecheckingstub__332d98f3e6e5e53589f78bddd78e5ca9dcf43ecf7932ce6bf073b7dfc11ee209(
|
|
1253
|
+
value: _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference,
|
|
1254
|
+
) -> None:
|
|
1255
|
+
"""Type checking stubs"""
|
|
1256
|
+
pass
|
|
1257
|
+
|
|
1258
|
+
def _typecheckingstub__cf30a5745843a5ebe2e5fdf88ed967b6ea615a6c1cf691bc07b3711445edb237(
|
|
1259
|
+
value: _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference,
|
|
1260
|
+
) -> None:
|
|
1261
|
+
"""Type checking stubs"""
|
|
1262
|
+
pass
|
|
1263
|
+
|
|
1264
|
+
def _typecheckingstub__7c977d4d4456b47218802aab7d3dd741e65a3c5b0c2772fb3b495a2733bc5209(
|
|
1265
|
+
value: _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference,
|
|
1266
|
+
) -> None:
|
|
1267
|
+
"""Type checking stubs"""
|
|
1268
|
+
pass
|
|
1269
|
+
|
|
1270
|
+
def _typecheckingstub__55ae29f90b43e9254f55fda36fb112dacb0a667d26f0ab3e6a15f145f8a2e180(
|
|
1271
|
+
value: _cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference,
|
|
1272
|
+
) -> None:
|
|
1273
|
+
"""Type checking stubs"""
|
|
1274
|
+
pass
|
|
1275
|
+
|
|
1276
|
+
def _typecheckingstub__4503c856086be09ccd03fad9fec5fa5a06773c3e3cfd91a62ac778582a4b3ada(
|
|
1277
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
1278
|
+
id: builtins.str,
|
|
1279
|
+
*,
|
|
1280
|
+
additional_capabilities: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineAdditionalCapabilities, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1281
|
+
admin_password: typing.Optional[builtins.str] = None,
|
|
1282
|
+
admin_ssh_key: typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineAdminSshKey, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
|
1283
|
+
admin_username: typing.Optional[builtins.str] = None,
|
|
1284
|
+
availability_set_id: typing.Optional[builtins.str] = None,
|
|
1285
|
+
boot_diagnostics_storage_uri: typing.Optional[builtins.str] = None,
|
|
1286
|
+
custom_data: typing.Optional[builtins.str] = None,
|
|
1287
|
+
enable_ssh_azure_ad_login: typing.Optional[builtins.bool] = None,
|
|
1288
|
+
identity: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1289
|
+
location: typing.Optional[builtins.str] = None,
|
|
1290
|
+
name: typing.Optional[builtins.str] = None,
|
|
1291
|
+
os_disk: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineOsDisk, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1292
|
+
public_ip_allocation_method: typing.Optional[builtins.str] = None,
|
|
1293
|
+
resource_group: typing.Optional[_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup] = None,
|
|
1294
|
+
secret: typing.Optional[typing.Sequence[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSecret, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1295
|
+
size: typing.Optional[builtins.str] = None,
|
|
1296
|
+
source_image_id: typing.Optional[builtins.str] = None,
|
|
1297
|
+
source_image_reference: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1298
|
+
subnet: typing.Optional[_cdktf_cdktf_provider_azurerm_subnet_92bbcedf.Subnet] = None,
|
|
1299
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
1300
|
+
user_data: typing.Optional[builtins.str] = None,
|
|
1301
|
+
zone: typing.Optional[builtins.str] = None,
|
|
1302
|
+
) -> None:
|
|
1303
|
+
"""Type checking stubs"""
|
|
1304
|
+
pass
|
|
1305
|
+
|
|
1306
|
+
def _typecheckingstub__2c5f0ee7ea05450a854f9fbb748ea8d4d20d5af57db5caff9ee90994b7c45755(
|
|
1307
|
+
value: builtins.str,
|
|
1308
|
+
) -> None:
|
|
1309
|
+
"""Type checking stubs"""
|
|
1310
|
+
pass
|
|
1311
|
+
|
|
1312
|
+
def _typecheckingstub__a57b7d59a91a7d43ceef299ac7a55a7e1c678e52058ec6f6fa9c402e61271919(
|
|
1313
|
+
value: _cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup,
|
|
1314
|
+
) -> None:
|
|
1315
|
+
"""Type checking stubs"""
|
|
1316
|
+
pass
|
|
1317
|
+
|
|
1318
|
+
def _typecheckingstub__53d88c32a57de5faac8a76fe382df39f974f727204f91f8ebede45487727829e(
|
|
1319
|
+
*,
|
|
1320
|
+
additional_capabilities: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineAdditionalCapabilities, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1321
|
+
admin_password: typing.Optional[builtins.str] = None,
|
|
1322
|
+
admin_ssh_key: typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineAdminSshKey, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
|
1323
|
+
admin_username: typing.Optional[builtins.str] = None,
|
|
1324
|
+
availability_set_id: typing.Optional[builtins.str] = None,
|
|
1325
|
+
boot_diagnostics_storage_uri: typing.Optional[builtins.str] = None,
|
|
1326
|
+
custom_data: typing.Optional[builtins.str] = None,
|
|
1327
|
+
enable_ssh_azure_ad_login: typing.Optional[builtins.bool] = None,
|
|
1328
|
+
identity: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineIdentity, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1329
|
+
location: typing.Optional[builtins.str] = None,
|
|
1330
|
+
name: typing.Optional[builtins.str] = None,
|
|
1331
|
+
os_disk: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineOsDisk, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1332
|
+
public_ip_allocation_method: typing.Optional[builtins.str] = None,
|
|
1333
|
+
resource_group: typing.Optional[_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup] = None,
|
|
1334
|
+
secret: typing.Optional[typing.Sequence[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSecret, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1335
|
+
size: typing.Optional[builtins.str] = None,
|
|
1336
|
+
source_image_id: typing.Optional[builtins.str] = None,
|
|
1337
|
+
source_image_reference: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_linux_virtual_machine_92bbcedf.LinuxVirtualMachineSourceImageReference, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1338
|
+
subnet: typing.Optional[_cdktf_cdktf_provider_azurerm_subnet_92bbcedf.Subnet] = None,
|
|
1339
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
1340
|
+
user_data: typing.Optional[builtins.str] = None,
|
|
1341
|
+
zone: typing.Optional[builtins.str] = None,
|
|
1342
|
+
) -> None:
|
|
1343
|
+
"""Type checking stubs"""
|
|
1344
|
+
pass
|
|
1345
|
+
|
|
1346
|
+
def _typecheckingstub__bf40c34d0166c0f6bee833b7b61bb742f4f48b90d3e4b3e5eeef1a04db5c4606(
|
|
1347
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
1348
|
+
) -> None:
|
|
1349
|
+
"""Type checking stubs"""
|
|
1350
|
+
pass
|
|
1351
|
+
|
|
1352
|
+
def _typecheckingstub__9aff3b10fb9bc184f52cf14764691d0c805719c00ccd9637a645f259045085d9(
|
|
1353
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
1354
|
+
) -> None:
|
|
1355
|
+
"""Type checking stubs"""
|
|
1356
|
+
pass
|
|
1357
|
+
|
|
1358
|
+
def _typecheckingstub__c5ebfee79d399fb0e9a7b8f50006a53381a91211129c2124c0f1ae78ee3dd172(
|
|
1359
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
1360
|
+
) -> None:
|
|
1361
|
+
"""Type checking stubs"""
|
|
1362
|
+
pass
|
|
1363
|
+
|
|
1364
|
+
def _typecheckingstub__5fb3ea6e310f913788b2dcc3f2798ad0ac7f3162bec92b92c2e0d06399e7c0d0(
|
|
1365
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
1366
|
+
) -> None:
|
|
1367
|
+
"""Type checking stubs"""
|
|
1368
|
+
pass
|
|
1369
|
+
|
|
1370
|
+
def _typecheckingstub__ab632c1332e6eb149f8379dd60672373b62743d1a44f42fcf20f220c5190cf9b(
|
|
1371
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
1372
|
+
) -> None:
|
|
1373
|
+
"""Type checking stubs"""
|
|
1374
|
+
pass
|
|
1375
|
+
|
|
1376
|
+
def _typecheckingstub__cce5ebd44c0d1eb2ecf32b2c12611fe3c6fca269e4b37341c6bb8615d8dd0e3f(
|
|
1377
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
1378
|
+
) -> None:
|
|
1379
|
+
"""Type checking stubs"""
|
|
1380
|
+
pass
|
|
1381
|
+
|
|
1382
|
+
def _typecheckingstub__ca4185605ed0a1f2183d40eaa7ba6d4284c7431d629b2e82ffb3c7f6822189ef(
|
|
1383
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
1384
|
+
) -> None:
|
|
1385
|
+
"""Type checking stubs"""
|
|
1386
|
+
pass
|
|
1387
|
+
|
|
1388
|
+
def _typecheckingstub__f57c5d44eee3ebbd882a61df6189449ceea10f7dd5141cf63bbb84bfa77850d4(
|
|
1389
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
1390
|
+
) -> None:
|
|
1391
|
+
"""Type checking stubs"""
|
|
1392
|
+
pass
|
|
1393
|
+
|
|
1394
|
+
def _typecheckingstub__47ebd4045041171630b40321487b500a7da9806e4f60bdfe7b79957dd3a12e64(
|
|
1395
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
1396
|
+
) -> None:
|
|
1397
|
+
"""Type checking stubs"""
|
|
1398
|
+
pass
|
|
1399
|
+
|
|
1400
|
+
def _typecheckingstub__3e56057d4d440886628ab2559209f143dd2c88e7da105be6d2a71911f212b8e6(
|
|
1401
|
+
value: _cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference,
|
|
1402
|
+
) -> None:
|
|
1403
|
+
"""Type checking stubs"""
|
|
1404
|
+
pass
|
|
1405
|
+
|
|
1406
|
+
def _typecheckingstub__bc4ad31f1b205600bc2a349d409b5768c7caa371a75834fb6702709fa88f3494(
|
|
1407
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
1408
|
+
id: builtins.str,
|
|
1409
|
+
*,
|
|
1410
|
+
admin_password: builtins.str,
|
|
1411
|
+
admin_username: builtins.str,
|
|
1412
|
+
boostrap_custom_data: typing.Optional[builtins.str] = None,
|
|
1413
|
+
boot_diagnostics_storage_uri: typing.Optional[builtins.str] = None,
|
|
1414
|
+
custom_data: typing.Optional[builtins.str] = None,
|
|
1415
|
+
location: typing.Optional[builtins.str] = None,
|
|
1416
|
+
name: typing.Optional[builtins.str] = None,
|
|
1417
|
+
os_disk: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineOsDisk, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1418
|
+
public_ip_allocation_method: typing.Optional[builtins.str] = None,
|
|
1419
|
+
resource_group: typing.Optional[_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup] = None,
|
|
1420
|
+
size: typing.Optional[builtins.str] = None,
|
|
1421
|
+
source_image_id: typing.Optional[builtins.str] = None,
|
|
1422
|
+
source_image_reference: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1423
|
+
subnet: typing.Optional[_cdktf_cdktf_provider_azurerm_subnet_92bbcedf.Subnet] = None,
|
|
1424
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
1425
|
+
) -> None:
|
|
1426
|
+
"""Type checking stubs"""
|
|
1427
|
+
pass
|
|
1428
|
+
|
|
1429
|
+
def _typecheckingstub__b47a207b1765a3aa336ec4612e50b423d4eb44694227971bffbfca74437aa9de(
|
|
1430
|
+
value: builtins.str,
|
|
1431
|
+
) -> None:
|
|
1432
|
+
"""Type checking stubs"""
|
|
1433
|
+
pass
|
|
1434
|
+
|
|
1435
|
+
def _typecheckingstub__33f6db9075a6d9a44f420490ba2399cd34e8e67d1c6f6ae522059159ec0d794e(
|
|
1436
|
+
value: _cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup,
|
|
1437
|
+
) -> None:
|
|
1438
|
+
"""Type checking stubs"""
|
|
1439
|
+
pass
|
|
1440
|
+
|
|
1441
|
+
def _typecheckingstub__c829d260403fdd4cef500aeb0808fafc9d26c9425d70d31f1740bccd18470681(
|
|
1442
|
+
*,
|
|
1443
|
+
admin_password: builtins.str,
|
|
1444
|
+
admin_username: builtins.str,
|
|
1445
|
+
boostrap_custom_data: typing.Optional[builtins.str] = None,
|
|
1446
|
+
boot_diagnostics_storage_uri: typing.Optional[builtins.str] = None,
|
|
1447
|
+
custom_data: typing.Optional[builtins.str] = None,
|
|
1448
|
+
location: typing.Optional[builtins.str] = None,
|
|
1449
|
+
name: typing.Optional[builtins.str] = None,
|
|
1450
|
+
os_disk: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineOsDisk, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1451
|
+
public_ip_allocation_method: typing.Optional[builtins.str] = None,
|
|
1452
|
+
resource_group: typing.Optional[_cdktf_cdktf_provider_azurerm_resource_group_92bbcedf.ResourceGroup] = None,
|
|
1453
|
+
size: typing.Optional[builtins.str] = None,
|
|
1454
|
+
source_image_id: typing.Optional[builtins.str] = None,
|
|
1455
|
+
source_image_reference: typing.Optional[typing.Union[_cdktf_cdktf_provider_azurerm_windows_virtual_machine_92bbcedf.WindowsVirtualMachineSourceImageReference, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1456
|
+
subnet: typing.Optional[_cdktf_cdktf_provider_azurerm_subnet_92bbcedf.Subnet] = None,
|
|
1457
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
1458
|
+
) -> None:
|
|
1459
|
+
"""Type checking stubs"""
|
|
1460
|
+
pass
|