pulumi-azure-native 2.58.0__py3-none-any.whl → 2.58.0a1724260656__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.

Potentially problematic release.


This version of pulumi-azure-native might be problematic. Click here for more details.

Files changed (101) hide show
  1. pulumi_azure_native/__init__.py +0 -52
  2. pulumi_azure_native/baremetalinfrastructure/__init__.py +0 -5
  3. pulumi_azure_native/baremetalinfrastructure/_enums.py +0 -74
  4. pulumi_azure_native/baremetalinfrastructure/_inputs.py +0 -368
  5. pulumi_azure_native/baremetalinfrastructure/azure_bare_metal_storage_instance.py +3 -3
  6. pulumi_azure_native/baremetalinfrastructure/get_azure_bare_metal_storage_instance.py +2 -2
  7. pulumi_azure_native/baremetalinfrastructure/outputs.py +0 -351
  8. pulumi_azure_native/baremetalinfrastructure/v20230406/azure_bare_metal_storage_instance.py +1 -1
  9. pulumi_azure_native/baremetalinfrastructure/v20230804preview/azure_bare_metal_storage_instance.py +1 -1
  10. pulumi_azure_native/baremetalinfrastructure/v20231101preview/azure_bare_metal_storage_instance.py +1 -1
  11. pulumi_azure_native/batch/__init__.py +0 -3
  12. pulumi_azure_native/batch/application.py +3 -3
  13. pulumi_azure_native/batch/application_package.py +3 -3
  14. pulumi_azure_native/batch/batch_account.py +3 -3
  15. pulumi_azure_native/batch/get_application.py +2 -2
  16. pulumi_azure_native/batch/get_application_package.py +2 -2
  17. pulumi_azure_native/batch/get_batch_account.py +2 -2
  18. pulumi_azure_native/batch/get_pool.py +2 -2
  19. pulumi_azure_native/batch/list_batch_account_keys.py +2 -2
  20. pulumi_azure_native/batch/pool.py +3 -3
  21. pulumi_azure_native/batch/v20220101/batch_account.py +1 -1
  22. pulumi_azure_native/batch/v20230501/application.py +1 -1
  23. pulumi_azure_native/batch/v20230501/application_package.py +1 -1
  24. pulumi_azure_native/batch/v20230501/batch_account.py +1 -1
  25. pulumi_azure_native/batch/v20230501/pool.py +1 -1
  26. pulumi_azure_native/batch/v20231101/application.py +1 -1
  27. pulumi_azure_native/batch/v20231101/application_package.py +1 -1
  28. pulumi_azure_native/batch/v20231101/batch_account.py +1 -1
  29. pulumi_azure_native/batch/v20231101/pool.py +1 -1
  30. pulumi_azure_native/batch/v20240201/application.py +1 -1
  31. pulumi_azure_native/batch/v20240201/application_package.py +1 -1
  32. pulumi_azure_native/batch/v20240201/batch_account.py +1 -1
  33. pulumi_azure_native/batch/v20240201/pool.py +1 -1
  34. pulumi_azure_native/hardwaresecuritymodules/__init__.py +0 -3
  35. pulumi_azure_native/hardwaresecuritymodules/cloud_hsm_cluster.py +3 -3
  36. pulumi_azure_native/hardwaresecuritymodules/cloud_hsm_cluster_private_endpoint_connection.py +3 -3
  37. pulumi_azure_native/hardwaresecuritymodules/dedicated_hsm.py +1 -5
  38. pulumi_azure_native/hardwaresecuritymodules/get_cloud_hsm_cluster.py +2 -2
  39. pulumi_azure_native/hardwaresecuritymodules/get_cloud_hsm_cluster_private_endpoint_connection.py +2 -2
  40. pulumi_azure_native/hardwaresecuritymodules/get_dedicated_hsm.py +0 -4
  41. pulumi_azure_native/hardwaresecuritymodules/v20211130/dedicated_hsm.py +1 -1
  42. pulumi_azure_native/hardwaresecuritymodules/v20220831preview/cloud_hsm_cluster.py +1 -1
  43. pulumi_azure_native/hardwaresecuritymodules/v20220831preview/cloud_hsm_cluster_private_endpoint_connection.py +1 -1
  44. pulumi_azure_native/hardwaresecuritymodules/v20231210preview/cloud_hsm_cluster.py +1 -1
  45. pulumi_azure_native/hardwaresecuritymodules/v20231210preview/cloud_hsm_cluster_private_endpoint_connection.py +1 -1
  46. pulumi_azure_native/machinelearningservices/v20240701preview/_inputs.py +0 -20
  47. pulumi_azure_native/machinelearningservices/v20240701preview/outputs.py +11 -12
  48. pulumi_azure_native/pulumi-plugin.json +1 -1
  49. {pulumi_azure_native-2.58.0.dist-info → pulumi_azure_native-2.58.0a1724260656.dist-info}/METADATA +1 -1
  50. {pulumi_azure_native-2.58.0.dist-info → pulumi_azure_native-2.58.0a1724260656.dist-info}/RECORD +52 -101
  51. pulumi_azure_native/azurelargeinstance/__init__.py +0 -22
  52. pulumi_azure_native/azurelargeinstance/_enums.py +0 -256
  53. pulumi_azure_native/azurelargeinstance/_inputs.py +0 -646
  54. pulumi_azure_native/azurelargeinstance/azure_large_instance.py +0 -475
  55. pulumi_azure_native/azurelargeinstance/azure_large_storage_instance.py +0 -320
  56. pulumi_azure_native/azurelargeinstance/get_azure_large_instance.py +0 -271
  57. pulumi_azure_native/azurelargeinstance/get_azure_large_storage_instance.py +0 -193
  58. pulumi_azure_native/azurelargeinstance/outputs.py +0 -795
  59. pulumi_azure_native/azurelargeinstance/v20240801preview/__init__.py +0 -14
  60. pulumi_azure_native/azurelargeinstance/v20240801preview/_enums.py +0 -256
  61. pulumi_azure_native/azurelargeinstance/v20240801preview/_inputs.py +0 -646
  62. pulumi_azure_native/azurelargeinstance/v20240801preview/azure_large_instance.py +0 -473
  63. pulumi_azure_native/azurelargeinstance/v20240801preview/azure_large_storage_instance.py +0 -318
  64. pulumi_azure_native/azurelargeinstance/v20240801preview/get_azure_large_instance.py +0 -269
  65. pulumi_azure_native/azurelargeinstance/v20240801preview/get_azure_large_storage_instance.py +0 -191
  66. pulumi_azure_native/azurelargeinstance/v20240801preview/outputs.py +0 -795
  67. pulumi_azure_native/baremetalinfrastructure/azure_bare_metal_instance.py +0 -502
  68. pulumi_azure_native/baremetalinfrastructure/get_azure_bare_metal_instance.py +0 -281
  69. pulumi_azure_native/baremetalinfrastructure/v20240801preview/__init__.py +0 -14
  70. pulumi_azure_native/baremetalinfrastructure/v20240801preview/_enums.py +0 -106
  71. pulumi_azure_native/baremetalinfrastructure/v20240801preview/_inputs.py +0 -644
  72. pulumi_azure_native/baremetalinfrastructure/v20240801preview/azure_bare_metal_instance.py +0 -500
  73. pulumi_azure_native/baremetalinfrastructure/v20240801preview/azure_bare_metal_storage_instance.py +0 -316
  74. pulumi_azure_native/baremetalinfrastructure/v20240801preview/get_azure_bare_metal_instance.py +0 -279
  75. pulumi_azure_native/baremetalinfrastructure/v20240801preview/get_azure_bare_metal_storage_instance.py +0 -188
  76. pulumi_azure_native/baremetalinfrastructure/v20240801preview/outputs.py +0 -726
  77. pulumi_azure_native/batch/v20240701/__init__.py +0 -19
  78. pulumi_azure_native/batch/v20240701/_enums.py +0 -510
  79. pulumi_azure_native/batch/v20240701/_inputs.py +0 -4319
  80. pulumi_azure_native/batch/v20240701/application.py +0 -305
  81. pulumi_azure_native/batch/v20240701/application_package.py +0 -289
  82. pulumi_azure_native/batch/v20240701/batch_account.py +0 -545
  83. pulumi_azure_native/batch/v20240701/get_application.py +0 -179
  84. pulumi_azure_native/batch/v20240701/get_application_package.py +0 -210
  85. pulumi_azure_native/batch/v20240701/get_batch_account.py +0 -364
  86. pulumi_azure_native/batch/v20240701/get_pool.py +0 -503
  87. pulumi_azure_native/batch/v20240701/list_batch_account_keys.py +0 -109
  88. pulumi_azure_native/batch/v20240701/outputs.py +0 -4161
  89. pulumi_azure_native/batch/v20240701/pool.py +0 -854
  90. pulumi_azure_native/hardwaresecuritymodules/v20240630preview/__init__.py +0 -16
  91. pulumi_azure_native/hardwaresecuritymodules/v20240630preview/_enums.py +0 -100
  92. pulumi_azure_native/hardwaresecuritymodules/v20240630preview/_inputs.py +0 -405
  93. pulumi_azure_native/hardwaresecuritymodules/v20240630preview/cloud_hsm_cluster.py +0 -428
  94. pulumi_azure_native/hardwaresecuritymodules/v20240630preview/cloud_hsm_cluster_private_endpoint_connection.py +0 -262
  95. pulumi_azure_native/hardwaresecuritymodules/v20240630preview/dedicated_hsm.py +0 -394
  96. pulumi_azure_native/hardwaresecuritymodules/v20240630preview/get_cloud_hsm_cluster.py +0 -279
  97. pulumi_azure_native/hardwaresecuritymodules/v20240630preview/get_cloud_hsm_cluster_private_endpoint_connection.py +0 -193
  98. pulumi_azure_native/hardwaresecuritymodules/v20240630preview/get_dedicated_hsm.py +0 -240
  99. pulumi_azure_native/hardwaresecuritymodules/v20240630preview/outputs.py +0 -772
  100. {pulumi_azure_native-2.58.0.dist-info → pulumi_azure_native-2.58.0a1724260656.dist-info}/WHEEL +0 -0
  101. {pulumi_azure_native-2.58.0.dist-info → pulumi_azure_native-2.58.0a1724260656.dist-info}/top_level.txt +0 -0
@@ -1,4161 +0,0 @@
1
- # coding=utf-8
2
- # *** WARNING: this file was generated by pulumi-language-python. ***
3
- # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
-
5
- import copy
6
- import warnings
7
- import sys
8
- import pulumi
9
- import pulumi.runtime
10
- from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
- from ... import _utilities
16
- from . import outputs
17
- from ._enums import *
18
-
19
- __all__ = [
20
- 'ApplicationPackageReferenceResponse',
21
- 'AutoScaleRunErrorResponse',
22
- 'AutoScaleRunResponse',
23
- 'AutoScaleSettingsResponse',
24
- 'AutoStoragePropertiesResponse',
25
- 'AutoUserSpecificationResponse',
26
- 'AutomaticOSUpgradePolicyResponse',
27
- 'AzureBlobFileSystemConfigurationResponse',
28
- 'AzureFileShareConfigurationResponse',
29
- 'BatchAccountIdentityResponse',
30
- 'BatchPoolIdentityResponse',
31
- 'CIFSMountConfigurationResponse',
32
- 'CertificateReferenceResponse',
33
- 'ComputeNodeIdentityReferenceResponse',
34
- 'ContainerConfigurationResponse',
35
- 'ContainerHostBatchBindMountEntryResponse',
36
- 'ContainerRegistryResponse',
37
- 'DataDiskResponse',
38
- 'DeploymentConfigurationResponse',
39
- 'DiffDiskSettingsResponse',
40
- 'DiskEncryptionConfigurationResponse',
41
- 'EncryptionPropertiesResponse',
42
- 'EndpointAccessProfileResponse',
43
- 'EnvironmentSettingResponse',
44
- 'FixedScaleSettingsResponse',
45
- 'IPRuleResponse',
46
- 'ImageReferenceResponse',
47
- 'InboundNatPoolResponse',
48
- 'KeyVaultPropertiesResponse',
49
- 'KeyVaultReferenceResponse',
50
- 'LinuxUserConfigurationResponse',
51
- 'ManagedDiskResponse',
52
- 'MetadataItemResponse',
53
- 'MountConfigurationResponse',
54
- 'NFSMountConfigurationResponse',
55
- 'NetworkConfigurationResponse',
56
- 'NetworkProfileResponse',
57
- 'NetworkSecurityGroupRuleResponse',
58
- 'NodePlacementConfigurationResponse',
59
- 'OSDiskResponse',
60
- 'PoolEndpointConfigurationResponse',
61
- 'PrivateEndpointConnectionResponse',
62
- 'PrivateEndpointResponse',
63
- 'PrivateLinkServiceConnectionStateResponse',
64
- 'PublicIPAddressConfigurationResponse',
65
- 'ResizeErrorResponse',
66
- 'ResizeOperationStatusResponse',
67
- 'ResourceFileResponse',
68
- 'RollingUpgradePolicyResponse',
69
- 'ScaleSettingsResponse',
70
- 'SecurityProfileResponse',
71
- 'ServiceArtifactReferenceResponse',
72
- 'StartTaskResponse',
73
- 'TaskContainerSettingsResponse',
74
- 'TaskSchedulingPolicyResponse',
75
- 'UefiSettingsResponse',
76
- 'UpgradePolicyResponse',
77
- 'UserAccountResponse',
78
- 'UserAssignedIdentitiesResponse',
79
- 'UserIdentityResponse',
80
- 'VMDiskSecurityProfileResponse',
81
- 'VMExtensionResponse',
82
- 'VirtualMachineConfigurationResponse',
83
- 'VirtualMachineFamilyCoreQuotaResponse',
84
- 'WindowsConfigurationResponse',
85
- 'WindowsUserConfigurationResponse',
86
- ]
87
-
88
- @pulumi.output_type
89
- class ApplicationPackageReferenceResponse(dict):
90
- def __init__(__self__, *,
91
- id: str,
92
- version: Optional[str] = None):
93
- """
94
- :param str version: If this is omitted, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences. If you are calling the REST API directly, the HTTP status code is 409.
95
- """
96
- pulumi.set(__self__, "id", id)
97
- if version is not None:
98
- pulumi.set(__self__, "version", version)
99
-
100
- @property
101
- @pulumi.getter
102
- def id(self) -> str:
103
- return pulumi.get(self, "id")
104
-
105
- @property
106
- @pulumi.getter
107
- def version(self) -> Optional[str]:
108
- """
109
- If this is omitted, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences. If you are calling the REST API directly, the HTTP status code is 409.
110
- """
111
- return pulumi.get(self, "version")
112
-
113
-
114
- @pulumi.output_type
115
- class AutoScaleRunErrorResponse(dict):
116
- def __init__(__self__, *,
117
- code: str,
118
- message: str,
119
- details: Optional[Sequence['outputs.AutoScaleRunErrorResponse']] = None):
120
- """
121
- :param str code: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
122
- :param str message: A message describing the error, intended to be suitable for display in a user interface.
123
- """
124
- pulumi.set(__self__, "code", code)
125
- pulumi.set(__self__, "message", message)
126
- if details is not None:
127
- pulumi.set(__self__, "details", details)
128
-
129
- @property
130
- @pulumi.getter
131
- def code(self) -> str:
132
- """
133
- An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
134
- """
135
- return pulumi.get(self, "code")
136
-
137
- @property
138
- @pulumi.getter
139
- def message(self) -> str:
140
- """
141
- A message describing the error, intended to be suitable for display in a user interface.
142
- """
143
- return pulumi.get(self, "message")
144
-
145
- @property
146
- @pulumi.getter
147
- def details(self) -> Optional[Sequence['outputs.AutoScaleRunErrorResponse']]:
148
- return pulumi.get(self, "details")
149
-
150
-
151
- @pulumi.output_type
152
- class AutoScaleRunResponse(dict):
153
- @staticmethod
154
- def __key_warning(key: str):
155
- suggest = None
156
- if key == "evaluationTime":
157
- suggest = "evaluation_time"
158
-
159
- if suggest:
160
- pulumi.log.warn(f"Key '{key}' not found in AutoScaleRunResponse. Access the value via the '{suggest}' property getter instead.")
161
-
162
- def __getitem__(self, key: str) -> Any:
163
- AutoScaleRunResponse.__key_warning(key)
164
- return super().__getitem__(key)
165
-
166
- def get(self, key: str, default = None) -> Any:
167
- AutoScaleRunResponse.__key_warning(key)
168
- return super().get(key, default)
169
-
170
- def __init__(__self__, *,
171
- evaluation_time: str,
172
- error: Optional['outputs.AutoScaleRunErrorResponse'] = None,
173
- results: Optional[str] = None):
174
- """
175
- :param str results: Each variable value is returned in the form $variable=value, and variables are separated by semicolons.
176
- """
177
- pulumi.set(__self__, "evaluation_time", evaluation_time)
178
- if error is not None:
179
- pulumi.set(__self__, "error", error)
180
- if results is not None:
181
- pulumi.set(__self__, "results", results)
182
-
183
- @property
184
- @pulumi.getter(name="evaluationTime")
185
- def evaluation_time(self) -> str:
186
- return pulumi.get(self, "evaluation_time")
187
-
188
- @property
189
- @pulumi.getter
190
- def error(self) -> Optional['outputs.AutoScaleRunErrorResponse']:
191
- return pulumi.get(self, "error")
192
-
193
- @property
194
- @pulumi.getter
195
- def results(self) -> Optional[str]:
196
- """
197
- Each variable value is returned in the form $variable=value, and variables are separated by semicolons.
198
- """
199
- return pulumi.get(self, "results")
200
-
201
-
202
- @pulumi.output_type
203
- class AutoScaleSettingsResponse(dict):
204
- @staticmethod
205
- def __key_warning(key: str):
206
- suggest = None
207
- if key == "evaluationInterval":
208
- suggest = "evaluation_interval"
209
-
210
- if suggest:
211
- pulumi.log.warn(f"Key '{key}' not found in AutoScaleSettingsResponse. Access the value via the '{suggest}' property getter instead.")
212
-
213
- def __getitem__(self, key: str) -> Any:
214
- AutoScaleSettingsResponse.__key_warning(key)
215
- return super().__getitem__(key)
216
-
217
- def get(self, key: str, default = None) -> Any:
218
- AutoScaleSettingsResponse.__key_warning(key)
219
- return super().get(key, default)
220
-
221
- def __init__(__self__, *,
222
- formula: str,
223
- evaluation_interval: Optional[str] = None):
224
- """
225
- :param str evaluation_interval: If omitted, the default value is 15 minutes (PT15M).
226
- """
227
- pulumi.set(__self__, "formula", formula)
228
- if evaluation_interval is not None:
229
- pulumi.set(__self__, "evaluation_interval", evaluation_interval)
230
-
231
- @property
232
- @pulumi.getter
233
- def formula(self) -> str:
234
- return pulumi.get(self, "formula")
235
-
236
- @property
237
- @pulumi.getter(name="evaluationInterval")
238
- def evaluation_interval(self) -> Optional[str]:
239
- """
240
- If omitted, the default value is 15 minutes (PT15M).
241
- """
242
- return pulumi.get(self, "evaluation_interval")
243
-
244
-
245
- @pulumi.output_type
246
- class AutoStoragePropertiesResponse(dict):
247
- """
248
- Contains information about the auto-storage account associated with a Batch account.
249
- """
250
- @staticmethod
251
- def __key_warning(key: str):
252
- suggest = None
253
- if key == "lastKeySync":
254
- suggest = "last_key_sync"
255
- elif key == "storageAccountId":
256
- suggest = "storage_account_id"
257
- elif key == "authenticationMode":
258
- suggest = "authentication_mode"
259
- elif key == "nodeIdentityReference":
260
- suggest = "node_identity_reference"
261
-
262
- if suggest:
263
- pulumi.log.warn(f"Key '{key}' not found in AutoStoragePropertiesResponse. Access the value via the '{suggest}' property getter instead.")
264
-
265
- def __getitem__(self, key: str) -> Any:
266
- AutoStoragePropertiesResponse.__key_warning(key)
267
- return super().__getitem__(key)
268
-
269
- def get(self, key: str, default = None) -> Any:
270
- AutoStoragePropertiesResponse.__key_warning(key)
271
- return super().get(key, default)
272
-
273
- def __init__(__self__, *,
274
- last_key_sync: str,
275
- storage_account_id: str,
276
- authentication_mode: Optional[str] = None,
277
- node_identity_reference: Optional['outputs.ComputeNodeIdentityReferenceResponse'] = None):
278
- """
279
- Contains information about the auto-storage account associated with a Batch account.
280
- :param str last_key_sync: The UTC time at which storage keys were last synchronized with the Batch account.
281
- :param str storage_account_id: The resource ID of the storage account to be used for auto-storage account.
282
- :param str authentication_mode: The authentication mode which the Batch service will use to manage the auto-storage account.
283
- :param 'ComputeNodeIdentityReferenceResponse' node_identity_reference: The identity referenced here must be assigned to pools which have compute nodes that need access to auto-storage.
284
- """
285
- pulumi.set(__self__, "last_key_sync", last_key_sync)
286
- pulumi.set(__self__, "storage_account_id", storage_account_id)
287
- if authentication_mode is None:
288
- authentication_mode = 'StorageKeys'
289
- if authentication_mode is not None:
290
- pulumi.set(__self__, "authentication_mode", authentication_mode)
291
- if node_identity_reference is not None:
292
- pulumi.set(__self__, "node_identity_reference", node_identity_reference)
293
-
294
- @property
295
- @pulumi.getter(name="lastKeySync")
296
- def last_key_sync(self) -> str:
297
- """
298
- The UTC time at which storage keys were last synchronized with the Batch account.
299
- """
300
- return pulumi.get(self, "last_key_sync")
301
-
302
- @property
303
- @pulumi.getter(name="storageAccountId")
304
- def storage_account_id(self) -> str:
305
- """
306
- The resource ID of the storage account to be used for auto-storage account.
307
- """
308
- return pulumi.get(self, "storage_account_id")
309
-
310
- @property
311
- @pulumi.getter(name="authenticationMode")
312
- def authentication_mode(self) -> Optional[str]:
313
- """
314
- The authentication mode which the Batch service will use to manage the auto-storage account.
315
- """
316
- return pulumi.get(self, "authentication_mode")
317
-
318
- @property
319
- @pulumi.getter(name="nodeIdentityReference")
320
- def node_identity_reference(self) -> Optional['outputs.ComputeNodeIdentityReferenceResponse']:
321
- """
322
- The identity referenced here must be assigned to pools which have compute nodes that need access to auto-storage.
323
- """
324
- return pulumi.get(self, "node_identity_reference")
325
-
326
-
327
- @pulumi.output_type
328
- class AutoUserSpecificationResponse(dict):
329
- @staticmethod
330
- def __key_warning(key: str):
331
- suggest = None
332
- if key == "elevationLevel":
333
- suggest = "elevation_level"
334
-
335
- if suggest:
336
- pulumi.log.warn(f"Key '{key}' not found in AutoUserSpecificationResponse. Access the value via the '{suggest}' property getter instead.")
337
-
338
- def __getitem__(self, key: str) -> Any:
339
- AutoUserSpecificationResponse.__key_warning(key)
340
- return super().__getitem__(key)
341
-
342
- def get(self, key: str, default = None) -> Any:
343
- AutoUserSpecificationResponse.__key_warning(key)
344
- return super().get(key, default)
345
-
346
- def __init__(__self__, *,
347
- elevation_level: Optional[str] = None,
348
- scope: Optional[str] = None):
349
- """
350
- :param str elevation_level: The default value is nonAdmin.
351
- :param str scope: The default value is Pool. If the pool is running Windows a value of Task should be specified if stricter isolation between tasks is required. For example, if the task mutates the registry in a way which could impact other tasks, or if certificates have been specified on the pool which should not be accessible by normal tasks but should be accessible by start tasks.
352
- """
353
- if elevation_level is not None:
354
- pulumi.set(__self__, "elevation_level", elevation_level)
355
- if scope is not None:
356
- pulumi.set(__self__, "scope", scope)
357
-
358
- @property
359
- @pulumi.getter(name="elevationLevel")
360
- def elevation_level(self) -> Optional[str]:
361
- """
362
- The default value is nonAdmin.
363
- """
364
- return pulumi.get(self, "elevation_level")
365
-
366
- @property
367
- @pulumi.getter
368
- def scope(self) -> Optional[str]:
369
- """
370
- The default value is Pool. If the pool is running Windows a value of Task should be specified if stricter isolation between tasks is required. For example, if the task mutates the registry in a way which could impact other tasks, or if certificates have been specified on the pool which should not be accessible by normal tasks but should be accessible by start tasks.
371
- """
372
- return pulumi.get(self, "scope")
373
-
374
-
375
- @pulumi.output_type
376
- class AutomaticOSUpgradePolicyResponse(dict):
377
- """
378
- The configuration parameters used for performing automatic OS upgrade.
379
- """
380
- @staticmethod
381
- def __key_warning(key: str):
382
- suggest = None
383
- if key == "disableAutomaticRollback":
384
- suggest = "disable_automatic_rollback"
385
- elif key == "enableAutomaticOSUpgrade":
386
- suggest = "enable_automatic_os_upgrade"
387
- elif key == "osRollingUpgradeDeferral":
388
- suggest = "os_rolling_upgrade_deferral"
389
- elif key == "useRollingUpgradePolicy":
390
- suggest = "use_rolling_upgrade_policy"
391
-
392
- if suggest:
393
- pulumi.log.warn(f"Key '{key}' not found in AutomaticOSUpgradePolicyResponse. Access the value via the '{suggest}' property getter instead.")
394
-
395
- def __getitem__(self, key: str) -> Any:
396
- AutomaticOSUpgradePolicyResponse.__key_warning(key)
397
- return super().__getitem__(key)
398
-
399
- def get(self, key: str, default = None) -> Any:
400
- AutomaticOSUpgradePolicyResponse.__key_warning(key)
401
- return super().get(key, default)
402
-
403
- def __init__(__self__, *,
404
- disable_automatic_rollback: Optional[bool] = None,
405
- enable_automatic_os_upgrade: Optional[bool] = None,
406
- os_rolling_upgrade_deferral: Optional[bool] = None,
407
- use_rolling_upgrade_policy: Optional[bool] = None):
408
- """
409
- The configuration parameters used for performing automatic OS upgrade.
410
- :param bool disable_automatic_rollback: Whether OS image rollback feature should be disabled.
411
- :param bool enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. <br /><br /> If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/en-us/rest/api/batchmanagement/pool/create?tabs=HTTP#windowsconfiguration) cannot be set to true.
412
- :param bool os_rolling_upgrade_deferral: Defer OS upgrades on the TVMs if they are running tasks.
413
- :param bool use_rolling_upgrade_policy: Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS.
414
- """
415
- if disable_automatic_rollback is not None:
416
- pulumi.set(__self__, "disable_automatic_rollback", disable_automatic_rollback)
417
- if enable_automatic_os_upgrade is not None:
418
- pulumi.set(__self__, "enable_automatic_os_upgrade", enable_automatic_os_upgrade)
419
- if os_rolling_upgrade_deferral is not None:
420
- pulumi.set(__self__, "os_rolling_upgrade_deferral", os_rolling_upgrade_deferral)
421
- if use_rolling_upgrade_policy is not None:
422
- pulumi.set(__self__, "use_rolling_upgrade_policy", use_rolling_upgrade_policy)
423
-
424
- @property
425
- @pulumi.getter(name="disableAutomaticRollback")
426
- def disable_automatic_rollback(self) -> Optional[bool]:
427
- """
428
- Whether OS image rollback feature should be disabled.
429
- """
430
- return pulumi.get(self, "disable_automatic_rollback")
431
-
432
- @property
433
- @pulumi.getter(name="enableAutomaticOSUpgrade")
434
- def enable_automatic_os_upgrade(self) -> Optional[bool]:
435
- """
436
- Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. <br /><br /> If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/en-us/rest/api/batchmanagement/pool/create?tabs=HTTP#windowsconfiguration) cannot be set to true.
437
- """
438
- return pulumi.get(self, "enable_automatic_os_upgrade")
439
-
440
- @property
441
- @pulumi.getter(name="osRollingUpgradeDeferral")
442
- def os_rolling_upgrade_deferral(self) -> Optional[bool]:
443
- """
444
- Defer OS upgrades on the TVMs if they are running tasks.
445
- """
446
- return pulumi.get(self, "os_rolling_upgrade_deferral")
447
-
448
- @property
449
- @pulumi.getter(name="useRollingUpgradePolicy")
450
- def use_rolling_upgrade_policy(self) -> Optional[bool]:
451
- """
452
- Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS.
453
- """
454
- return pulumi.get(self, "use_rolling_upgrade_policy")
455
-
456
-
457
- @pulumi.output_type
458
- class AzureBlobFileSystemConfigurationResponse(dict):
459
- @staticmethod
460
- def __key_warning(key: str):
461
- suggest = None
462
- if key == "accountName":
463
- suggest = "account_name"
464
- elif key == "containerName":
465
- suggest = "container_name"
466
- elif key == "relativeMountPath":
467
- suggest = "relative_mount_path"
468
- elif key == "accountKey":
469
- suggest = "account_key"
470
- elif key == "blobfuseOptions":
471
- suggest = "blobfuse_options"
472
- elif key == "identityReference":
473
- suggest = "identity_reference"
474
- elif key == "sasKey":
475
- suggest = "sas_key"
476
-
477
- if suggest:
478
- pulumi.log.warn(f"Key '{key}' not found in AzureBlobFileSystemConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
479
-
480
- def __getitem__(self, key: str) -> Any:
481
- AzureBlobFileSystemConfigurationResponse.__key_warning(key)
482
- return super().__getitem__(key)
483
-
484
- def get(self, key: str, default = None) -> Any:
485
- AzureBlobFileSystemConfigurationResponse.__key_warning(key)
486
- return super().get(key, default)
487
-
488
- def __init__(__self__, *,
489
- account_name: str,
490
- container_name: str,
491
- relative_mount_path: str,
492
- account_key: Optional[str] = None,
493
- blobfuse_options: Optional[str] = None,
494
- identity_reference: Optional['outputs.ComputeNodeIdentityReferenceResponse'] = None,
495
- sas_key: Optional[str] = None):
496
- """
497
- :param str relative_mount_path: All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
498
- :param str account_key: This property is mutually exclusive with both sasKey and identity; exactly one must be specified.
499
- :param str blobfuse_options: These are 'net use' options in Windows and 'mount' options in Linux.
500
- :param 'ComputeNodeIdentityReferenceResponse' identity_reference: This property is mutually exclusive with both accountKey and sasKey; exactly one must be specified.
501
- :param str sas_key: This property is mutually exclusive with both accountKey and identity; exactly one must be specified.
502
- """
503
- pulumi.set(__self__, "account_name", account_name)
504
- pulumi.set(__self__, "container_name", container_name)
505
- pulumi.set(__self__, "relative_mount_path", relative_mount_path)
506
- if account_key is not None:
507
- pulumi.set(__self__, "account_key", account_key)
508
- if blobfuse_options is not None:
509
- pulumi.set(__self__, "blobfuse_options", blobfuse_options)
510
- if identity_reference is not None:
511
- pulumi.set(__self__, "identity_reference", identity_reference)
512
- if sas_key is not None:
513
- pulumi.set(__self__, "sas_key", sas_key)
514
-
515
- @property
516
- @pulumi.getter(name="accountName")
517
- def account_name(self) -> str:
518
- return pulumi.get(self, "account_name")
519
-
520
- @property
521
- @pulumi.getter(name="containerName")
522
- def container_name(self) -> str:
523
- return pulumi.get(self, "container_name")
524
-
525
- @property
526
- @pulumi.getter(name="relativeMountPath")
527
- def relative_mount_path(self) -> str:
528
- """
529
- All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
530
- """
531
- return pulumi.get(self, "relative_mount_path")
532
-
533
- @property
534
- @pulumi.getter(name="accountKey")
535
- def account_key(self) -> Optional[str]:
536
- """
537
- This property is mutually exclusive with both sasKey and identity; exactly one must be specified.
538
- """
539
- return pulumi.get(self, "account_key")
540
-
541
- @property
542
- @pulumi.getter(name="blobfuseOptions")
543
- def blobfuse_options(self) -> Optional[str]:
544
- """
545
- These are 'net use' options in Windows and 'mount' options in Linux.
546
- """
547
- return pulumi.get(self, "blobfuse_options")
548
-
549
- @property
550
- @pulumi.getter(name="identityReference")
551
- def identity_reference(self) -> Optional['outputs.ComputeNodeIdentityReferenceResponse']:
552
- """
553
- This property is mutually exclusive with both accountKey and sasKey; exactly one must be specified.
554
- """
555
- return pulumi.get(self, "identity_reference")
556
-
557
- @property
558
- @pulumi.getter(name="sasKey")
559
- def sas_key(self) -> Optional[str]:
560
- """
561
- This property is mutually exclusive with both accountKey and identity; exactly one must be specified.
562
- """
563
- return pulumi.get(self, "sas_key")
564
-
565
-
566
- @pulumi.output_type
567
- class AzureFileShareConfigurationResponse(dict):
568
- @staticmethod
569
- def __key_warning(key: str):
570
- suggest = None
571
- if key == "accountKey":
572
- suggest = "account_key"
573
- elif key == "accountName":
574
- suggest = "account_name"
575
- elif key == "azureFileUrl":
576
- suggest = "azure_file_url"
577
- elif key == "relativeMountPath":
578
- suggest = "relative_mount_path"
579
- elif key == "mountOptions":
580
- suggest = "mount_options"
581
-
582
- if suggest:
583
- pulumi.log.warn(f"Key '{key}' not found in AzureFileShareConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
584
-
585
- def __getitem__(self, key: str) -> Any:
586
- AzureFileShareConfigurationResponse.__key_warning(key)
587
- return super().__getitem__(key)
588
-
589
- def get(self, key: str, default = None) -> Any:
590
- AzureFileShareConfigurationResponse.__key_warning(key)
591
- return super().get(key, default)
592
-
593
- def __init__(__self__, *,
594
- account_key: str,
595
- account_name: str,
596
- azure_file_url: str,
597
- relative_mount_path: str,
598
- mount_options: Optional[str] = None):
599
- """
600
- :param str azure_file_url: This is of the form 'https://{account}.file.core.windows.net/'.
601
- :param str relative_mount_path: All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
602
- :param str mount_options: These are 'net use' options in Windows and 'mount' options in Linux.
603
- """
604
- pulumi.set(__self__, "account_key", account_key)
605
- pulumi.set(__self__, "account_name", account_name)
606
- pulumi.set(__self__, "azure_file_url", azure_file_url)
607
- pulumi.set(__self__, "relative_mount_path", relative_mount_path)
608
- if mount_options is not None:
609
- pulumi.set(__self__, "mount_options", mount_options)
610
-
611
- @property
612
- @pulumi.getter(name="accountKey")
613
- def account_key(self) -> str:
614
- return pulumi.get(self, "account_key")
615
-
616
- @property
617
- @pulumi.getter(name="accountName")
618
- def account_name(self) -> str:
619
- return pulumi.get(self, "account_name")
620
-
621
- @property
622
- @pulumi.getter(name="azureFileUrl")
623
- def azure_file_url(self) -> str:
624
- """
625
- This is of the form 'https://{account}.file.core.windows.net/'.
626
- """
627
- return pulumi.get(self, "azure_file_url")
628
-
629
- @property
630
- @pulumi.getter(name="relativeMountPath")
631
- def relative_mount_path(self) -> str:
632
- """
633
- All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
634
- """
635
- return pulumi.get(self, "relative_mount_path")
636
-
637
- @property
638
- @pulumi.getter(name="mountOptions")
639
- def mount_options(self) -> Optional[str]:
640
- """
641
- These are 'net use' options in Windows and 'mount' options in Linux.
642
- """
643
- return pulumi.get(self, "mount_options")
644
-
645
-
646
- @pulumi.output_type
647
- class BatchAccountIdentityResponse(dict):
648
- """
649
- The identity of the Batch account, if configured. This is used when the user specifies 'Microsoft.KeyVault' as their Batch account encryption configuration or when `ManagedIdentity` is selected as the auto-storage authentication mode.
650
- """
651
- @staticmethod
652
- def __key_warning(key: str):
653
- suggest = None
654
- if key == "principalId":
655
- suggest = "principal_id"
656
- elif key == "tenantId":
657
- suggest = "tenant_id"
658
- elif key == "userAssignedIdentities":
659
- suggest = "user_assigned_identities"
660
-
661
- if suggest:
662
- pulumi.log.warn(f"Key '{key}' not found in BatchAccountIdentityResponse. Access the value via the '{suggest}' property getter instead.")
663
-
664
- def __getitem__(self, key: str) -> Any:
665
- BatchAccountIdentityResponse.__key_warning(key)
666
- return super().__getitem__(key)
667
-
668
- def get(self, key: str, default = None) -> Any:
669
- BatchAccountIdentityResponse.__key_warning(key)
670
- return super().get(key, default)
671
-
672
- def __init__(__self__, *,
673
- principal_id: str,
674
- tenant_id: str,
675
- type: str,
676
- user_assigned_identities: Optional[Mapping[str, 'outputs.UserAssignedIdentitiesResponse']] = None):
677
- """
678
- The identity of the Batch account, if configured. This is used when the user specifies 'Microsoft.KeyVault' as their Batch account encryption configuration or when `ManagedIdentity` is selected as the auto-storage authentication mode.
679
- :param str principal_id: The principal id of the Batch account. This property will only be provided for a system assigned identity.
680
- :param str tenant_id: The tenant id associated with the Batch account. This property will only be provided for a system assigned identity.
681
- :param str type: The type of identity used for the Batch account.
682
- :param Mapping[str, 'UserAssignedIdentitiesResponse'] user_assigned_identities: The list of user identities associated with the Batch account.
683
- """
684
- pulumi.set(__self__, "principal_id", principal_id)
685
- pulumi.set(__self__, "tenant_id", tenant_id)
686
- pulumi.set(__self__, "type", type)
687
- if user_assigned_identities is not None:
688
- pulumi.set(__self__, "user_assigned_identities", user_assigned_identities)
689
-
690
- @property
691
- @pulumi.getter(name="principalId")
692
- def principal_id(self) -> str:
693
- """
694
- The principal id of the Batch account. This property will only be provided for a system assigned identity.
695
- """
696
- return pulumi.get(self, "principal_id")
697
-
698
- @property
699
- @pulumi.getter(name="tenantId")
700
- def tenant_id(self) -> str:
701
- """
702
- The tenant id associated with the Batch account. This property will only be provided for a system assigned identity.
703
- """
704
- return pulumi.get(self, "tenant_id")
705
-
706
- @property
707
- @pulumi.getter
708
- def type(self) -> str:
709
- """
710
- The type of identity used for the Batch account.
711
- """
712
- return pulumi.get(self, "type")
713
-
714
- @property
715
- @pulumi.getter(name="userAssignedIdentities")
716
- def user_assigned_identities(self) -> Optional[Mapping[str, 'outputs.UserAssignedIdentitiesResponse']]:
717
- """
718
- The list of user identities associated with the Batch account.
719
- """
720
- return pulumi.get(self, "user_assigned_identities")
721
-
722
-
723
- @pulumi.output_type
724
- class BatchPoolIdentityResponse(dict):
725
- """
726
- The identity of the Batch pool, if configured. If the pool identity is updated during update an existing pool, only the new vms which are created after the pool shrinks to 0 will have the updated identities
727
- """
728
- @staticmethod
729
- def __key_warning(key: str):
730
- suggest = None
731
- if key == "userAssignedIdentities":
732
- suggest = "user_assigned_identities"
733
-
734
- if suggest:
735
- pulumi.log.warn(f"Key '{key}' not found in BatchPoolIdentityResponse. Access the value via the '{suggest}' property getter instead.")
736
-
737
- def __getitem__(self, key: str) -> Any:
738
- BatchPoolIdentityResponse.__key_warning(key)
739
- return super().__getitem__(key)
740
-
741
- def get(self, key: str, default = None) -> Any:
742
- BatchPoolIdentityResponse.__key_warning(key)
743
- return super().get(key, default)
744
-
745
- def __init__(__self__, *,
746
- type: str,
747
- user_assigned_identities: Optional[Mapping[str, 'outputs.UserAssignedIdentitiesResponse']] = None):
748
- """
749
- The identity of the Batch pool, if configured. If the pool identity is updated during update an existing pool, only the new vms which are created after the pool shrinks to 0 will have the updated identities
750
- :param str type: The type of identity used for the Batch Pool.
751
- :param Mapping[str, 'UserAssignedIdentitiesResponse'] user_assigned_identities: The list of user identities associated with the Batch pool.
752
- """
753
- pulumi.set(__self__, "type", type)
754
- if user_assigned_identities is not None:
755
- pulumi.set(__self__, "user_assigned_identities", user_assigned_identities)
756
-
757
- @property
758
- @pulumi.getter
759
- def type(self) -> str:
760
- """
761
- The type of identity used for the Batch Pool.
762
- """
763
- return pulumi.get(self, "type")
764
-
765
- @property
766
- @pulumi.getter(name="userAssignedIdentities")
767
- def user_assigned_identities(self) -> Optional[Mapping[str, 'outputs.UserAssignedIdentitiesResponse']]:
768
- """
769
- The list of user identities associated with the Batch pool.
770
- """
771
- return pulumi.get(self, "user_assigned_identities")
772
-
773
-
774
- @pulumi.output_type
775
- class CIFSMountConfigurationResponse(dict):
776
- @staticmethod
777
- def __key_warning(key: str):
778
- suggest = None
779
- if key == "relativeMountPath":
780
- suggest = "relative_mount_path"
781
- elif key == "userName":
782
- suggest = "user_name"
783
- elif key == "mountOptions":
784
- suggest = "mount_options"
785
-
786
- if suggest:
787
- pulumi.log.warn(f"Key '{key}' not found in CIFSMountConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
788
-
789
- def __getitem__(self, key: str) -> Any:
790
- CIFSMountConfigurationResponse.__key_warning(key)
791
- return super().__getitem__(key)
792
-
793
- def get(self, key: str, default = None) -> Any:
794
- CIFSMountConfigurationResponse.__key_warning(key)
795
- return super().get(key, default)
796
-
797
- def __init__(__self__, *,
798
- password: str,
799
- relative_mount_path: str,
800
- source: str,
801
- user_name: str,
802
- mount_options: Optional[str] = None):
803
- """
804
- :param str relative_mount_path: All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
805
- :param str mount_options: These are 'net use' options in Windows and 'mount' options in Linux.
806
- """
807
- pulumi.set(__self__, "password", password)
808
- pulumi.set(__self__, "relative_mount_path", relative_mount_path)
809
- pulumi.set(__self__, "source", source)
810
- pulumi.set(__self__, "user_name", user_name)
811
- if mount_options is not None:
812
- pulumi.set(__self__, "mount_options", mount_options)
813
-
814
- @property
815
- @pulumi.getter
816
- def password(self) -> str:
817
- return pulumi.get(self, "password")
818
-
819
- @property
820
- @pulumi.getter(name="relativeMountPath")
821
- def relative_mount_path(self) -> str:
822
- """
823
- All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
824
- """
825
- return pulumi.get(self, "relative_mount_path")
826
-
827
- @property
828
- @pulumi.getter
829
- def source(self) -> str:
830
- return pulumi.get(self, "source")
831
-
832
- @property
833
- @pulumi.getter(name="userName")
834
- def user_name(self) -> str:
835
- return pulumi.get(self, "user_name")
836
-
837
- @property
838
- @pulumi.getter(name="mountOptions")
839
- def mount_options(self) -> Optional[str]:
840
- """
841
- These are 'net use' options in Windows and 'mount' options in Linux.
842
- """
843
- return pulumi.get(self, "mount_options")
844
-
845
-
846
- @pulumi.output_type
847
- class CertificateReferenceResponse(dict):
848
- """
849
- Warning: This object is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
850
- """
851
- @staticmethod
852
- def __key_warning(key: str):
853
- suggest = None
854
- if key == "storeLocation":
855
- suggest = "store_location"
856
- elif key == "storeName":
857
- suggest = "store_name"
858
-
859
- if suggest:
860
- pulumi.log.warn(f"Key '{key}' not found in CertificateReferenceResponse. Access the value via the '{suggest}' property getter instead.")
861
-
862
- def __getitem__(self, key: str) -> Any:
863
- CertificateReferenceResponse.__key_warning(key)
864
- return super().__getitem__(key)
865
-
866
- def get(self, key: str, default = None) -> Any:
867
- CertificateReferenceResponse.__key_warning(key)
868
- return super().get(key, default)
869
-
870
- def __init__(__self__, *,
871
- id: str,
872
- store_location: Optional[str] = None,
873
- store_name: Optional[str] = None,
874
- visibility: Optional[Sequence[str]] = None):
875
- """
876
- Warning: This object is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
877
- :param str store_location: The default value is currentUser. This property is applicable only for pools configured with Windows compute nodes. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
878
- :param str store_name: This property is applicable only for pools configured with Windows compute nodes. Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My.
879
- """
880
- pulumi.set(__self__, "id", id)
881
- if store_location is not None:
882
- pulumi.set(__self__, "store_location", store_location)
883
- if store_name is not None:
884
- pulumi.set(__self__, "store_name", store_name)
885
- if visibility is not None:
886
- pulumi.set(__self__, "visibility", visibility)
887
-
888
- @property
889
- @pulumi.getter
890
- def id(self) -> str:
891
- return pulumi.get(self, "id")
892
-
893
- @property
894
- @pulumi.getter(name="storeLocation")
895
- def store_location(self) -> Optional[str]:
896
- """
897
- The default value is currentUser. This property is applicable only for pools configured with Windows compute nodes. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
898
- """
899
- return pulumi.get(self, "store_location")
900
-
901
- @property
902
- @pulumi.getter(name="storeName")
903
- def store_name(self) -> Optional[str]:
904
- """
905
- This property is applicable only for pools configured with Windows compute nodes. Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My.
906
- """
907
- return pulumi.get(self, "store_name")
908
-
909
- @property
910
- @pulumi.getter
911
- def visibility(self) -> Optional[Sequence[str]]:
912
- return pulumi.get(self, "visibility")
913
-
914
-
915
- @pulumi.output_type
916
- class ComputeNodeIdentityReferenceResponse(dict):
917
- """
918
- The reference to a user assigned identity associated with the Batch pool which a compute node will use.
919
- """
920
- @staticmethod
921
- def __key_warning(key: str):
922
- suggest = None
923
- if key == "resourceId":
924
- suggest = "resource_id"
925
-
926
- if suggest:
927
- pulumi.log.warn(f"Key '{key}' not found in ComputeNodeIdentityReferenceResponse. Access the value via the '{suggest}' property getter instead.")
928
-
929
- def __getitem__(self, key: str) -> Any:
930
- ComputeNodeIdentityReferenceResponse.__key_warning(key)
931
- return super().__getitem__(key)
932
-
933
- def get(self, key: str, default = None) -> Any:
934
- ComputeNodeIdentityReferenceResponse.__key_warning(key)
935
- return super().get(key, default)
936
-
937
- def __init__(__self__, *,
938
- resource_id: Optional[str] = None):
939
- """
940
- The reference to a user assigned identity associated with the Batch pool which a compute node will use.
941
- :param str resource_id: The ARM resource id of the user assigned identity.
942
- """
943
- if resource_id is not None:
944
- pulumi.set(__self__, "resource_id", resource_id)
945
-
946
- @property
947
- @pulumi.getter(name="resourceId")
948
- def resource_id(self) -> Optional[str]:
949
- """
950
- The ARM resource id of the user assigned identity.
951
- """
952
- return pulumi.get(self, "resource_id")
953
-
954
-
955
- @pulumi.output_type
956
- class ContainerConfigurationResponse(dict):
957
- @staticmethod
958
- def __key_warning(key: str):
959
- suggest = None
960
- if key == "containerImageNames":
961
- suggest = "container_image_names"
962
- elif key == "containerRegistries":
963
- suggest = "container_registries"
964
-
965
- if suggest:
966
- pulumi.log.warn(f"Key '{key}' not found in ContainerConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
967
-
968
- def __getitem__(self, key: str) -> Any:
969
- ContainerConfigurationResponse.__key_warning(key)
970
- return super().__getitem__(key)
971
-
972
- def get(self, key: str, default = None) -> Any:
973
- ContainerConfigurationResponse.__key_warning(key)
974
- return super().get(key, default)
975
-
976
- def __init__(__self__, *,
977
- type: str,
978
- container_image_names: Optional[Sequence[str]] = None,
979
- container_registries: Optional[Sequence['outputs.ContainerRegistryResponse']] = None):
980
- """
981
- :param Sequence[str] container_image_names: This is the full image reference, as would be specified to "docker pull". An image will be sourced from the default Docker registry unless the image is fully qualified with an alternative registry.
982
- :param Sequence['ContainerRegistryResponse'] container_registries: If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.
983
- """
984
- pulumi.set(__self__, "type", type)
985
- if container_image_names is not None:
986
- pulumi.set(__self__, "container_image_names", container_image_names)
987
- if container_registries is not None:
988
- pulumi.set(__self__, "container_registries", container_registries)
989
-
990
- @property
991
- @pulumi.getter
992
- def type(self) -> str:
993
- return pulumi.get(self, "type")
994
-
995
- @property
996
- @pulumi.getter(name="containerImageNames")
997
- def container_image_names(self) -> Optional[Sequence[str]]:
998
- """
999
- This is the full image reference, as would be specified to "docker pull". An image will be sourced from the default Docker registry unless the image is fully qualified with an alternative registry.
1000
- """
1001
- return pulumi.get(self, "container_image_names")
1002
-
1003
- @property
1004
- @pulumi.getter(name="containerRegistries")
1005
- def container_registries(self) -> Optional[Sequence['outputs.ContainerRegistryResponse']]:
1006
- """
1007
- If any images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.
1008
- """
1009
- return pulumi.get(self, "container_registries")
1010
-
1011
-
1012
- @pulumi.output_type
1013
- class ContainerHostBatchBindMountEntryResponse(dict):
1014
- @staticmethod
1015
- def __key_warning(key: str):
1016
- suggest = None
1017
- if key == "isReadOnly":
1018
- suggest = "is_read_only"
1019
-
1020
- if suggest:
1021
- pulumi.log.warn(f"Key '{key}' not found in ContainerHostBatchBindMountEntryResponse. Access the value via the '{suggest}' property getter instead.")
1022
-
1023
- def __getitem__(self, key: str) -> Any:
1024
- ContainerHostBatchBindMountEntryResponse.__key_warning(key)
1025
- return super().__getitem__(key)
1026
-
1027
- def get(self, key: str, default = None) -> Any:
1028
- ContainerHostBatchBindMountEntryResponse.__key_warning(key)
1029
- return super().get(key, default)
1030
-
1031
- def __init__(__self__, *,
1032
- is_read_only: Optional[bool] = None,
1033
- source: Optional[str] = None):
1034
- """
1035
- :param bool is_read_only: For Linux, if you mount this path as a read/write mode, this does not mean that all users in container have the read/write access for the path, it depends on the access in host VM. If this path is mounted read-only, all users within the container will not be able to modify the path.
1036
- """
1037
- if is_read_only is not None:
1038
- pulumi.set(__self__, "is_read_only", is_read_only)
1039
- if source is not None:
1040
- pulumi.set(__self__, "source", source)
1041
-
1042
- @property
1043
- @pulumi.getter(name="isReadOnly")
1044
- def is_read_only(self) -> Optional[bool]:
1045
- """
1046
- For Linux, if you mount this path as a read/write mode, this does not mean that all users in container have the read/write access for the path, it depends on the access in host VM. If this path is mounted read-only, all users within the container will not be able to modify the path.
1047
- """
1048
- return pulumi.get(self, "is_read_only")
1049
-
1050
- @property
1051
- @pulumi.getter
1052
- def source(self) -> Optional[str]:
1053
- return pulumi.get(self, "source")
1054
-
1055
-
1056
- @pulumi.output_type
1057
- class ContainerRegistryResponse(dict):
1058
- @staticmethod
1059
- def __key_warning(key: str):
1060
- suggest = None
1061
- if key == "identityReference":
1062
- suggest = "identity_reference"
1063
- elif key == "registryServer":
1064
- suggest = "registry_server"
1065
- elif key == "userName":
1066
- suggest = "user_name"
1067
-
1068
- if suggest:
1069
- pulumi.log.warn(f"Key '{key}' not found in ContainerRegistryResponse. Access the value via the '{suggest}' property getter instead.")
1070
-
1071
- def __getitem__(self, key: str) -> Any:
1072
- ContainerRegistryResponse.__key_warning(key)
1073
- return super().__getitem__(key)
1074
-
1075
- def get(self, key: str, default = None) -> Any:
1076
- ContainerRegistryResponse.__key_warning(key)
1077
- return super().get(key, default)
1078
-
1079
- def __init__(__self__, *,
1080
- identity_reference: Optional['outputs.ComputeNodeIdentityReferenceResponse'] = None,
1081
- password: Optional[str] = None,
1082
- registry_server: Optional[str] = None,
1083
- user_name: Optional[str] = None):
1084
- """
1085
- :param 'ComputeNodeIdentityReferenceResponse' identity_reference: The reference to a user assigned identity associated with the Batch pool which a compute node will use.
1086
- :param str registry_server: If omitted, the default is "docker.io".
1087
- """
1088
- if identity_reference is not None:
1089
- pulumi.set(__self__, "identity_reference", identity_reference)
1090
- if password is not None:
1091
- pulumi.set(__self__, "password", password)
1092
- if registry_server is not None:
1093
- pulumi.set(__self__, "registry_server", registry_server)
1094
- if user_name is not None:
1095
- pulumi.set(__self__, "user_name", user_name)
1096
-
1097
- @property
1098
- @pulumi.getter(name="identityReference")
1099
- def identity_reference(self) -> Optional['outputs.ComputeNodeIdentityReferenceResponse']:
1100
- """
1101
- The reference to a user assigned identity associated with the Batch pool which a compute node will use.
1102
- """
1103
- return pulumi.get(self, "identity_reference")
1104
-
1105
- @property
1106
- @pulumi.getter
1107
- def password(self) -> Optional[str]:
1108
- return pulumi.get(self, "password")
1109
-
1110
- @property
1111
- @pulumi.getter(name="registryServer")
1112
- def registry_server(self) -> Optional[str]:
1113
- """
1114
- If omitted, the default is "docker.io".
1115
- """
1116
- return pulumi.get(self, "registry_server")
1117
-
1118
- @property
1119
- @pulumi.getter(name="userName")
1120
- def user_name(self) -> Optional[str]:
1121
- return pulumi.get(self, "user_name")
1122
-
1123
-
1124
- @pulumi.output_type
1125
- class DataDiskResponse(dict):
1126
- """
1127
- Settings which will be used by the data disks associated to Compute Nodes in the Pool. When using attached data disks, you need to mount and format the disks from within a VM to use them.
1128
- """
1129
- @staticmethod
1130
- def __key_warning(key: str):
1131
- suggest = None
1132
- if key == "diskSizeGB":
1133
- suggest = "disk_size_gb"
1134
- elif key == "storageAccountType":
1135
- suggest = "storage_account_type"
1136
-
1137
- if suggest:
1138
- pulumi.log.warn(f"Key '{key}' not found in DataDiskResponse. Access the value via the '{suggest}' property getter instead.")
1139
-
1140
- def __getitem__(self, key: str) -> Any:
1141
- DataDiskResponse.__key_warning(key)
1142
- return super().__getitem__(key)
1143
-
1144
- def get(self, key: str, default = None) -> Any:
1145
- DataDiskResponse.__key_warning(key)
1146
- return super().get(key, default)
1147
-
1148
- def __init__(__self__, *,
1149
- disk_size_gb: int,
1150
- lun: int,
1151
- caching: Optional[str] = None,
1152
- storage_account_type: Optional[str] = None):
1153
- """
1154
- Settings which will be used by the data disks associated to Compute Nodes in the Pool. When using attached data disks, you need to mount and format the disks from within a VM to use them.
1155
- :param int lun: The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. The value must be between 0 and 63, inclusive.
1156
- :param str caching: Values are:
1157
-
1158
- none - The caching mode for the disk is not enabled.
1159
- readOnly - The caching mode for the disk is read only.
1160
- readWrite - The caching mode for the disk is read and write.
1161
-
1162
- The default value for caching is none. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/.
1163
- :param str storage_account_type: If omitted, the default is "Standard_LRS". Values are:
1164
-
1165
- Standard_LRS - The data disk should use standard locally redundant storage.
1166
- Premium_LRS - The data disk should use premium locally redundant storage.
1167
- """
1168
- pulumi.set(__self__, "disk_size_gb", disk_size_gb)
1169
- pulumi.set(__self__, "lun", lun)
1170
- if caching is not None:
1171
- pulumi.set(__self__, "caching", caching)
1172
- if storage_account_type is not None:
1173
- pulumi.set(__self__, "storage_account_type", storage_account_type)
1174
-
1175
- @property
1176
- @pulumi.getter(name="diskSizeGB")
1177
- def disk_size_gb(self) -> int:
1178
- return pulumi.get(self, "disk_size_gb")
1179
-
1180
- @property
1181
- @pulumi.getter
1182
- def lun(self) -> int:
1183
- """
1184
- The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. The value must be between 0 and 63, inclusive.
1185
- """
1186
- return pulumi.get(self, "lun")
1187
-
1188
- @property
1189
- @pulumi.getter
1190
- def caching(self) -> Optional[str]:
1191
- """
1192
- Values are:
1193
-
1194
- none - The caching mode for the disk is not enabled.
1195
- readOnly - The caching mode for the disk is read only.
1196
- readWrite - The caching mode for the disk is read and write.
1197
-
1198
- The default value for caching is none. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/.
1199
- """
1200
- return pulumi.get(self, "caching")
1201
-
1202
- @property
1203
- @pulumi.getter(name="storageAccountType")
1204
- def storage_account_type(self) -> Optional[str]:
1205
- """
1206
- If omitted, the default is "Standard_LRS". Values are:
1207
-
1208
- Standard_LRS - The data disk should use standard locally redundant storage.
1209
- Premium_LRS - The data disk should use premium locally redundant storage.
1210
- """
1211
- return pulumi.get(self, "storage_account_type")
1212
-
1213
-
1214
- @pulumi.output_type
1215
- class DeploymentConfigurationResponse(dict):
1216
- @staticmethod
1217
- def __key_warning(key: str):
1218
- suggest = None
1219
- if key == "virtualMachineConfiguration":
1220
- suggest = "virtual_machine_configuration"
1221
-
1222
- if suggest:
1223
- pulumi.log.warn(f"Key '{key}' not found in DeploymentConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
1224
-
1225
- def __getitem__(self, key: str) -> Any:
1226
- DeploymentConfigurationResponse.__key_warning(key)
1227
- return super().__getitem__(key)
1228
-
1229
- def get(self, key: str, default = None) -> Any:
1230
- DeploymentConfigurationResponse.__key_warning(key)
1231
- return super().get(key, default)
1232
-
1233
- def __init__(__self__, *,
1234
- virtual_machine_configuration: Optional['outputs.VirtualMachineConfigurationResponse'] = None):
1235
- if virtual_machine_configuration is not None:
1236
- pulumi.set(__self__, "virtual_machine_configuration", virtual_machine_configuration)
1237
-
1238
- @property
1239
- @pulumi.getter(name="virtualMachineConfiguration")
1240
- def virtual_machine_configuration(self) -> Optional['outputs.VirtualMachineConfigurationResponse']:
1241
- return pulumi.get(self, "virtual_machine_configuration")
1242
-
1243
-
1244
- @pulumi.output_type
1245
- class DiffDiskSettingsResponse(dict):
1246
- def __init__(__self__, *,
1247
- placement: Optional[str] = None):
1248
- """
1249
- :param str placement: This property can be used by user in the request to choose which location the operating system should be in. e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements.
1250
- """
1251
- if placement is not None:
1252
- pulumi.set(__self__, "placement", placement)
1253
-
1254
- @property
1255
- @pulumi.getter
1256
- def placement(self) -> Optional[str]:
1257
- """
1258
- This property can be used by user in the request to choose which location the operating system should be in. e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements.
1259
- """
1260
- return pulumi.get(self, "placement")
1261
-
1262
-
1263
- @pulumi.output_type
1264
- class DiskEncryptionConfigurationResponse(dict):
1265
- """
1266
- The disk encryption configuration applied on compute nodes in the pool. Disk encryption configuration is not supported on Linux pool created with Virtual Machine Image or Azure Compute Gallery Image.
1267
- """
1268
- def __init__(__self__, *,
1269
- targets: Optional[Sequence[str]] = None):
1270
- """
1271
- The disk encryption configuration applied on compute nodes in the pool. Disk encryption configuration is not supported on Linux pool created with Virtual Machine Image or Azure Compute Gallery Image.
1272
- :param Sequence[str] targets: On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be specified.
1273
- """
1274
- if targets is not None:
1275
- pulumi.set(__self__, "targets", targets)
1276
-
1277
- @property
1278
- @pulumi.getter
1279
- def targets(self) -> Optional[Sequence[str]]:
1280
- """
1281
- On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be specified.
1282
- """
1283
- return pulumi.get(self, "targets")
1284
-
1285
-
1286
- @pulumi.output_type
1287
- class EncryptionPropertiesResponse(dict):
1288
- """
1289
- Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead.
1290
- """
1291
- @staticmethod
1292
- def __key_warning(key: str):
1293
- suggest = None
1294
- if key == "keySource":
1295
- suggest = "key_source"
1296
- elif key == "keyVaultProperties":
1297
- suggest = "key_vault_properties"
1298
-
1299
- if suggest:
1300
- pulumi.log.warn(f"Key '{key}' not found in EncryptionPropertiesResponse. Access the value via the '{suggest}' property getter instead.")
1301
-
1302
- def __getitem__(self, key: str) -> Any:
1303
- EncryptionPropertiesResponse.__key_warning(key)
1304
- return super().__getitem__(key)
1305
-
1306
- def get(self, key: str, default = None) -> Any:
1307
- EncryptionPropertiesResponse.__key_warning(key)
1308
- return super().get(key, default)
1309
-
1310
- def __init__(__self__, *,
1311
- key_source: Optional[str] = None,
1312
- key_vault_properties: Optional['outputs.KeyVaultPropertiesResponse'] = None):
1313
- """
1314
- Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead.
1315
- :param str key_source: Type of the key source.
1316
- :param 'KeyVaultPropertiesResponse' key_vault_properties: Additional details when using Microsoft.KeyVault
1317
- """
1318
- if key_source is not None:
1319
- pulumi.set(__self__, "key_source", key_source)
1320
- if key_vault_properties is not None:
1321
- pulumi.set(__self__, "key_vault_properties", key_vault_properties)
1322
-
1323
- @property
1324
- @pulumi.getter(name="keySource")
1325
- def key_source(self) -> Optional[str]:
1326
- """
1327
- Type of the key source.
1328
- """
1329
- return pulumi.get(self, "key_source")
1330
-
1331
- @property
1332
- @pulumi.getter(name="keyVaultProperties")
1333
- def key_vault_properties(self) -> Optional['outputs.KeyVaultPropertiesResponse']:
1334
- """
1335
- Additional details when using Microsoft.KeyVault
1336
- """
1337
- return pulumi.get(self, "key_vault_properties")
1338
-
1339
-
1340
- @pulumi.output_type
1341
- class EndpointAccessProfileResponse(dict):
1342
- """
1343
- Network access profile for Batch endpoint.
1344
- """
1345
- @staticmethod
1346
- def __key_warning(key: str):
1347
- suggest = None
1348
- if key == "defaultAction":
1349
- suggest = "default_action"
1350
- elif key == "ipRules":
1351
- suggest = "ip_rules"
1352
-
1353
- if suggest:
1354
- pulumi.log.warn(f"Key '{key}' not found in EndpointAccessProfileResponse. Access the value via the '{suggest}' property getter instead.")
1355
-
1356
- def __getitem__(self, key: str) -> Any:
1357
- EndpointAccessProfileResponse.__key_warning(key)
1358
- return super().__getitem__(key)
1359
-
1360
- def get(self, key: str, default = None) -> Any:
1361
- EndpointAccessProfileResponse.__key_warning(key)
1362
- return super().get(key, default)
1363
-
1364
- def __init__(__self__, *,
1365
- default_action: str,
1366
- ip_rules: Optional[Sequence['outputs.IPRuleResponse']] = None):
1367
- """
1368
- Network access profile for Batch endpoint.
1369
- :param str default_action: Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled.
1370
- :param Sequence['IPRuleResponse'] ip_rules: Array of IP ranges to filter client IP address.
1371
- """
1372
- pulumi.set(__self__, "default_action", default_action)
1373
- if ip_rules is not None:
1374
- pulumi.set(__self__, "ip_rules", ip_rules)
1375
-
1376
- @property
1377
- @pulumi.getter(name="defaultAction")
1378
- def default_action(self) -> str:
1379
- """
1380
- Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled.
1381
- """
1382
- return pulumi.get(self, "default_action")
1383
-
1384
- @property
1385
- @pulumi.getter(name="ipRules")
1386
- def ip_rules(self) -> Optional[Sequence['outputs.IPRuleResponse']]:
1387
- """
1388
- Array of IP ranges to filter client IP address.
1389
- """
1390
- return pulumi.get(self, "ip_rules")
1391
-
1392
-
1393
- @pulumi.output_type
1394
- class EnvironmentSettingResponse(dict):
1395
- def __init__(__self__, *,
1396
- name: str,
1397
- value: Optional[str] = None):
1398
- pulumi.set(__self__, "name", name)
1399
- if value is not None:
1400
- pulumi.set(__self__, "value", value)
1401
-
1402
- @property
1403
- @pulumi.getter
1404
- def name(self) -> str:
1405
- return pulumi.get(self, "name")
1406
-
1407
- @property
1408
- @pulumi.getter
1409
- def value(self) -> Optional[str]:
1410
- return pulumi.get(self, "value")
1411
-
1412
-
1413
- @pulumi.output_type
1414
- class FixedScaleSettingsResponse(dict):
1415
- @staticmethod
1416
- def __key_warning(key: str):
1417
- suggest = None
1418
- if key == "resizeTimeout":
1419
- suggest = "resize_timeout"
1420
- elif key == "targetDedicatedNodes":
1421
- suggest = "target_dedicated_nodes"
1422
- elif key == "targetLowPriorityNodes":
1423
- suggest = "target_low_priority_nodes"
1424
-
1425
- if suggest:
1426
- pulumi.log.warn(f"Key '{key}' not found in FixedScaleSettingsResponse. Access the value via the '{suggest}' property getter instead.")
1427
-
1428
- def __getitem__(self, key: str) -> Any:
1429
- FixedScaleSettingsResponse.__key_warning(key)
1430
- return super().__getitem__(key)
1431
-
1432
- def get(self, key: str, default = None) -> Any:
1433
- FixedScaleSettingsResponse.__key_warning(key)
1434
- return super().get(key, default)
1435
-
1436
- def __init__(__self__, *,
1437
- resize_timeout: Optional[str] = None,
1438
- target_dedicated_nodes: Optional[int] = None,
1439
- target_low_priority_nodes: Optional[int] = None):
1440
- """
1441
- :param str resize_timeout: The default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
1442
- :param int target_dedicated_nodes: At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
1443
- :param int target_low_priority_nodes: At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
1444
- """
1445
- if resize_timeout is None:
1446
- resize_timeout = 'PT15M'
1447
- if resize_timeout is not None:
1448
- pulumi.set(__self__, "resize_timeout", resize_timeout)
1449
- if target_dedicated_nodes is not None:
1450
- pulumi.set(__self__, "target_dedicated_nodes", target_dedicated_nodes)
1451
- if target_low_priority_nodes is not None:
1452
- pulumi.set(__self__, "target_low_priority_nodes", target_low_priority_nodes)
1453
-
1454
- @property
1455
- @pulumi.getter(name="resizeTimeout")
1456
- def resize_timeout(self) -> Optional[str]:
1457
- """
1458
- The default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
1459
- """
1460
- return pulumi.get(self, "resize_timeout")
1461
-
1462
- @property
1463
- @pulumi.getter(name="targetDedicatedNodes")
1464
- def target_dedicated_nodes(self) -> Optional[int]:
1465
- """
1466
- At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
1467
- """
1468
- return pulumi.get(self, "target_dedicated_nodes")
1469
-
1470
- @property
1471
- @pulumi.getter(name="targetLowPriorityNodes")
1472
- def target_low_priority_nodes(self) -> Optional[int]:
1473
- """
1474
- At least one of targetDedicatedNodes, targetLowPriorityNodes must be set.
1475
- """
1476
- return pulumi.get(self, "target_low_priority_nodes")
1477
-
1478
-
1479
- @pulumi.output_type
1480
- class IPRuleResponse(dict):
1481
- """
1482
- Rule to filter client IP address.
1483
- """
1484
- def __init__(__self__, *,
1485
- action: str,
1486
- value: str):
1487
- """
1488
- Rule to filter client IP address.
1489
- :param str action: Action when client IP address is matched.
1490
- :param str value: IPv4 address, or IPv4 address range in CIDR format.
1491
- """
1492
- pulumi.set(__self__, "action", action)
1493
- pulumi.set(__self__, "value", value)
1494
-
1495
- @property
1496
- @pulumi.getter
1497
- def action(self) -> str:
1498
- """
1499
- Action when client IP address is matched.
1500
- """
1501
- return pulumi.get(self, "action")
1502
-
1503
- @property
1504
- @pulumi.getter
1505
- def value(self) -> str:
1506
- """
1507
- IPv4 address, or IPv4 address range in CIDR format.
1508
- """
1509
- return pulumi.get(self, "value")
1510
-
1511
-
1512
- @pulumi.output_type
1513
- class ImageReferenceResponse(dict):
1514
- @staticmethod
1515
- def __key_warning(key: str):
1516
- suggest = None
1517
- if key == "communityGalleryImageId":
1518
- suggest = "community_gallery_image_id"
1519
- elif key == "sharedGalleryImageId":
1520
- suggest = "shared_gallery_image_id"
1521
-
1522
- if suggest:
1523
- pulumi.log.warn(f"Key '{key}' not found in ImageReferenceResponse. Access the value via the '{suggest}' property getter instead.")
1524
-
1525
- def __getitem__(self, key: str) -> Any:
1526
- ImageReferenceResponse.__key_warning(key)
1527
- return super().__getitem__(key)
1528
-
1529
- def get(self, key: str, default = None) -> Any:
1530
- ImageReferenceResponse.__key_warning(key)
1531
- return super().get(key, default)
1532
-
1533
- def __init__(__self__, *,
1534
- community_gallery_image_id: Optional[str] = None,
1535
- id: Optional[str] = None,
1536
- offer: Optional[str] = None,
1537
- publisher: Optional[str] = None,
1538
- shared_gallery_image_id: Optional[str] = None,
1539
- sku: Optional[str] = None,
1540
- version: Optional[str] = None):
1541
- """
1542
- :param str community_gallery_image_id: This property is mutually exclusive with other properties and can be fetched from community gallery image GET call.
1543
- :param str id: This property is mutually exclusive with other properties. The Azure Compute Gallery Image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.
1544
- :param str offer: For example, UbuntuServer or WindowsServer.
1545
- :param str publisher: For example, Canonical or MicrosoftWindowsServer.
1546
- :param str shared_gallery_image_id: This property is mutually exclusive with other properties and can be fetched from shared gallery image GET call.
1547
- :param str sku: For example, 18.04-LTS or 2022-datacenter.
1548
- :param str version: A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'.
1549
- """
1550
- if community_gallery_image_id is not None:
1551
- pulumi.set(__self__, "community_gallery_image_id", community_gallery_image_id)
1552
- if id is not None:
1553
- pulumi.set(__self__, "id", id)
1554
- if offer is not None:
1555
- pulumi.set(__self__, "offer", offer)
1556
- if publisher is not None:
1557
- pulumi.set(__self__, "publisher", publisher)
1558
- if shared_gallery_image_id is not None:
1559
- pulumi.set(__self__, "shared_gallery_image_id", shared_gallery_image_id)
1560
- if sku is not None:
1561
- pulumi.set(__self__, "sku", sku)
1562
- if version is not None:
1563
- pulumi.set(__self__, "version", version)
1564
-
1565
- @property
1566
- @pulumi.getter(name="communityGalleryImageId")
1567
- def community_gallery_image_id(self) -> Optional[str]:
1568
- """
1569
- This property is mutually exclusive with other properties and can be fetched from community gallery image GET call.
1570
- """
1571
- return pulumi.get(self, "community_gallery_image_id")
1572
-
1573
- @property
1574
- @pulumi.getter
1575
- def id(self) -> Optional[str]:
1576
- """
1577
- This property is mutually exclusive with other properties. The Azure Compute Gallery Image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.
1578
- """
1579
- return pulumi.get(self, "id")
1580
-
1581
- @property
1582
- @pulumi.getter
1583
- def offer(self) -> Optional[str]:
1584
- """
1585
- For example, UbuntuServer or WindowsServer.
1586
- """
1587
- return pulumi.get(self, "offer")
1588
-
1589
- @property
1590
- @pulumi.getter
1591
- def publisher(self) -> Optional[str]:
1592
- """
1593
- For example, Canonical or MicrosoftWindowsServer.
1594
- """
1595
- return pulumi.get(self, "publisher")
1596
-
1597
- @property
1598
- @pulumi.getter(name="sharedGalleryImageId")
1599
- def shared_gallery_image_id(self) -> Optional[str]:
1600
- """
1601
- This property is mutually exclusive with other properties and can be fetched from shared gallery image GET call.
1602
- """
1603
- return pulumi.get(self, "shared_gallery_image_id")
1604
-
1605
- @property
1606
- @pulumi.getter
1607
- def sku(self) -> Optional[str]:
1608
- """
1609
- For example, 18.04-LTS or 2022-datacenter.
1610
- """
1611
- return pulumi.get(self, "sku")
1612
-
1613
- @property
1614
- @pulumi.getter
1615
- def version(self) -> Optional[str]:
1616
- """
1617
- A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'.
1618
- """
1619
- return pulumi.get(self, "version")
1620
-
1621
-
1622
- @pulumi.output_type
1623
- class InboundNatPoolResponse(dict):
1624
- @staticmethod
1625
- def __key_warning(key: str):
1626
- suggest = None
1627
- if key == "backendPort":
1628
- suggest = "backend_port"
1629
- elif key == "frontendPortRangeEnd":
1630
- suggest = "frontend_port_range_end"
1631
- elif key == "frontendPortRangeStart":
1632
- suggest = "frontend_port_range_start"
1633
- elif key == "networkSecurityGroupRules":
1634
- suggest = "network_security_group_rules"
1635
-
1636
- if suggest:
1637
- pulumi.log.warn(f"Key '{key}' not found in InboundNatPoolResponse. Access the value via the '{suggest}' property getter instead.")
1638
-
1639
- def __getitem__(self, key: str) -> Any:
1640
- InboundNatPoolResponse.__key_warning(key)
1641
- return super().__getitem__(key)
1642
-
1643
- def get(self, key: str, default = None) -> Any:
1644
- InboundNatPoolResponse.__key_warning(key)
1645
- return super().get(key, default)
1646
-
1647
- def __init__(__self__, *,
1648
- backend_port: int,
1649
- frontend_port_range_end: int,
1650
- frontend_port_range_start: int,
1651
- name: str,
1652
- protocol: str,
1653
- network_security_group_rules: Optional[Sequence['outputs.NetworkSecurityGroupRuleResponse']] = None):
1654
- """
1655
- :param int backend_port: This must be unique within a Batch pool. Acceptable values are between 1 and 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any reserved values are provided the request fails with HTTP status code 400.
1656
- :param int frontend_port_range_end: Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service. All ranges within a pool must be distinct and cannot overlap. If any reserved or overlapping values are provided the request fails with HTTP status code 400.
1657
- :param int frontend_port_range_start: Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within a pool must be distinct and cannot overlap. If any reserved or overlapping values are provided the request fails with HTTP status code 400.
1658
- :param str name: The name must be unique within a Batch pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400.
1659
- :param Sequence['NetworkSecurityGroupRuleResponse'] network_security_group_rules: The maximum number of rules that can be specified across all the endpoints on a Batch pool is 25. If no network security group rules are specified, a default rule will be created to allow inbound access to the specified backendPort. If the maximum number of network security group rules is exceeded the request fails with HTTP status code 400.
1660
- """
1661
- pulumi.set(__self__, "backend_port", backend_port)
1662
- pulumi.set(__self__, "frontend_port_range_end", frontend_port_range_end)
1663
- pulumi.set(__self__, "frontend_port_range_start", frontend_port_range_start)
1664
- pulumi.set(__self__, "name", name)
1665
- pulumi.set(__self__, "protocol", protocol)
1666
- if network_security_group_rules is not None:
1667
- pulumi.set(__self__, "network_security_group_rules", network_security_group_rules)
1668
-
1669
- @property
1670
- @pulumi.getter(name="backendPort")
1671
- def backend_port(self) -> int:
1672
- """
1673
- This must be unique within a Batch pool. Acceptable values are between 1 and 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any reserved values are provided the request fails with HTTP status code 400.
1674
- """
1675
- return pulumi.get(self, "backend_port")
1676
-
1677
- @property
1678
- @pulumi.getter(name="frontendPortRangeEnd")
1679
- def frontend_port_range_end(self) -> int:
1680
- """
1681
- Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service. All ranges within a pool must be distinct and cannot overlap. If any reserved or overlapping values are provided the request fails with HTTP status code 400.
1682
- """
1683
- return pulumi.get(self, "frontend_port_range_end")
1684
-
1685
- @property
1686
- @pulumi.getter(name="frontendPortRangeStart")
1687
- def frontend_port_range_start(self) -> int:
1688
- """
1689
- Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within a pool must be distinct and cannot overlap. If any reserved or overlapping values are provided the request fails with HTTP status code 400.
1690
- """
1691
- return pulumi.get(self, "frontend_port_range_start")
1692
-
1693
- @property
1694
- @pulumi.getter
1695
- def name(self) -> str:
1696
- """
1697
- The name must be unique within a Batch pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400.
1698
- """
1699
- return pulumi.get(self, "name")
1700
-
1701
- @property
1702
- @pulumi.getter
1703
- def protocol(self) -> str:
1704
- return pulumi.get(self, "protocol")
1705
-
1706
- @property
1707
- @pulumi.getter(name="networkSecurityGroupRules")
1708
- def network_security_group_rules(self) -> Optional[Sequence['outputs.NetworkSecurityGroupRuleResponse']]:
1709
- """
1710
- The maximum number of rules that can be specified across all the endpoints on a Batch pool is 25. If no network security group rules are specified, a default rule will be created to allow inbound access to the specified backendPort. If the maximum number of network security group rules is exceeded the request fails with HTTP status code 400.
1711
- """
1712
- return pulumi.get(self, "network_security_group_rules")
1713
-
1714
-
1715
- @pulumi.output_type
1716
- class KeyVaultPropertiesResponse(dict):
1717
- """
1718
- KeyVault configuration when using an encryption KeySource of Microsoft.KeyVault.
1719
- """
1720
- @staticmethod
1721
- def __key_warning(key: str):
1722
- suggest = None
1723
- if key == "keyIdentifier":
1724
- suggest = "key_identifier"
1725
-
1726
- if suggest:
1727
- pulumi.log.warn(f"Key '{key}' not found in KeyVaultPropertiesResponse. Access the value via the '{suggest}' property getter instead.")
1728
-
1729
- def __getitem__(self, key: str) -> Any:
1730
- KeyVaultPropertiesResponse.__key_warning(key)
1731
- return super().__getitem__(key)
1732
-
1733
- def get(self, key: str, default = None) -> Any:
1734
- KeyVaultPropertiesResponse.__key_warning(key)
1735
- return super().get(key, default)
1736
-
1737
- def __init__(__self__, *,
1738
- key_identifier: Optional[str] = None):
1739
- """
1740
- KeyVault configuration when using an encryption KeySource of Microsoft.KeyVault.
1741
- :param str key_identifier: Full path to the secret with or without version. Example https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053. or https://mykeyvault.vault.azure.net/keys/testkey. To be usable the following prerequisites must be met:
1742
-
1743
- The Batch Account has a System Assigned identity
1744
- The account identity has been granted Key/Get, Key/Unwrap and Key/Wrap permissions
1745
- The KeyVault has soft-delete and purge protection enabled
1746
- """
1747
- if key_identifier is not None:
1748
- pulumi.set(__self__, "key_identifier", key_identifier)
1749
-
1750
- @property
1751
- @pulumi.getter(name="keyIdentifier")
1752
- def key_identifier(self) -> Optional[str]:
1753
- """
1754
- Full path to the secret with or without version. Example https://mykeyvault.vault.azure.net/keys/testkey/6e34a81fef704045975661e297a4c053. or https://mykeyvault.vault.azure.net/keys/testkey. To be usable the following prerequisites must be met:
1755
-
1756
- The Batch Account has a System Assigned identity
1757
- The account identity has been granted Key/Get, Key/Unwrap and Key/Wrap permissions
1758
- The KeyVault has soft-delete and purge protection enabled
1759
- """
1760
- return pulumi.get(self, "key_identifier")
1761
-
1762
-
1763
- @pulumi.output_type
1764
- class KeyVaultReferenceResponse(dict):
1765
- """
1766
- Identifies the Azure key vault associated with a Batch account.
1767
- """
1768
- def __init__(__self__, *,
1769
- id: str,
1770
- url: str):
1771
- """
1772
- Identifies the Azure key vault associated with a Batch account.
1773
- :param str id: The resource ID of the Azure key vault associated with the Batch account.
1774
- :param str url: The URL of the Azure key vault associated with the Batch account.
1775
- """
1776
- pulumi.set(__self__, "id", id)
1777
- pulumi.set(__self__, "url", url)
1778
-
1779
- @property
1780
- @pulumi.getter
1781
- def id(self) -> str:
1782
- """
1783
- The resource ID of the Azure key vault associated with the Batch account.
1784
- """
1785
- return pulumi.get(self, "id")
1786
-
1787
- @property
1788
- @pulumi.getter
1789
- def url(self) -> str:
1790
- """
1791
- The URL of the Azure key vault associated with the Batch account.
1792
- """
1793
- return pulumi.get(self, "url")
1794
-
1795
-
1796
- @pulumi.output_type
1797
- class LinuxUserConfigurationResponse(dict):
1798
- @staticmethod
1799
- def __key_warning(key: str):
1800
- suggest = None
1801
- if key == "sshPrivateKey":
1802
- suggest = "ssh_private_key"
1803
-
1804
- if suggest:
1805
- pulumi.log.warn(f"Key '{key}' not found in LinuxUserConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
1806
-
1807
- def __getitem__(self, key: str) -> Any:
1808
- LinuxUserConfigurationResponse.__key_warning(key)
1809
- return super().__getitem__(key)
1810
-
1811
- def get(self, key: str, default = None) -> Any:
1812
- LinuxUserConfigurationResponse.__key_warning(key)
1813
- return super().get(key, default)
1814
-
1815
- def __init__(__self__, *,
1816
- gid: Optional[int] = None,
1817
- ssh_private_key: Optional[str] = None,
1818
- uid: Optional[int] = None):
1819
- """
1820
- :param int gid: The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the gid.
1821
- :param str ssh_private_key: The private key must not be password protected. The private key is used to automatically configure asymmetric-key based authentication for SSH between nodes in a Linux pool when the pool's enableInterNodeCommunication property is true (it is ignored if enableInterNodeCommunication is false). It does this by placing the key pair into the user's .ssh directory. If not specified, password-less SSH is not configured between nodes (no modification of the user's .ssh directory is done).
1822
- :param int uid: The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the uid.
1823
- """
1824
- if gid is not None:
1825
- pulumi.set(__self__, "gid", gid)
1826
- if ssh_private_key is not None:
1827
- pulumi.set(__self__, "ssh_private_key", ssh_private_key)
1828
- if uid is not None:
1829
- pulumi.set(__self__, "uid", uid)
1830
-
1831
- @property
1832
- @pulumi.getter
1833
- def gid(self) -> Optional[int]:
1834
- """
1835
- The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the gid.
1836
- """
1837
- return pulumi.get(self, "gid")
1838
-
1839
- @property
1840
- @pulumi.getter(name="sshPrivateKey")
1841
- def ssh_private_key(self) -> Optional[str]:
1842
- """
1843
- The private key must not be password protected. The private key is used to automatically configure asymmetric-key based authentication for SSH between nodes in a Linux pool when the pool's enableInterNodeCommunication property is true (it is ignored if enableInterNodeCommunication is false). It does this by placing the key pair into the user's .ssh directory. If not specified, password-less SSH is not configured between nodes (no modification of the user's .ssh directory is done).
1844
- """
1845
- return pulumi.get(self, "ssh_private_key")
1846
-
1847
- @property
1848
- @pulumi.getter
1849
- def uid(self) -> Optional[int]:
1850
- """
1851
- The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the uid.
1852
- """
1853
- return pulumi.get(self, "uid")
1854
-
1855
-
1856
- @pulumi.output_type
1857
- class ManagedDiskResponse(dict):
1858
- @staticmethod
1859
- def __key_warning(key: str):
1860
- suggest = None
1861
- if key == "securityProfile":
1862
- suggest = "security_profile"
1863
- elif key == "storageAccountType":
1864
- suggest = "storage_account_type"
1865
-
1866
- if suggest:
1867
- pulumi.log.warn(f"Key '{key}' not found in ManagedDiskResponse. Access the value via the '{suggest}' property getter instead.")
1868
-
1869
- def __getitem__(self, key: str) -> Any:
1870
- ManagedDiskResponse.__key_warning(key)
1871
- return super().__getitem__(key)
1872
-
1873
- def get(self, key: str, default = None) -> Any:
1874
- ManagedDiskResponse.__key_warning(key)
1875
- return super().get(key, default)
1876
-
1877
- def __init__(__self__, *,
1878
- security_profile: Optional['outputs.VMDiskSecurityProfileResponse'] = None,
1879
- storage_account_type: Optional[str] = None):
1880
- """
1881
- :param 'VMDiskSecurityProfileResponse' security_profile: Specifies the security profile settings for the managed disk. **Note**: It can only be set for Confidential VMs and is required when using Confidential VMs.
1882
- """
1883
- if security_profile is not None:
1884
- pulumi.set(__self__, "security_profile", security_profile)
1885
- if storage_account_type is not None:
1886
- pulumi.set(__self__, "storage_account_type", storage_account_type)
1887
-
1888
- @property
1889
- @pulumi.getter(name="securityProfile")
1890
- def security_profile(self) -> Optional['outputs.VMDiskSecurityProfileResponse']:
1891
- """
1892
- Specifies the security profile settings for the managed disk. **Note**: It can only be set for Confidential VMs and is required when using Confidential VMs.
1893
- """
1894
- return pulumi.get(self, "security_profile")
1895
-
1896
- @property
1897
- @pulumi.getter(name="storageAccountType")
1898
- def storage_account_type(self) -> Optional[str]:
1899
- return pulumi.get(self, "storage_account_type")
1900
-
1901
-
1902
- @pulumi.output_type
1903
- class MetadataItemResponse(dict):
1904
- """
1905
- The Batch service does not assign any meaning to this metadata; it is solely for the use of user code.
1906
- """
1907
- def __init__(__self__, *,
1908
- name: str,
1909
- value: str):
1910
- """
1911
- The Batch service does not assign any meaning to this metadata; it is solely for the use of user code.
1912
- """
1913
- pulumi.set(__self__, "name", name)
1914
- pulumi.set(__self__, "value", value)
1915
-
1916
- @property
1917
- @pulumi.getter
1918
- def name(self) -> str:
1919
- return pulumi.get(self, "name")
1920
-
1921
- @property
1922
- @pulumi.getter
1923
- def value(self) -> str:
1924
- return pulumi.get(self, "value")
1925
-
1926
-
1927
- @pulumi.output_type
1928
- class MountConfigurationResponse(dict):
1929
- @staticmethod
1930
- def __key_warning(key: str):
1931
- suggest = None
1932
- if key == "azureBlobFileSystemConfiguration":
1933
- suggest = "azure_blob_file_system_configuration"
1934
- elif key == "azureFileShareConfiguration":
1935
- suggest = "azure_file_share_configuration"
1936
- elif key == "cifsMountConfiguration":
1937
- suggest = "cifs_mount_configuration"
1938
- elif key == "nfsMountConfiguration":
1939
- suggest = "nfs_mount_configuration"
1940
-
1941
- if suggest:
1942
- pulumi.log.warn(f"Key '{key}' not found in MountConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
1943
-
1944
- def __getitem__(self, key: str) -> Any:
1945
- MountConfigurationResponse.__key_warning(key)
1946
- return super().__getitem__(key)
1947
-
1948
- def get(self, key: str, default = None) -> Any:
1949
- MountConfigurationResponse.__key_warning(key)
1950
- return super().get(key, default)
1951
-
1952
- def __init__(__self__, *,
1953
- azure_blob_file_system_configuration: Optional['outputs.AzureBlobFileSystemConfigurationResponse'] = None,
1954
- azure_file_share_configuration: Optional['outputs.AzureFileShareConfigurationResponse'] = None,
1955
- cifs_mount_configuration: Optional['outputs.CIFSMountConfigurationResponse'] = None,
1956
- nfs_mount_configuration: Optional['outputs.NFSMountConfigurationResponse'] = None):
1957
- """
1958
- :param 'AzureBlobFileSystemConfigurationResponse' azure_blob_file_system_configuration: This property is mutually exclusive with all other properties.
1959
- :param 'AzureFileShareConfigurationResponse' azure_file_share_configuration: This property is mutually exclusive with all other properties.
1960
- :param 'CIFSMountConfigurationResponse' cifs_mount_configuration: This property is mutually exclusive with all other properties.
1961
- :param 'NFSMountConfigurationResponse' nfs_mount_configuration: This property is mutually exclusive with all other properties.
1962
- """
1963
- if azure_blob_file_system_configuration is not None:
1964
- pulumi.set(__self__, "azure_blob_file_system_configuration", azure_blob_file_system_configuration)
1965
- if azure_file_share_configuration is not None:
1966
- pulumi.set(__self__, "azure_file_share_configuration", azure_file_share_configuration)
1967
- if cifs_mount_configuration is not None:
1968
- pulumi.set(__self__, "cifs_mount_configuration", cifs_mount_configuration)
1969
- if nfs_mount_configuration is not None:
1970
- pulumi.set(__self__, "nfs_mount_configuration", nfs_mount_configuration)
1971
-
1972
- @property
1973
- @pulumi.getter(name="azureBlobFileSystemConfiguration")
1974
- def azure_blob_file_system_configuration(self) -> Optional['outputs.AzureBlobFileSystemConfigurationResponse']:
1975
- """
1976
- This property is mutually exclusive with all other properties.
1977
- """
1978
- return pulumi.get(self, "azure_blob_file_system_configuration")
1979
-
1980
- @property
1981
- @pulumi.getter(name="azureFileShareConfiguration")
1982
- def azure_file_share_configuration(self) -> Optional['outputs.AzureFileShareConfigurationResponse']:
1983
- """
1984
- This property is mutually exclusive with all other properties.
1985
- """
1986
- return pulumi.get(self, "azure_file_share_configuration")
1987
-
1988
- @property
1989
- @pulumi.getter(name="cifsMountConfiguration")
1990
- def cifs_mount_configuration(self) -> Optional['outputs.CIFSMountConfigurationResponse']:
1991
- """
1992
- This property is mutually exclusive with all other properties.
1993
- """
1994
- return pulumi.get(self, "cifs_mount_configuration")
1995
-
1996
- @property
1997
- @pulumi.getter(name="nfsMountConfiguration")
1998
- def nfs_mount_configuration(self) -> Optional['outputs.NFSMountConfigurationResponse']:
1999
- """
2000
- This property is mutually exclusive with all other properties.
2001
- """
2002
- return pulumi.get(self, "nfs_mount_configuration")
2003
-
2004
-
2005
- @pulumi.output_type
2006
- class NFSMountConfigurationResponse(dict):
2007
- @staticmethod
2008
- def __key_warning(key: str):
2009
- suggest = None
2010
- if key == "relativeMountPath":
2011
- suggest = "relative_mount_path"
2012
- elif key == "mountOptions":
2013
- suggest = "mount_options"
2014
-
2015
- if suggest:
2016
- pulumi.log.warn(f"Key '{key}' not found in NFSMountConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
2017
-
2018
- def __getitem__(self, key: str) -> Any:
2019
- NFSMountConfigurationResponse.__key_warning(key)
2020
- return super().__getitem__(key)
2021
-
2022
- def get(self, key: str, default = None) -> Any:
2023
- NFSMountConfigurationResponse.__key_warning(key)
2024
- return super().get(key, default)
2025
-
2026
- def __init__(__self__, *,
2027
- relative_mount_path: str,
2028
- source: str,
2029
- mount_options: Optional[str] = None):
2030
- """
2031
- :param str relative_mount_path: All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
2032
- :param str mount_options: These are 'net use' options in Windows and 'mount' options in Linux.
2033
- """
2034
- pulumi.set(__self__, "relative_mount_path", relative_mount_path)
2035
- pulumi.set(__self__, "source", source)
2036
- if mount_options is not None:
2037
- pulumi.set(__self__, "mount_options", mount_options)
2038
-
2039
- @property
2040
- @pulumi.getter(name="relativeMountPath")
2041
- def relative_mount_path(self) -> str:
2042
- """
2043
- All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable.
2044
- """
2045
- return pulumi.get(self, "relative_mount_path")
2046
-
2047
- @property
2048
- @pulumi.getter
2049
- def source(self) -> str:
2050
- return pulumi.get(self, "source")
2051
-
2052
- @property
2053
- @pulumi.getter(name="mountOptions")
2054
- def mount_options(self) -> Optional[str]:
2055
- """
2056
- These are 'net use' options in Windows and 'mount' options in Linux.
2057
- """
2058
- return pulumi.get(self, "mount_options")
2059
-
2060
-
2061
- @pulumi.output_type
2062
- class NetworkConfigurationResponse(dict):
2063
- """
2064
- The network configuration for a pool.
2065
- """
2066
- @staticmethod
2067
- def __key_warning(key: str):
2068
- suggest = None
2069
- if key == "dynamicVnetAssignmentScope":
2070
- suggest = "dynamic_vnet_assignment_scope"
2071
- elif key == "enableAcceleratedNetworking":
2072
- suggest = "enable_accelerated_networking"
2073
- elif key == "endpointConfiguration":
2074
- suggest = "endpoint_configuration"
2075
- elif key == "publicIPAddressConfiguration":
2076
- suggest = "public_ip_address_configuration"
2077
- elif key == "subnetId":
2078
- suggest = "subnet_id"
2079
-
2080
- if suggest:
2081
- pulumi.log.warn(f"Key '{key}' not found in NetworkConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
2082
-
2083
- def __getitem__(self, key: str) -> Any:
2084
- NetworkConfigurationResponse.__key_warning(key)
2085
- return super().__getitem__(key)
2086
-
2087
- def get(self, key: str, default = None) -> Any:
2088
- NetworkConfigurationResponse.__key_warning(key)
2089
- return super().get(key, default)
2090
-
2091
- def __init__(__self__, *,
2092
- dynamic_vnet_assignment_scope: Optional[str] = None,
2093
- enable_accelerated_networking: Optional[bool] = None,
2094
- endpoint_configuration: Optional['outputs.PoolEndpointConfigurationResponse'] = None,
2095
- public_ip_address_configuration: Optional['outputs.PublicIPAddressConfigurationResponse'] = None,
2096
- subnet_id: Optional[str] = None):
2097
- """
2098
- The network configuration for a pool.
2099
- :param bool enable_accelerated_networking: Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. For more details, see: https://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview.
2100
- :param 'PublicIPAddressConfigurationResponse' public_ip_address_configuration: The public IP Address configuration of the networking configuration of a Pool.
2101
- :param str subnet_id: The virtual network must be in the same region and subscription as the Azure Batch account. The specified subnet should have enough free IP addresses to accommodate the number of nodes in the pool. If the subnet doesn't have enough free IP addresses, the pool will partially allocate compute nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule tasks on the compute nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the compute nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the compute nodes to unusable. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. Enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Also enable outbound connections to Azure Storage on port 443. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration
2102
- """
2103
- if dynamic_vnet_assignment_scope is None:
2104
- dynamic_vnet_assignment_scope = 'none'
2105
- if dynamic_vnet_assignment_scope is not None:
2106
- pulumi.set(__self__, "dynamic_vnet_assignment_scope", dynamic_vnet_assignment_scope)
2107
- if enable_accelerated_networking is not None:
2108
- pulumi.set(__self__, "enable_accelerated_networking", enable_accelerated_networking)
2109
- if endpoint_configuration is not None:
2110
- pulumi.set(__self__, "endpoint_configuration", endpoint_configuration)
2111
- if public_ip_address_configuration is not None:
2112
- pulumi.set(__self__, "public_ip_address_configuration", public_ip_address_configuration)
2113
- if subnet_id is not None:
2114
- pulumi.set(__self__, "subnet_id", subnet_id)
2115
-
2116
- @property
2117
- @pulumi.getter(name="dynamicVnetAssignmentScope")
2118
- def dynamic_vnet_assignment_scope(self) -> Optional[str]:
2119
- return pulumi.get(self, "dynamic_vnet_assignment_scope")
2120
-
2121
- @property
2122
- @pulumi.getter(name="enableAcceleratedNetworking")
2123
- def enable_accelerated_networking(self) -> Optional[bool]:
2124
- """
2125
- Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. For more details, see: https://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview.
2126
- """
2127
- return pulumi.get(self, "enable_accelerated_networking")
2128
-
2129
- @property
2130
- @pulumi.getter(name="endpointConfiguration")
2131
- def endpoint_configuration(self) -> Optional['outputs.PoolEndpointConfigurationResponse']:
2132
- return pulumi.get(self, "endpoint_configuration")
2133
-
2134
- @property
2135
- @pulumi.getter(name="publicIPAddressConfiguration")
2136
- def public_ip_address_configuration(self) -> Optional['outputs.PublicIPAddressConfigurationResponse']:
2137
- """
2138
- The public IP Address configuration of the networking configuration of a Pool.
2139
- """
2140
- return pulumi.get(self, "public_ip_address_configuration")
2141
-
2142
- @property
2143
- @pulumi.getter(name="subnetId")
2144
- def subnet_id(self) -> Optional[str]:
2145
- """
2146
- The virtual network must be in the same region and subscription as the Azure Batch account. The specified subnet should have enough free IP addresses to accommodate the number of nodes in the pool. If the subnet doesn't have enough free IP addresses, the pool will partially allocate compute nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule tasks on the compute nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the compute nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the compute nodes to unusable. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. Enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. Also enable outbound connections to Azure Storage on port 443. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration
2147
- """
2148
- return pulumi.get(self, "subnet_id")
2149
-
2150
-
2151
- @pulumi.output_type
2152
- class NetworkProfileResponse(dict):
2153
- """
2154
- Network profile for Batch account, which contains network rule settings for each endpoint.
2155
- """
2156
- @staticmethod
2157
- def __key_warning(key: str):
2158
- suggest = None
2159
- if key == "accountAccess":
2160
- suggest = "account_access"
2161
- elif key == "nodeManagementAccess":
2162
- suggest = "node_management_access"
2163
-
2164
- if suggest:
2165
- pulumi.log.warn(f"Key '{key}' not found in NetworkProfileResponse. Access the value via the '{suggest}' property getter instead.")
2166
-
2167
- def __getitem__(self, key: str) -> Any:
2168
- NetworkProfileResponse.__key_warning(key)
2169
- return super().__getitem__(key)
2170
-
2171
- def get(self, key: str, default = None) -> Any:
2172
- NetworkProfileResponse.__key_warning(key)
2173
- return super().get(key, default)
2174
-
2175
- def __init__(__self__, *,
2176
- account_access: Optional['outputs.EndpointAccessProfileResponse'] = None,
2177
- node_management_access: Optional['outputs.EndpointAccessProfileResponse'] = None):
2178
- """
2179
- Network profile for Batch account, which contains network rule settings for each endpoint.
2180
- :param 'EndpointAccessProfileResponse' account_access: Network access profile for batchAccount endpoint (Batch account data plane API).
2181
- :param 'EndpointAccessProfileResponse' node_management_access: Network access profile for nodeManagement endpoint (Batch service managing compute nodes for Batch pools).
2182
- """
2183
- if account_access is not None:
2184
- pulumi.set(__self__, "account_access", account_access)
2185
- if node_management_access is not None:
2186
- pulumi.set(__self__, "node_management_access", node_management_access)
2187
-
2188
- @property
2189
- @pulumi.getter(name="accountAccess")
2190
- def account_access(self) -> Optional['outputs.EndpointAccessProfileResponse']:
2191
- """
2192
- Network access profile for batchAccount endpoint (Batch account data plane API).
2193
- """
2194
- return pulumi.get(self, "account_access")
2195
-
2196
- @property
2197
- @pulumi.getter(name="nodeManagementAccess")
2198
- def node_management_access(self) -> Optional['outputs.EndpointAccessProfileResponse']:
2199
- """
2200
- Network access profile for nodeManagement endpoint (Batch service managing compute nodes for Batch pools).
2201
- """
2202
- return pulumi.get(self, "node_management_access")
2203
-
2204
-
2205
- @pulumi.output_type
2206
- class NetworkSecurityGroupRuleResponse(dict):
2207
- @staticmethod
2208
- def __key_warning(key: str):
2209
- suggest = None
2210
- if key == "sourceAddressPrefix":
2211
- suggest = "source_address_prefix"
2212
- elif key == "sourcePortRanges":
2213
- suggest = "source_port_ranges"
2214
-
2215
- if suggest:
2216
- pulumi.log.warn(f"Key '{key}' not found in NetworkSecurityGroupRuleResponse. Access the value via the '{suggest}' property getter instead.")
2217
-
2218
- def __getitem__(self, key: str) -> Any:
2219
- NetworkSecurityGroupRuleResponse.__key_warning(key)
2220
- return super().__getitem__(key)
2221
-
2222
- def get(self, key: str, default = None) -> Any:
2223
- NetworkSecurityGroupRuleResponse.__key_warning(key)
2224
- return super().get(key, default)
2225
-
2226
- def __init__(__self__, *,
2227
- access: str,
2228
- priority: int,
2229
- source_address_prefix: str,
2230
- source_port_ranges: Optional[Sequence[str]] = None):
2231
- """
2232
- :param int priority: Priorities within a pool must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 4096. If any reserved or duplicate values are provided the request fails with HTTP status code 400.
2233
- :param str source_address_prefix: Valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for all addresses). If any other values are provided the request fails with HTTP status code 400.
2234
- :param Sequence[str] source_port_ranges: Valid values are '*' (for all ports 0 - 65535) or arrays of ports or port ranges (i.e. 100-200). The ports should in the range of 0 to 65535 and the port ranges or ports can't overlap. If any other values are provided the request fails with HTTP status code 400. Default value will be *.
2235
- """
2236
- pulumi.set(__self__, "access", access)
2237
- pulumi.set(__self__, "priority", priority)
2238
- pulumi.set(__self__, "source_address_prefix", source_address_prefix)
2239
- if source_port_ranges is not None:
2240
- pulumi.set(__self__, "source_port_ranges", source_port_ranges)
2241
-
2242
- @property
2243
- @pulumi.getter
2244
- def access(self) -> str:
2245
- return pulumi.get(self, "access")
2246
-
2247
- @property
2248
- @pulumi.getter
2249
- def priority(self) -> int:
2250
- """
2251
- Priorities within a pool must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 4096. If any reserved or duplicate values are provided the request fails with HTTP status code 400.
2252
- """
2253
- return pulumi.get(self, "priority")
2254
-
2255
- @property
2256
- @pulumi.getter(name="sourceAddressPrefix")
2257
- def source_address_prefix(self) -> str:
2258
- """
2259
- Valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for all addresses). If any other values are provided the request fails with HTTP status code 400.
2260
- """
2261
- return pulumi.get(self, "source_address_prefix")
2262
-
2263
- @property
2264
- @pulumi.getter(name="sourcePortRanges")
2265
- def source_port_ranges(self) -> Optional[Sequence[str]]:
2266
- """
2267
- Valid values are '*' (for all ports 0 - 65535) or arrays of ports or port ranges (i.e. 100-200). The ports should in the range of 0 to 65535 and the port ranges or ports can't overlap. If any other values are provided the request fails with HTTP status code 400. Default value will be *.
2268
- """
2269
- return pulumi.get(self, "source_port_ranges")
2270
-
2271
-
2272
- @pulumi.output_type
2273
- class NodePlacementConfigurationResponse(dict):
2274
- """
2275
- Allocation configuration used by Batch Service to provision the nodes.
2276
- """
2277
- def __init__(__self__, *,
2278
- policy: Optional[str] = None):
2279
- """
2280
- Allocation configuration used by Batch Service to provision the nodes.
2281
- :param str policy: Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy.
2282
- """
2283
- if policy is not None:
2284
- pulumi.set(__self__, "policy", policy)
2285
-
2286
- @property
2287
- @pulumi.getter
2288
- def policy(self) -> Optional[str]:
2289
- """
2290
- Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy.
2291
- """
2292
- return pulumi.get(self, "policy")
2293
-
2294
-
2295
- @pulumi.output_type
2296
- class OSDiskResponse(dict):
2297
- @staticmethod
2298
- def __key_warning(key: str):
2299
- suggest = None
2300
- if key == "diskSizeGB":
2301
- suggest = "disk_size_gb"
2302
- elif key == "ephemeralOSDiskSettings":
2303
- suggest = "ephemeral_os_disk_settings"
2304
- elif key == "managedDisk":
2305
- suggest = "managed_disk"
2306
- elif key == "writeAcceleratorEnabled":
2307
- suggest = "write_accelerator_enabled"
2308
-
2309
- if suggest:
2310
- pulumi.log.warn(f"Key '{key}' not found in OSDiskResponse. Access the value via the '{suggest}' property getter instead.")
2311
-
2312
- def __getitem__(self, key: str) -> Any:
2313
- OSDiskResponse.__key_warning(key)
2314
- return super().__getitem__(key)
2315
-
2316
- def get(self, key: str, default = None) -> Any:
2317
- OSDiskResponse.__key_warning(key)
2318
- return super().get(key, default)
2319
-
2320
- def __init__(__self__, *,
2321
- caching: Optional[str] = None,
2322
- disk_size_gb: Optional[int] = None,
2323
- ephemeral_os_disk_settings: Optional['outputs.DiffDiskSettingsResponse'] = None,
2324
- managed_disk: Optional['outputs.ManagedDiskResponse'] = None,
2325
- write_accelerator_enabled: Optional[bool] = None):
2326
- if caching is not None:
2327
- pulumi.set(__self__, "caching", caching)
2328
- if disk_size_gb is not None:
2329
- pulumi.set(__self__, "disk_size_gb", disk_size_gb)
2330
- if ephemeral_os_disk_settings is not None:
2331
- pulumi.set(__self__, "ephemeral_os_disk_settings", ephemeral_os_disk_settings)
2332
- if managed_disk is not None:
2333
- pulumi.set(__self__, "managed_disk", managed_disk)
2334
- if write_accelerator_enabled is not None:
2335
- pulumi.set(__self__, "write_accelerator_enabled", write_accelerator_enabled)
2336
-
2337
- @property
2338
- @pulumi.getter
2339
- def caching(self) -> Optional[str]:
2340
- return pulumi.get(self, "caching")
2341
-
2342
- @property
2343
- @pulumi.getter(name="diskSizeGB")
2344
- def disk_size_gb(self) -> Optional[int]:
2345
- return pulumi.get(self, "disk_size_gb")
2346
-
2347
- @property
2348
- @pulumi.getter(name="ephemeralOSDiskSettings")
2349
- def ephemeral_os_disk_settings(self) -> Optional['outputs.DiffDiskSettingsResponse']:
2350
- return pulumi.get(self, "ephemeral_os_disk_settings")
2351
-
2352
- @property
2353
- @pulumi.getter(name="managedDisk")
2354
- def managed_disk(self) -> Optional['outputs.ManagedDiskResponse']:
2355
- return pulumi.get(self, "managed_disk")
2356
-
2357
- @property
2358
- @pulumi.getter(name="writeAcceleratorEnabled")
2359
- def write_accelerator_enabled(self) -> Optional[bool]:
2360
- return pulumi.get(self, "write_accelerator_enabled")
2361
-
2362
-
2363
- @pulumi.output_type
2364
- class PoolEndpointConfigurationResponse(dict):
2365
- @staticmethod
2366
- def __key_warning(key: str):
2367
- suggest = None
2368
- if key == "inboundNatPools":
2369
- suggest = "inbound_nat_pools"
2370
-
2371
- if suggest:
2372
- pulumi.log.warn(f"Key '{key}' not found in PoolEndpointConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
2373
-
2374
- def __getitem__(self, key: str) -> Any:
2375
- PoolEndpointConfigurationResponse.__key_warning(key)
2376
- return super().__getitem__(key)
2377
-
2378
- def get(self, key: str, default = None) -> Any:
2379
- PoolEndpointConfigurationResponse.__key_warning(key)
2380
- return super().get(key, default)
2381
-
2382
- def __init__(__self__, *,
2383
- inbound_nat_pools: Sequence['outputs.InboundNatPoolResponse']):
2384
- """
2385
- :param Sequence['InboundNatPoolResponse'] inbound_nat_pools: The maximum number of inbound NAT pools per Batch pool is 5. If the maximum number of inbound NAT pools is exceeded the request fails with HTTP status code 400. This cannot be specified if the IPAddressProvisioningType is NoPublicIPAddresses.
2386
- """
2387
- pulumi.set(__self__, "inbound_nat_pools", inbound_nat_pools)
2388
-
2389
- @property
2390
- @pulumi.getter(name="inboundNatPools")
2391
- def inbound_nat_pools(self) -> Sequence['outputs.InboundNatPoolResponse']:
2392
- """
2393
- The maximum number of inbound NAT pools per Batch pool is 5. If the maximum number of inbound NAT pools is exceeded the request fails with HTTP status code 400. This cannot be specified if the IPAddressProvisioningType is NoPublicIPAddresses.
2394
- """
2395
- return pulumi.get(self, "inbound_nat_pools")
2396
-
2397
-
2398
- @pulumi.output_type
2399
- class PrivateEndpointConnectionResponse(dict):
2400
- """
2401
- Contains information about a private link resource.
2402
- """
2403
- @staticmethod
2404
- def __key_warning(key: str):
2405
- suggest = None
2406
- if key == "groupIds":
2407
- suggest = "group_ids"
2408
- elif key == "privateEndpoint":
2409
- suggest = "private_endpoint"
2410
- elif key == "provisioningState":
2411
- suggest = "provisioning_state"
2412
- elif key == "privateLinkServiceConnectionState":
2413
- suggest = "private_link_service_connection_state"
2414
-
2415
- if suggest:
2416
- pulumi.log.warn(f"Key '{key}' not found in PrivateEndpointConnectionResponse. Access the value via the '{suggest}' property getter instead.")
2417
-
2418
- def __getitem__(self, key: str) -> Any:
2419
- PrivateEndpointConnectionResponse.__key_warning(key)
2420
- return super().__getitem__(key)
2421
-
2422
- def get(self, key: str, default = None) -> Any:
2423
- PrivateEndpointConnectionResponse.__key_warning(key)
2424
- return super().get(key, default)
2425
-
2426
- def __init__(__self__, *,
2427
- etag: str,
2428
- group_ids: Sequence[str],
2429
- id: str,
2430
- name: str,
2431
- private_endpoint: 'outputs.PrivateEndpointResponse',
2432
- provisioning_state: str,
2433
- type: str,
2434
- private_link_service_connection_state: Optional['outputs.PrivateLinkServiceConnectionStateResponse'] = None,
2435
- tags: Optional[Mapping[str, str]] = None):
2436
- """
2437
- Contains information about a private link resource.
2438
- :param str etag: The ETag of the resource, used for concurrency statements.
2439
- :param Sequence[str] group_ids: The value has one and only one group id.
2440
- :param str id: The ID of the resource.
2441
- :param str name: The name of the resource.
2442
- :param 'PrivateEndpointResponse' private_endpoint: The private endpoint of the private endpoint connection.
2443
- :param str type: The type of the resource.
2444
- :param 'PrivateLinkServiceConnectionStateResponse' private_link_service_connection_state: The private link service connection state of the private endpoint connection
2445
- :param Mapping[str, str] tags: The tags of the resource.
2446
- """
2447
- pulumi.set(__self__, "etag", etag)
2448
- pulumi.set(__self__, "group_ids", group_ids)
2449
- pulumi.set(__self__, "id", id)
2450
- pulumi.set(__self__, "name", name)
2451
- pulumi.set(__self__, "private_endpoint", private_endpoint)
2452
- pulumi.set(__self__, "provisioning_state", provisioning_state)
2453
- pulumi.set(__self__, "type", type)
2454
- if private_link_service_connection_state is not None:
2455
- pulumi.set(__self__, "private_link_service_connection_state", private_link_service_connection_state)
2456
- if tags is not None:
2457
- pulumi.set(__self__, "tags", tags)
2458
-
2459
- @property
2460
- @pulumi.getter
2461
- def etag(self) -> str:
2462
- """
2463
- The ETag of the resource, used for concurrency statements.
2464
- """
2465
- return pulumi.get(self, "etag")
2466
-
2467
- @property
2468
- @pulumi.getter(name="groupIds")
2469
- def group_ids(self) -> Sequence[str]:
2470
- """
2471
- The value has one and only one group id.
2472
- """
2473
- return pulumi.get(self, "group_ids")
2474
-
2475
- @property
2476
- @pulumi.getter
2477
- def id(self) -> str:
2478
- """
2479
- The ID of the resource.
2480
- """
2481
- return pulumi.get(self, "id")
2482
-
2483
- @property
2484
- @pulumi.getter
2485
- def name(self) -> str:
2486
- """
2487
- The name of the resource.
2488
- """
2489
- return pulumi.get(self, "name")
2490
-
2491
- @property
2492
- @pulumi.getter(name="privateEndpoint")
2493
- def private_endpoint(self) -> 'outputs.PrivateEndpointResponse':
2494
- """
2495
- The private endpoint of the private endpoint connection.
2496
- """
2497
- return pulumi.get(self, "private_endpoint")
2498
-
2499
- @property
2500
- @pulumi.getter(name="provisioningState")
2501
- def provisioning_state(self) -> str:
2502
- return pulumi.get(self, "provisioning_state")
2503
-
2504
- @property
2505
- @pulumi.getter
2506
- def type(self) -> str:
2507
- """
2508
- The type of the resource.
2509
- """
2510
- return pulumi.get(self, "type")
2511
-
2512
- @property
2513
- @pulumi.getter(name="privateLinkServiceConnectionState")
2514
- def private_link_service_connection_state(self) -> Optional['outputs.PrivateLinkServiceConnectionStateResponse']:
2515
- """
2516
- The private link service connection state of the private endpoint connection
2517
- """
2518
- return pulumi.get(self, "private_link_service_connection_state")
2519
-
2520
- @property
2521
- @pulumi.getter
2522
- def tags(self) -> Optional[Mapping[str, str]]:
2523
- """
2524
- The tags of the resource.
2525
- """
2526
- return pulumi.get(self, "tags")
2527
-
2528
-
2529
- @pulumi.output_type
2530
- class PrivateEndpointResponse(dict):
2531
- """
2532
- The private endpoint of the private endpoint connection.
2533
- """
2534
- def __init__(__self__, *,
2535
- id: str):
2536
- """
2537
- The private endpoint of the private endpoint connection.
2538
- """
2539
- pulumi.set(__self__, "id", id)
2540
-
2541
- @property
2542
- @pulumi.getter
2543
- def id(self) -> str:
2544
- return pulumi.get(self, "id")
2545
-
2546
-
2547
- @pulumi.output_type
2548
- class PrivateLinkServiceConnectionStateResponse(dict):
2549
- """
2550
- The private link service connection state of the private endpoint connection
2551
- """
2552
- @staticmethod
2553
- def __key_warning(key: str):
2554
- suggest = None
2555
- if key == "actionsRequired":
2556
- suggest = "actions_required"
2557
-
2558
- if suggest:
2559
- pulumi.log.warn(f"Key '{key}' not found in PrivateLinkServiceConnectionStateResponse. Access the value via the '{suggest}' property getter instead.")
2560
-
2561
- def __getitem__(self, key: str) -> Any:
2562
- PrivateLinkServiceConnectionStateResponse.__key_warning(key)
2563
- return super().__getitem__(key)
2564
-
2565
- def get(self, key: str, default = None) -> Any:
2566
- PrivateLinkServiceConnectionStateResponse.__key_warning(key)
2567
- return super().get(key, default)
2568
-
2569
- def __init__(__self__, *,
2570
- actions_required: str,
2571
- status: str,
2572
- description: Optional[str] = None):
2573
- """
2574
- The private link service connection state of the private endpoint connection
2575
- """
2576
- pulumi.set(__self__, "actions_required", actions_required)
2577
- pulumi.set(__self__, "status", status)
2578
- if description is not None:
2579
- pulumi.set(__self__, "description", description)
2580
-
2581
- @property
2582
- @pulumi.getter(name="actionsRequired")
2583
- def actions_required(self) -> str:
2584
- return pulumi.get(self, "actions_required")
2585
-
2586
- @property
2587
- @pulumi.getter
2588
- def status(self) -> str:
2589
- return pulumi.get(self, "status")
2590
-
2591
- @property
2592
- @pulumi.getter
2593
- def description(self) -> Optional[str]:
2594
- return pulumi.get(self, "description")
2595
-
2596
-
2597
- @pulumi.output_type
2598
- class PublicIPAddressConfigurationResponse(dict):
2599
- """
2600
- The public IP Address configuration of the networking configuration of a Pool.
2601
- """
2602
- @staticmethod
2603
- def __key_warning(key: str):
2604
- suggest = None
2605
- if key == "ipAddressIds":
2606
- suggest = "ip_address_ids"
2607
-
2608
- if suggest:
2609
- pulumi.log.warn(f"Key '{key}' not found in PublicIPAddressConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
2610
-
2611
- def __getitem__(self, key: str) -> Any:
2612
- PublicIPAddressConfigurationResponse.__key_warning(key)
2613
- return super().__getitem__(key)
2614
-
2615
- def get(self, key: str, default = None) -> Any:
2616
- PublicIPAddressConfigurationResponse.__key_warning(key)
2617
- return super().get(key, default)
2618
-
2619
- def __init__(__self__, *,
2620
- ip_address_ids: Optional[Sequence[str]] = None,
2621
- provision: Optional[str] = None):
2622
- """
2623
- The public IP Address configuration of the networking configuration of a Pool.
2624
- :param Sequence[str] ip_address_ids: The number of IPs specified here limits the maximum size of the Pool - 100 dedicated nodes or 100 Spot/low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each element of this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
2625
- :param str provision: The default value is BatchManaged
2626
- """
2627
- if ip_address_ids is not None:
2628
- pulumi.set(__self__, "ip_address_ids", ip_address_ids)
2629
- if provision is not None:
2630
- pulumi.set(__self__, "provision", provision)
2631
-
2632
- @property
2633
- @pulumi.getter(name="ipAddressIds")
2634
- def ip_address_ids(self) -> Optional[Sequence[str]]:
2635
- """
2636
- The number of IPs specified here limits the maximum size of the Pool - 100 dedicated nodes or 100 Spot/low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each element of this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}.
2637
- """
2638
- return pulumi.get(self, "ip_address_ids")
2639
-
2640
- @property
2641
- @pulumi.getter
2642
- def provision(self) -> Optional[str]:
2643
- """
2644
- The default value is BatchManaged
2645
- """
2646
- return pulumi.get(self, "provision")
2647
-
2648
-
2649
- @pulumi.output_type
2650
- class ResizeErrorResponse(dict):
2651
- def __init__(__self__, *,
2652
- code: str,
2653
- message: str,
2654
- details: Optional[Sequence['outputs.ResizeErrorResponse']] = None):
2655
- """
2656
- :param str code: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
2657
- :param str message: A message describing the error, intended to be suitable for display in a user interface.
2658
- """
2659
- pulumi.set(__self__, "code", code)
2660
- pulumi.set(__self__, "message", message)
2661
- if details is not None:
2662
- pulumi.set(__self__, "details", details)
2663
-
2664
- @property
2665
- @pulumi.getter
2666
- def code(self) -> str:
2667
- """
2668
- An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
2669
- """
2670
- return pulumi.get(self, "code")
2671
-
2672
- @property
2673
- @pulumi.getter
2674
- def message(self) -> str:
2675
- """
2676
- A message describing the error, intended to be suitable for display in a user interface.
2677
- """
2678
- return pulumi.get(self, "message")
2679
-
2680
- @property
2681
- @pulumi.getter
2682
- def details(self) -> Optional[Sequence['outputs.ResizeErrorResponse']]:
2683
- return pulumi.get(self, "details")
2684
-
2685
-
2686
- @pulumi.output_type
2687
- class ResizeOperationStatusResponse(dict):
2688
- """
2689
- Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed operation (if the AllocationState is Steady).
2690
- """
2691
- @staticmethod
2692
- def __key_warning(key: str):
2693
- suggest = None
2694
- if key == "nodeDeallocationOption":
2695
- suggest = "node_deallocation_option"
2696
- elif key == "resizeTimeout":
2697
- suggest = "resize_timeout"
2698
- elif key == "startTime":
2699
- suggest = "start_time"
2700
- elif key == "targetDedicatedNodes":
2701
- suggest = "target_dedicated_nodes"
2702
- elif key == "targetLowPriorityNodes":
2703
- suggest = "target_low_priority_nodes"
2704
-
2705
- if suggest:
2706
- pulumi.log.warn(f"Key '{key}' not found in ResizeOperationStatusResponse. Access the value via the '{suggest}' property getter instead.")
2707
-
2708
- def __getitem__(self, key: str) -> Any:
2709
- ResizeOperationStatusResponse.__key_warning(key)
2710
- return super().__getitem__(key)
2711
-
2712
- def get(self, key: str, default = None) -> Any:
2713
- ResizeOperationStatusResponse.__key_warning(key)
2714
- return super().get(key, default)
2715
-
2716
- def __init__(__self__, *,
2717
- errors: Optional[Sequence['outputs.ResizeErrorResponse']] = None,
2718
- node_deallocation_option: Optional[str] = None,
2719
- resize_timeout: Optional[str] = None,
2720
- start_time: Optional[str] = None,
2721
- target_dedicated_nodes: Optional[int] = None,
2722
- target_low_priority_nodes: Optional[int] = None):
2723
- """
2724
- Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed operation (if the AllocationState is Steady).
2725
- :param Sequence['ResizeErrorResponse'] errors: This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady.
2726
- :param str node_deallocation_option: The default value is requeue.
2727
- :param str resize_timeout: The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
2728
- """
2729
- if errors is not None:
2730
- pulumi.set(__self__, "errors", errors)
2731
- if node_deallocation_option is not None:
2732
- pulumi.set(__self__, "node_deallocation_option", node_deallocation_option)
2733
- if resize_timeout is not None:
2734
- pulumi.set(__self__, "resize_timeout", resize_timeout)
2735
- if start_time is not None:
2736
- pulumi.set(__self__, "start_time", start_time)
2737
- if target_dedicated_nodes is not None:
2738
- pulumi.set(__self__, "target_dedicated_nodes", target_dedicated_nodes)
2739
- if target_low_priority_nodes is not None:
2740
- pulumi.set(__self__, "target_low_priority_nodes", target_low_priority_nodes)
2741
-
2742
- @property
2743
- @pulumi.getter
2744
- def errors(self) -> Optional[Sequence['outputs.ResizeErrorResponse']]:
2745
- """
2746
- This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady.
2747
- """
2748
- return pulumi.get(self, "errors")
2749
-
2750
- @property
2751
- @pulumi.getter(name="nodeDeallocationOption")
2752
- def node_deallocation_option(self) -> Optional[str]:
2753
- """
2754
- The default value is requeue.
2755
- """
2756
- return pulumi.get(self, "node_deallocation_option")
2757
-
2758
- @property
2759
- @pulumi.getter(name="resizeTimeout")
2760
- def resize_timeout(self) -> Optional[str]:
2761
- """
2762
- The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
2763
- """
2764
- return pulumi.get(self, "resize_timeout")
2765
-
2766
- @property
2767
- @pulumi.getter(name="startTime")
2768
- def start_time(self) -> Optional[str]:
2769
- return pulumi.get(self, "start_time")
2770
-
2771
- @property
2772
- @pulumi.getter(name="targetDedicatedNodes")
2773
- def target_dedicated_nodes(self) -> Optional[int]:
2774
- return pulumi.get(self, "target_dedicated_nodes")
2775
-
2776
- @property
2777
- @pulumi.getter(name="targetLowPriorityNodes")
2778
- def target_low_priority_nodes(self) -> Optional[int]:
2779
- return pulumi.get(self, "target_low_priority_nodes")
2780
-
2781
-
2782
- @pulumi.output_type
2783
- class ResourceFileResponse(dict):
2784
- @staticmethod
2785
- def __key_warning(key: str):
2786
- suggest = None
2787
- if key == "autoStorageContainerName":
2788
- suggest = "auto_storage_container_name"
2789
- elif key == "blobPrefix":
2790
- suggest = "blob_prefix"
2791
- elif key == "fileMode":
2792
- suggest = "file_mode"
2793
- elif key == "filePath":
2794
- suggest = "file_path"
2795
- elif key == "httpUrl":
2796
- suggest = "http_url"
2797
- elif key == "identityReference":
2798
- suggest = "identity_reference"
2799
- elif key == "storageContainerUrl":
2800
- suggest = "storage_container_url"
2801
-
2802
- if suggest:
2803
- pulumi.log.warn(f"Key '{key}' not found in ResourceFileResponse. Access the value via the '{suggest}' property getter instead.")
2804
-
2805
- def __getitem__(self, key: str) -> Any:
2806
- ResourceFileResponse.__key_warning(key)
2807
- return super().__getitem__(key)
2808
-
2809
- def get(self, key: str, default = None) -> Any:
2810
- ResourceFileResponse.__key_warning(key)
2811
- return super().get(key, default)
2812
-
2813
- def __init__(__self__, *,
2814
- auto_storage_container_name: Optional[str] = None,
2815
- blob_prefix: Optional[str] = None,
2816
- file_mode: Optional[str] = None,
2817
- file_path: Optional[str] = None,
2818
- http_url: Optional[str] = None,
2819
- identity_reference: Optional['outputs.ComputeNodeIdentityReferenceResponse'] = None,
2820
- storage_container_url: Optional[str] = None):
2821
- """
2822
- :param str auto_storage_container_name: The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified.
2823
- :param str blob_prefix: The property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename or a subdirectory. If a prefix is not specified, all the files in the container will be downloaded.
2824
- :param str file_mode: This property applies only to files being downloaded to Linux compute nodes. It will be ignored if it is specified for a resourceFile which will be downloaded to a Windows node. If this property is not specified for a Linux node, then a default value of 0770 is applied to the file.
2825
- :param str file_path: If the httpUrl property is specified, the filePath is required and describes the path which the file will be downloaded to, including the filename. Otherwise, if the autoStorageContainerName or storageContainerUrl property is specified, filePath is optional and is the directory to download the files to. In the case where filePath is used as a directory, any directory structure already associated with the input data will be retained in full and appended to the specified filePath directory. The specified relative path cannot break out of the task's working directory (for example by using '..').
2826
- :param str http_url: The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL points to Azure Blob Storage, it must be readable from compute nodes. There are three ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, use a managed identity with read permission, or set the ACL for the blob or its container to allow public access.
2827
- :param 'ComputeNodeIdentityReferenceResponse' identity_reference: The reference to a user assigned identity associated with the Batch pool which a compute node will use.
2828
- :param str storage_container_url: The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable from compute nodes. There are three ways to get such a URL for a container in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the container, use a managed identity with read and list permissions, or set the ACL for the container to allow public access.
2829
- """
2830
- if auto_storage_container_name is not None:
2831
- pulumi.set(__self__, "auto_storage_container_name", auto_storage_container_name)
2832
- if blob_prefix is not None:
2833
- pulumi.set(__self__, "blob_prefix", blob_prefix)
2834
- if file_mode is not None:
2835
- pulumi.set(__self__, "file_mode", file_mode)
2836
- if file_path is not None:
2837
- pulumi.set(__self__, "file_path", file_path)
2838
- if http_url is not None:
2839
- pulumi.set(__self__, "http_url", http_url)
2840
- if identity_reference is not None:
2841
- pulumi.set(__self__, "identity_reference", identity_reference)
2842
- if storage_container_url is not None:
2843
- pulumi.set(__self__, "storage_container_url", storage_container_url)
2844
-
2845
- @property
2846
- @pulumi.getter(name="autoStorageContainerName")
2847
- def auto_storage_container_name(self) -> Optional[str]:
2848
- """
2849
- The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified.
2850
- """
2851
- return pulumi.get(self, "auto_storage_container_name")
2852
-
2853
- @property
2854
- @pulumi.getter(name="blobPrefix")
2855
- def blob_prefix(self) -> Optional[str]:
2856
- """
2857
- The property is valid only when autoStorageContainerName or storageContainerUrl is used. This prefix can be a partial filename or a subdirectory. If a prefix is not specified, all the files in the container will be downloaded.
2858
- """
2859
- return pulumi.get(self, "blob_prefix")
2860
-
2861
- @property
2862
- @pulumi.getter(name="fileMode")
2863
- def file_mode(self) -> Optional[str]:
2864
- """
2865
- This property applies only to files being downloaded to Linux compute nodes. It will be ignored if it is specified for a resourceFile which will be downloaded to a Windows node. If this property is not specified for a Linux node, then a default value of 0770 is applied to the file.
2866
- """
2867
- return pulumi.get(self, "file_mode")
2868
-
2869
- @property
2870
- @pulumi.getter(name="filePath")
2871
- def file_path(self) -> Optional[str]:
2872
- """
2873
- If the httpUrl property is specified, the filePath is required and describes the path which the file will be downloaded to, including the filename. Otherwise, if the autoStorageContainerName or storageContainerUrl property is specified, filePath is optional and is the directory to download the files to. In the case where filePath is used as a directory, any directory structure already associated with the input data will be retained in full and appended to the specified filePath directory. The specified relative path cannot break out of the task's working directory (for example by using '..').
2874
- """
2875
- return pulumi.get(self, "file_path")
2876
-
2877
- @property
2878
- @pulumi.getter(name="httpUrl")
2879
- def http_url(self) -> Optional[str]:
2880
- """
2881
- The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. If the URL points to Azure Blob Storage, it must be readable from compute nodes. There are three ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, use a managed identity with read permission, or set the ACL for the blob or its container to allow public access.
2882
- """
2883
- return pulumi.get(self, "http_url")
2884
-
2885
- @property
2886
- @pulumi.getter(name="identityReference")
2887
- def identity_reference(self) -> Optional['outputs.ComputeNodeIdentityReferenceResponse']:
2888
- """
2889
- The reference to a user assigned identity associated with the Batch pool which a compute node will use.
2890
- """
2891
- return pulumi.get(self, "identity_reference")
2892
-
2893
- @property
2894
- @pulumi.getter(name="storageContainerUrl")
2895
- def storage_container_url(self) -> Optional[str]:
2896
- """
2897
- The autoStorageContainerName, storageContainerUrl and httpUrl properties are mutually exclusive and one of them must be specified. This URL must be readable and listable from compute nodes. There are three ways to get such a URL for a container in Azure storage: include a Shared Access Signature (SAS) granting read and list permissions on the container, use a managed identity with read and list permissions, or set the ACL for the container to allow public access.
2898
- """
2899
- return pulumi.get(self, "storage_container_url")
2900
-
2901
-
2902
- @pulumi.output_type
2903
- class RollingUpgradePolicyResponse(dict):
2904
- """
2905
- The configuration parameters used while performing a rolling upgrade.
2906
- """
2907
- @staticmethod
2908
- def __key_warning(key: str):
2909
- suggest = None
2910
- if key == "enableCrossZoneUpgrade":
2911
- suggest = "enable_cross_zone_upgrade"
2912
- elif key == "maxBatchInstancePercent":
2913
- suggest = "max_batch_instance_percent"
2914
- elif key == "maxUnhealthyInstancePercent":
2915
- suggest = "max_unhealthy_instance_percent"
2916
- elif key == "maxUnhealthyUpgradedInstancePercent":
2917
- suggest = "max_unhealthy_upgraded_instance_percent"
2918
- elif key == "pauseTimeBetweenBatches":
2919
- suggest = "pause_time_between_batches"
2920
- elif key == "prioritizeUnhealthyInstances":
2921
- suggest = "prioritize_unhealthy_instances"
2922
- elif key == "rollbackFailedInstancesOnPolicyBreach":
2923
- suggest = "rollback_failed_instances_on_policy_breach"
2924
-
2925
- if suggest:
2926
- pulumi.log.warn(f"Key '{key}' not found in RollingUpgradePolicyResponse. Access the value via the '{suggest}' property getter instead.")
2927
-
2928
- def __getitem__(self, key: str) -> Any:
2929
- RollingUpgradePolicyResponse.__key_warning(key)
2930
- return super().__getitem__(key)
2931
-
2932
- def get(self, key: str, default = None) -> Any:
2933
- RollingUpgradePolicyResponse.__key_warning(key)
2934
- return super().get(key, default)
2935
-
2936
- def __init__(__self__, *,
2937
- enable_cross_zone_upgrade: Optional[bool] = None,
2938
- max_batch_instance_percent: Optional[int] = None,
2939
- max_unhealthy_instance_percent: Optional[int] = None,
2940
- max_unhealthy_upgraded_instance_percent: Optional[int] = None,
2941
- pause_time_between_batches: Optional[str] = None,
2942
- prioritize_unhealthy_instances: Optional[bool] = None,
2943
- rollback_failed_instances_on_policy_breach: Optional[bool] = None):
2944
- """
2945
- The configuration parameters used while performing a rolling upgrade.
2946
- :param bool enable_cross_zone_upgrade: Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. If this field is not set, Azure Azure Batch will not set its default value. The value of enableCrossZoneUpgrade on the created VirtualMachineScaleSet will be decided by the default configurations on VirtualMachineScaleSet. This field is able to be set to true or false only when using NodePlacementConfiguration as Zonal.
2947
- :param int max_batch_instance_percent: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent.
2948
- :param int max_unhealthy_instance_percent: The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent.
2949
- :param int max_unhealthy_upgraded_instance_percent: The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The value of this field should be between 0 and 100, inclusive.
2950
- :param str pause_time_between_batches: The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format.
2951
- :param bool prioritize_unhealthy_instances: Upgrade all unhealthy instances in a scale set before any healthy instances.
2952
- :param bool rollback_failed_instances_on_policy_breach: Rollback failed instances to previous model if the Rolling Upgrade policy is violated.
2953
- """
2954
- if enable_cross_zone_upgrade is not None:
2955
- pulumi.set(__self__, "enable_cross_zone_upgrade", enable_cross_zone_upgrade)
2956
- if max_batch_instance_percent is not None:
2957
- pulumi.set(__self__, "max_batch_instance_percent", max_batch_instance_percent)
2958
- if max_unhealthy_instance_percent is not None:
2959
- pulumi.set(__self__, "max_unhealthy_instance_percent", max_unhealthy_instance_percent)
2960
- if max_unhealthy_upgraded_instance_percent is not None:
2961
- pulumi.set(__self__, "max_unhealthy_upgraded_instance_percent", max_unhealthy_upgraded_instance_percent)
2962
- if pause_time_between_batches is not None:
2963
- pulumi.set(__self__, "pause_time_between_batches", pause_time_between_batches)
2964
- if prioritize_unhealthy_instances is not None:
2965
- pulumi.set(__self__, "prioritize_unhealthy_instances", prioritize_unhealthy_instances)
2966
- if rollback_failed_instances_on_policy_breach is not None:
2967
- pulumi.set(__self__, "rollback_failed_instances_on_policy_breach", rollback_failed_instances_on_policy_breach)
2968
-
2969
- @property
2970
- @pulumi.getter(name="enableCrossZoneUpgrade")
2971
- def enable_cross_zone_upgrade(self) -> Optional[bool]:
2972
- """
2973
- Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. If this field is not set, Azure Azure Batch will not set its default value. The value of enableCrossZoneUpgrade on the created VirtualMachineScaleSet will be decided by the default configurations on VirtualMachineScaleSet. This field is able to be set to true or false only when using NodePlacementConfiguration as Zonal.
2974
- """
2975
- return pulumi.get(self, "enable_cross_zone_upgrade")
2976
-
2977
- @property
2978
- @pulumi.getter(name="maxBatchInstancePercent")
2979
- def max_batch_instance_percent(self) -> Optional[int]:
2980
- """
2981
- The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent.
2982
- """
2983
- return pulumi.get(self, "max_batch_instance_percent")
2984
-
2985
- @property
2986
- @pulumi.getter(name="maxUnhealthyInstancePercent")
2987
- def max_unhealthy_instance_percent(self) -> Optional[int]:
2988
- """
2989
- The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent.
2990
- """
2991
- return pulumi.get(self, "max_unhealthy_instance_percent")
2992
-
2993
- @property
2994
- @pulumi.getter(name="maxUnhealthyUpgradedInstancePercent")
2995
- def max_unhealthy_upgraded_instance_percent(self) -> Optional[int]:
2996
- """
2997
- The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The value of this field should be between 0 and 100, inclusive.
2998
- """
2999
- return pulumi.get(self, "max_unhealthy_upgraded_instance_percent")
3000
-
3001
- @property
3002
- @pulumi.getter(name="pauseTimeBetweenBatches")
3003
- def pause_time_between_batches(self) -> Optional[str]:
3004
- """
3005
- The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format.
3006
- """
3007
- return pulumi.get(self, "pause_time_between_batches")
3008
-
3009
- @property
3010
- @pulumi.getter(name="prioritizeUnhealthyInstances")
3011
- def prioritize_unhealthy_instances(self) -> Optional[bool]:
3012
- """
3013
- Upgrade all unhealthy instances in a scale set before any healthy instances.
3014
- """
3015
- return pulumi.get(self, "prioritize_unhealthy_instances")
3016
-
3017
- @property
3018
- @pulumi.getter(name="rollbackFailedInstancesOnPolicyBreach")
3019
- def rollback_failed_instances_on_policy_breach(self) -> Optional[bool]:
3020
- """
3021
- Rollback failed instances to previous model if the Rolling Upgrade policy is violated.
3022
- """
3023
- return pulumi.get(self, "rollback_failed_instances_on_policy_breach")
3024
-
3025
-
3026
- @pulumi.output_type
3027
- class ScaleSettingsResponse(dict):
3028
- """
3029
- Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
3030
- """
3031
- @staticmethod
3032
- def __key_warning(key: str):
3033
- suggest = None
3034
- if key == "autoScale":
3035
- suggest = "auto_scale"
3036
- elif key == "fixedScale":
3037
- suggest = "fixed_scale"
3038
-
3039
- if suggest:
3040
- pulumi.log.warn(f"Key '{key}' not found in ScaleSettingsResponse. Access the value via the '{suggest}' property getter instead.")
3041
-
3042
- def __getitem__(self, key: str) -> Any:
3043
- ScaleSettingsResponse.__key_warning(key)
3044
- return super().__getitem__(key)
3045
-
3046
- def get(self, key: str, default = None) -> Any:
3047
- ScaleSettingsResponse.__key_warning(key)
3048
- return super().get(key, default)
3049
-
3050
- def __init__(__self__, *,
3051
- auto_scale: Optional['outputs.AutoScaleSettingsResponse'] = None,
3052
- fixed_scale: Optional['outputs.FixedScaleSettingsResponse'] = None):
3053
- """
3054
- Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
3055
- :param 'AutoScaleSettingsResponse' auto_scale: This property and fixedScale are mutually exclusive and one of the properties must be specified.
3056
- :param 'FixedScaleSettingsResponse' fixed_scale: This property and autoScale are mutually exclusive and one of the properties must be specified.
3057
- """
3058
- if auto_scale is not None:
3059
- pulumi.set(__self__, "auto_scale", auto_scale)
3060
- if fixed_scale is not None:
3061
- pulumi.set(__self__, "fixed_scale", fixed_scale)
3062
-
3063
- @property
3064
- @pulumi.getter(name="autoScale")
3065
- def auto_scale(self) -> Optional['outputs.AutoScaleSettingsResponse']:
3066
- """
3067
- This property and fixedScale are mutually exclusive and one of the properties must be specified.
3068
- """
3069
- return pulumi.get(self, "auto_scale")
3070
-
3071
- @property
3072
- @pulumi.getter(name="fixedScale")
3073
- def fixed_scale(self) -> Optional['outputs.FixedScaleSettingsResponse']:
3074
- """
3075
- This property and autoScale are mutually exclusive and one of the properties must be specified.
3076
- """
3077
- return pulumi.get(self, "fixed_scale")
3078
-
3079
-
3080
- @pulumi.output_type
3081
- class SecurityProfileResponse(dict):
3082
- """
3083
- Specifies the security profile settings for the virtual machine or virtual machine scale set.
3084
- """
3085
- @staticmethod
3086
- def __key_warning(key: str):
3087
- suggest = None
3088
- if key == "encryptionAtHost":
3089
- suggest = "encryption_at_host"
3090
- elif key == "securityType":
3091
- suggest = "security_type"
3092
- elif key == "uefiSettings":
3093
- suggest = "uefi_settings"
3094
-
3095
- if suggest:
3096
- pulumi.log.warn(f"Key '{key}' not found in SecurityProfileResponse. Access the value via the '{suggest}' property getter instead.")
3097
-
3098
- def __getitem__(self, key: str) -> Any:
3099
- SecurityProfileResponse.__key_warning(key)
3100
- return super().__getitem__(key)
3101
-
3102
- def get(self, key: str, default = None) -> Any:
3103
- SecurityProfileResponse.__key_warning(key)
3104
- return super().get(key, default)
3105
-
3106
- def __init__(__self__, *,
3107
- encryption_at_host: Optional[bool] = None,
3108
- security_type: Optional[str] = None,
3109
- uefi_settings: Optional['outputs.UefiSettingsResponse'] = None):
3110
- """
3111
- Specifies the security profile settings for the virtual machine or virtual machine scale set.
3112
- :param bool encryption_at_host: This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself.
3113
- :param 'UefiSettingsResponse' uefi_settings: Specifies the security settings like secure boot and vTPM used while creating the virtual machine.
3114
- """
3115
- if encryption_at_host is not None:
3116
- pulumi.set(__self__, "encryption_at_host", encryption_at_host)
3117
- if security_type is not None:
3118
- pulumi.set(__self__, "security_type", security_type)
3119
- if uefi_settings is not None:
3120
- pulumi.set(__self__, "uefi_settings", uefi_settings)
3121
-
3122
- @property
3123
- @pulumi.getter(name="encryptionAtHost")
3124
- def encryption_at_host(self) -> Optional[bool]:
3125
- """
3126
- This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself.
3127
- """
3128
- return pulumi.get(self, "encryption_at_host")
3129
-
3130
- @property
3131
- @pulumi.getter(name="securityType")
3132
- def security_type(self) -> Optional[str]:
3133
- return pulumi.get(self, "security_type")
3134
-
3135
- @property
3136
- @pulumi.getter(name="uefiSettings")
3137
- def uefi_settings(self) -> Optional['outputs.UefiSettingsResponse']:
3138
- """
3139
- Specifies the security settings like secure boot and vTPM used while creating the virtual machine.
3140
- """
3141
- return pulumi.get(self, "uefi_settings")
3142
-
3143
-
3144
- @pulumi.output_type
3145
- class ServiceArtifactReferenceResponse(dict):
3146
- """
3147
- Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version.
3148
- """
3149
- def __init__(__self__, *,
3150
- id: str):
3151
- """
3152
- Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version.
3153
- :param str id: The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}
3154
- """
3155
- pulumi.set(__self__, "id", id)
3156
-
3157
- @property
3158
- @pulumi.getter
3159
- def id(self) -> str:
3160
- """
3161
- The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}
3162
- """
3163
- return pulumi.get(self, "id")
3164
-
3165
-
3166
- @pulumi.output_type
3167
- class StartTaskResponse(dict):
3168
- """
3169
- In some cases the start task may be re-run even though the node was not rebooted. Due to this, start tasks should be idempotent and exit gracefully if the setup they're performing has already been done. Special care should be taken to avoid start tasks which create breakaway process or install/launch services from the start task working directory, as this will block Batch from being able to re-run the start task.
3170
- """
3171
- @staticmethod
3172
- def __key_warning(key: str):
3173
- suggest = None
3174
- if key == "commandLine":
3175
- suggest = "command_line"
3176
- elif key == "containerSettings":
3177
- suggest = "container_settings"
3178
- elif key == "environmentSettings":
3179
- suggest = "environment_settings"
3180
- elif key == "maxTaskRetryCount":
3181
- suggest = "max_task_retry_count"
3182
- elif key == "resourceFiles":
3183
- suggest = "resource_files"
3184
- elif key == "userIdentity":
3185
- suggest = "user_identity"
3186
- elif key == "waitForSuccess":
3187
- suggest = "wait_for_success"
3188
-
3189
- if suggest:
3190
- pulumi.log.warn(f"Key '{key}' not found in StartTaskResponse. Access the value via the '{suggest}' property getter instead.")
3191
-
3192
- def __getitem__(self, key: str) -> Any:
3193
- StartTaskResponse.__key_warning(key)
3194
- return super().__getitem__(key)
3195
-
3196
- def get(self, key: str, default = None) -> Any:
3197
- StartTaskResponse.__key_warning(key)
3198
- return super().get(key, default)
3199
-
3200
- def __init__(__self__, *,
3201
- command_line: Optional[str] = None,
3202
- container_settings: Optional['outputs.TaskContainerSettingsResponse'] = None,
3203
- environment_settings: Optional[Sequence['outputs.EnvironmentSettingResponse']] = None,
3204
- max_task_retry_count: Optional[int] = None,
3205
- resource_files: Optional[Sequence['outputs.ResourceFileResponse']] = None,
3206
- user_identity: Optional['outputs.UserIdentityResponse'] = None,
3207
- wait_for_success: Optional[bool] = None):
3208
- """
3209
- In some cases the start task may be re-run even though the node was not rebooted. Due to this, start tasks should be idempotent and exit gracefully if the setup they're performing has already been done. Special care should be taken to avoid start tasks which create breakaway process or install/launch services from the start task working directory, as this will block Batch from being able to re-run the start task.
3210
- :param str command_line: The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux. Required if any other properties of the startTask are specified.
3211
- :param 'TaskContainerSettingsResponse' container_settings: When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all task environment variables are mapped into the container, and the task command line is executed in the container.
3212
- :param int max_task_retry_count: The Batch service retries a task if its exit code is nonzero. Note that this value specifically controls the number of retries. The Batch service will try the task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries the task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry the task. If the maximum retry count is -1, the Batch service retries the task without limit. Default is 0
3213
- :param 'UserIdentityResponse' user_identity: If omitted, the task runs as a non-administrative user unique to the task.
3214
- :param bool wait_for_success: If true and the start task fails on a compute node, the Batch service retries the start task up to its maximum retry count (maxTaskRetryCount). If the task has still not completed successfully after all retries, then the Batch service marks the compute node unusable, and will not schedule tasks to it. This condition can be detected via the node state and scheduling error detail. If false, the Batch service will not wait for the start task to complete. In this case, other tasks can start executing on the compute node while the start task is still running; and even if the start task fails, new tasks will continue to be scheduled on the node. The default is true.
3215
- """
3216
- if command_line is not None:
3217
- pulumi.set(__self__, "command_line", command_line)
3218
- if container_settings is not None:
3219
- pulumi.set(__self__, "container_settings", container_settings)
3220
- if environment_settings is not None:
3221
- pulumi.set(__self__, "environment_settings", environment_settings)
3222
- if max_task_retry_count is None:
3223
- max_task_retry_count = 0
3224
- if max_task_retry_count is not None:
3225
- pulumi.set(__self__, "max_task_retry_count", max_task_retry_count)
3226
- if resource_files is not None:
3227
- pulumi.set(__self__, "resource_files", resource_files)
3228
- if user_identity is not None:
3229
- pulumi.set(__self__, "user_identity", user_identity)
3230
- if wait_for_success is not None:
3231
- pulumi.set(__self__, "wait_for_success", wait_for_success)
3232
-
3233
- @property
3234
- @pulumi.getter(name="commandLine")
3235
- def command_line(self) -> Optional[str]:
3236
- """
3237
- The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux. Required if any other properties of the startTask are specified.
3238
- """
3239
- return pulumi.get(self, "command_line")
3240
-
3241
- @property
3242
- @pulumi.getter(name="containerSettings")
3243
- def container_settings(self) -> Optional['outputs.TaskContainerSettingsResponse']:
3244
- """
3245
- When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all task environment variables are mapped into the container, and the task command line is executed in the container.
3246
- """
3247
- return pulumi.get(self, "container_settings")
3248
-
3249
- @property
3250
- @pulumi.getter(name="environmentSettings")
3251
- def environment_settings(self) -> Optional[Sequence['outputs.EnvironmentSettingResponse']]:
3252
- return pulumi.get(self, "environment_settings")
3253
-
3254
- @property
3255
- @pulumi.getter(name="maxTaskRetryCount")
3256
- def max_task_retry_count(self) -> Optional[int]:
3257
- """
3258
- The Batch service retries a task if its exit code is nonzero. Note that this value specifically controls the number of retries. The Batch service will try the task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries the task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry the task. If the maximum retry count is -1, the Batch service retries the task without limit. Default is 0
3259
- """
3260
- return pulumi.get(self, "max_task_retry_count")
3261
-
3262
- @property
3263
- @pulumi.getter(name="resourceFiles")
3264
- def resource_files(self) -> Optional[Sequence['outputs.ResourceFileResponse']]:
3265
- return pulumi.get(self, "resource_files")
3266
-
3267
- @property
3268
- @pulumi.getter(name="userIdentity")
3269
- def user_identity(self) -> Optional['outputs.UserIdentityResponse']:
3270
- """
3271
- If omitted, the task runs as a non-administrative user unique to the task.
3272
- """
3273
- return pulumi.get(self, "user_identity")
3274
-
3275
- @property
3276
- @pulumi.getter(name="waitForSuccess")
3277
- def wait_for_success(self) -> Optional[bool]:
3278
- """
3279
- If true and the start task fails on a compute node, the Batch service retries the start task up to its maximum retry count (maxTaskRetryCount). If the task has still not completed successfully after all retries, then the Batch service marks the compute node unusable, and will not schedule tasks to it. This condition can be detected via the node state and scheduling error detail. If false, the Batch service will not wait for the start task to complete. In this case, other tasks can start executing on the compute node while the start task is still running; and even if the start task fails, new tasks will continue to be scheduled on the node. The default is true.
3280
- """
3281
- return pulumi.get(self, "wait_for_success")
3282
-
3283
-
3284
- @pulumi.output_type
3285
- class TaskContainerSettingsResponse(dict):
3286
- @staticmethod
3287
- def __key_warning(key: str):
3288
- suggest = None
3289
- if key == "imageName":
3290
- suggest = "image_name"
3291
- elif key == "containerHostBatchBindMounts":
3292
- suggest = "container_host_batch_bind_mounts"
3293
- elif key == "containerRunOptions":
3294
- suggest = "container_run_options"
3295
- elif key == "workingDirectory":
3296
- suggest = "working_directory"
3297
-
3298
- if suggest:
3299
- pulumi.log.warn(f"Key '{key}' not found in TaskContainerSettingsResponse. Access the value via the '{suggest}' property getter instead.")
3300
-
3301
- def __getitem__(self, key: str) -> Any:
3302
- TaskContainerSettingsResponse.__key_warning(key)
3303
- return super().__getitem__(key)
3304
-
3305
- def get(self, key: str, default = None) -> Any:
3306
- TaskContainerSettingsResponse.__key_warning(key)
3307
- return super().get(key, default)
3308
-
3309
- def __init__(__self__, *,
3310
- image_name: str,
3311
- container_host_batch_bind_mounts: Optional[Sequence['outputs.ContainerHostBatchBindMountEntryResponse']] = None,
3312
- container_run_options: Optional[str] = None,
3313
- registry: Optional['outputs.ContainerRegistryResponse'] = None,
3314
- working_directory: Optional[str] = None):
3315
- """
3316
- :param str image_name: This is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default.
3317
- :param Sequence['ContainerHostBatchBindMountEntryResponse'] container_host_batch_bind_mounts: If this array is null or be not present, container task will mount entire temporary disk drive in windows (or AZ_BATCH_NODE_ROOT_DIR in Linux). It won't' mount any data paths into container if this array is set as empty.
3318
- :param str container_run_options: These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.
3319
- :param 'ContainerRegistryResponse' registry: This setting can be omitted if was already provided at pool creation.
3320
- """
3321
- pulumi.set(__self__, "image_name", image_name)
3322
- if container_host_batch_bind_mounts is not None:
3323
- pulumi.set(__self__, "container_host_batch_bind_mounts", container_host_batch_bind_mounts)
3324
- if container_run_options is not None:
3325
- pulumi.set(__self__, "container_run_options", container_run_options)
3326
- if registry is not None:
3327
- pulumi.set(__self__, "registry", registry)
3328
- if working_directory is not None:
3329
- pulumi.set(__self__, "working_directory", working_directory)
3330
-
3331
- @property
3332
- @pulumi.getter(name="imageName")
3333
- def image_name(self) -> str:
3334
- """
3335
- This is the full image reference, as would be specified to "docker pull". If no tag is provided as part of the image name, the tag ":latest" is used as a default.
3336
- """
3337
- return pulumi.get(self, "image_name")
3338
-
3339
- @property
3340
- @pulumi.getter(name="containerHostBatchBindMounts")
3341
- def container_host_batch_bind_mounts(self) -> Optional[Sequence['outputs.ContainerHostBatchBindMountEntryResponse']]:
3342
- """
3343
- If this array is null or be not present, container task will mount entire temporary disk drive in windows (or AZ_BATCH_NODE_ROOT_DIR in Linux). It won't' mount any data paths into container if this array is set as empty.
3344
- """
3345
- return pulumi.get(self, "container_host_batch_bind_mounts")
3346
-
3347
- @property
3348
- @pulumi.getter(name="containerRunOptions")
3349
- def container_run_options(self) -> Optional[str]:
3350
- """
3351
- These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.
3352
- """
3353
- return pulumi.get(self, "container_run_options")
3354
-
3355
- @property
3356
- @pulumi.getter
3357
- def registry(self) -> Optional['outputs.ContainerRegistryResponse']:
3358
- """
3359
- This setting can be omitted if was already provided at pool creation.
3360
- """
3361
- return pulumi.get(self, "registry")
3362
-
3363
- @property
3364
- @pulumi.getter(name="workingDirectory")
3365
- def working_directory(self) -> Optional[str]:
3366
- return pulumi.get(self, "working_directory")
3367
-
3368
-
3369
- @pulumi.output_type
3370
- class TaskSchedulingPolicyResponse(dict):
3371
- @staticmethod
3372
- def __key_warning(key: str):
3373
- suggest = None
3374
- if key == "nodeFillType":
3375
- suggest = "node_fill_type"
3376
-
3377
- if suggest:
3378
- pulumi.log.warn(f"Key '{key}' not found in TaskSchedulingPolicyResponse. Access the value via the '{suggest}' property getter instead.")
3379
-
3380
- def __getitem__(self, key: str) -> Any:
3381
- TaskSchedulingPolicyResponse.__key_warning(key)
3382
- return super().__getitem__(key)
3383
-
3384
- def get(self, key: str, default = None) -> Any:
3385
- TaskSchedulingPolicyResponse.__key_warning(key)
3386
- return super().get(key, default)
3387
-
3388
- def __init__(__self__, *,
3389
- node_fill_type: Optional[str] = None):
3390
- if node_fill_type is None:
3391
- node_fill_type = 'Spread'
3392
- pulumi.set(__self__, "node_fill_type", node_fill_type)
3393
-
3394
- @property
3395
- @pulumi.getter(name="nodeFillType")
3396
- def node_fill_type(self) -> str:
3397
- return pulumi.get(self, "node_fill_type")
3398
-
3399
-
3400
- @pulumi.output_type
3401
- class UefiSettingsResponse(dict):
3402
- """
3403
- Specifies the security settings like secure boot and vTPM used while creating the virtual machine.
3404
- """
3405
- @staticmethod
3406
- def __key_warning(key: str):
3407
- suggest = None
3408
- if key == "secureBootEnabled":
3409
- suggest = "secure_boot_enabled"
3410
- elif key == "vTpmEnabled":
3411
- suggest = "v_tpm_enabled"
3412
-
3413
- if suggest:
3414
- pulumi.log.warn(f"Key '{key}' not found in UefiSettingsResponse. Access the value via the '{suggest}' property getter instead.")
3415
-
3416
- def __getitem__(self, key: str) -> Any:
3417
- UefiSettingsResponse.__key_warning(key)
3418
- return super().__getitem__(key)
3419
-
3420
- def get(self, key: str, default = None) -> Any:
3421
- UefiSettingsResponse.__key_warning(key)
3422
- return super().get(key, default)
3423
-
3424
- def __init__(__self__, *,
3425
- secure_boot_enabled: Optional[bool] = None,
3426
- v_tpm_enabled: Optional[bool] = None):
3427
- """
3428
- Specifies the security settings like secure boot and vTPM used while creating the virtual machine.
3429
- :param bool secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual machine.
3430
- :param bool v_tpm_enabled: Specifies whether vTPM should be enabled on the virtual machine.
3431
- """
3432
- if secure_boot_enabled is not None:
3433
- pulumi.set(__self__, "secure_boot_enabled", secure_boot_enabled)
3434
- if v_tpm_enabled is not None:
3435
- pulumi.set(__self__, "v_tpm_enabled", v_tpm_enabled)
3436
-
3437
- @property
3438
- @pulumi.getter(name="secureBootEnabled")
3439
- def secure_boot_enabled(self) -> Optional[bool]:
3440
- """
3441
- Specifies whether secure boot should be enabled on the virtual machine.
3442
- """
3443
- return pulumi.get(self, "secure_boot_enabled")
3444
-
3445
- @property
3446
- @pulumi.getter(name="vTpmEnabled")
3447
- def v_tpm_enabled(self) -> Optional[bool]:
3448
- """
3449
- Specifies whether vTPM should be enabled on the virtual machine.
3450
- """
3451
- return pulumi.get(self, "v_tpm_enabled")
3452
-
3453
-
3454
- @pulumi.output_type
3455
- class UpgradePolicyResponse(dict):
3456
- """
3457
- Describes an upgrade policy - automatic, manual, or rolling.
3458
- """
3459
- @staticmethod
3460
- def __key_warning(key: str):
3461
- suggest = None
3462
- if key == "automaticOSUpgradePolicy":
3463
- suggest = "automatic_os_upgrade_policy"
3464
- elif key == "rollingUpgradePolicy":
3465
- suggest = "rolling_upgrade_policy"
3466
-
3467
- if suggest:
3468
- pulumi.log.warn(f"Key '{key}' not found in UpgradePolicyResponse. Access the value via the '{suggest}' property getter instead.")
3469
-
3470
- def __getitem__(self, key: str) -> Any:
3471
- UpgradePolicyResponse.__key_warning(key)
3472
- return super().__getitem__(key)
3473
-
3474
- def get(self, key: str, default = None) -> Any:
3475
- UpgradePolicyResponse.__key_warning(key)
3476
- return super().get(key, default)
3477
-
3478
- def __init__(__self__, *,
3479
- mode: str,
3480
- automatic_os_upgrade_policy: Optional['outputs.AutomaticOSUpgradePolicyResponse'] = None,
3481
- rolling_upgrade_policy: Optional['outputs.RollingUpgradePolicyResponse'] = None):
3482
- """
3483
- Describes an upgrade policy - automatic, manual, or rolling.
3484
- :param 'AutomaticOSUpgradePolicyResponse' automatic_os_upgrade_policy: The configuration parameters used for performing automatic OS upgrade.
3485
- :param 'RollingUpgradePolicyResponse' rolling_upgrade_policy: The configuration parameters used while performing a rolling upgrade.
3486
- """
3487
- pulumi.set(__self__, "mode", mode)
3488
- if automatic_os_upgrade_policy is not None:
3489
- pulumi.set(__self__, "automatic_os_upgrade_policy", automatic_os_upgrade_policy)
3490
- if rolling_upgrade_policy is not None:
3491
- pulumi.set(__self__, "rolling_upgrade_policy", rolling_upgrade_policy)
3492
-
3493
- @property
3494
- @pulumi.getter
3495
- def mode(self) -> str:
3496
- return pulumi.get(self, "mode")
3497
-
3498
- @property
3499
- @pulumi.getter(name="automaticOSUpgradePolicy")
3500
- def automatic_os_upgrade_policy(self) -> Optional['outputs.AutomaticOSUpgradePolicyResponse']:
3501
- """
3502
- The configuration parameters used for performing automatic OS upgrade.
3503
- """
3504
- return pulumi.get(self, "automatic_os_upgrade_policy")
3505
-
3506
- @property
3507
- @pulumi.getter(name="rollingUpgradePolicy")
3508
- def rolling_upgrade_policy(self) -> Optional['outputs.RollingUpgradePolicyResponse']:
3509
- """
3510
- The configuration parameters used while performing a rolling upgrade.
3511
- """
3512
- return pulumi.get(self, "rolling_upgrade_policy")
3513
-
3514
-
3515
- @pulumi.output_type
3516
- class UserAccountResponse(dict):
3517
- @staticmethod
3518
- def __key_warning(key: str):
3519
- suggest = None
3520
- if key == "elevationLevel":
3521
- suggest = "elevation_level"
3522
- elif key == "linuxUserConfiguration":
3523
- suggest = "linux_user_configuration"
3524
- elif key == "windowsUserConfiguration":
3525
- suggest = "windows_user_configuration"
3526
-
3527
- if suggest:
3528
- pulumi.log.warn(f"Key '{key}' not found in UserAccountResponse. Access the value via the '{suggest}' property getter instead.")
3529
-
3530
- def __getitem__(self, key: str) -> Any:
3531
- UserAccountResponse.__key_warning(key)
3532
- return super().__getitem__(key)
3533
-
3534
- def get(self, key: str, default = None) -> Any:
3535
- UserAccountResponse.__key_warning(key)
3536
- return super().get(key, default)
3537
-
3538
- def __init__(__self__, *,
3539
- name: str,
3540
- password: str,
3541
- elevation_level: Optional[str] = None,
3542
- linux_user_configuration: Optional['outputs.LinuxUserConfigurationResponse'] = None,
3543
- windows_user_configuration: Optional['outputs.WindowsUserConfigurationResponse'] = None):
3544
- """
3545
- :param str elevation_level: nonAdmin - The auto user is a standard user without elevated access. admin - The auto user is a user with elevated access and operates with full Administrator permissions. The default value is nonAdmin.
3546
- :param 'LinuxUserConfigurationResponse' linux_user_configuration: This property is ignored if specified on a Windows pool. If not specified, the user is created with the default options.
3547
- :param 'WindowsUserConfigurationResponse' windows_user_configuration: This property can only be specified if the user is on a Windows pool. If not specified and on a Windows pool, the user is created with the default options.
3548
- """
3549
- pulumi.set(__self__, "name", name)
3550
- pulumi.set(__self__, "password", password)
3551
- if elevation_level is not None:
3552
- pulumi.set(__self__, "elevation_level", elevation_level)
3553
- if linux_user_configuration is not None:
3554
- pulumi.set(__self__, "linux_user_configuration", linux_user_configuration)
3555
- if windows_user_configuration is not None:
3556
- pulumi.set(__self__, "windows_user_configuration", windows_user_configuration)
3557
-
3558
- @property
3559
- @pulumi.getter
3560
- def name(self) -> str:
3561
- return pulumi.get(self, "name")
3562
-
3563
- @property
3564
- @pulumi.getter
3565
- def password(self) -> str:
3566
- return pulumi.get(self, "password")
3567
-
3568
- @property
3569
- @pulumi.getter(name="elevationLevel")
3570
- def elevation_level(self) -> Optional[str]:
3571
- """
3572
- nonAdmin - The auto user is a standard user without elevated access. admin - The auto user is a user with elevated access and operates with full Administrator permissions. The default value is nonAdmin.
3573
- """
3574
- return pulumi.get(self, "elevation_level")
3575
-
3576
- @property
3577
- @pulumi.getter(name="linuxUserConfiguration")
3578
- def linux_user_configuration(self) -> Optional['outputs.LinuxUserConfigurationResponse']:
3579
- """
3580
- This property is ignored if specified on a Windows pool. If not specified, the user is created with the default options.
3581
- """
3582
- return pulumi.get(self, "linux_user_configuration")
3583
-
3584
- @property
3585
- @pulumi.getter(name="windowsUserConfiguration")
3586
- def windows_user_configuration(self) -> Optional['outputs.WindowsUserConfigurationResponse']:
3587
- """
3588
- This property can only be specified if the user is on a Windows pool. If not specified and on a Windows pool, the user is created with the default options.
3589
- """
3590
- return pulumi.get(self, "windows_user_configuration")
3591
-
3592
-
3593
- @pulumi.output_type
3594
- class UserAssignedIdentitiesResponse(dict):
3595
- """
3596
- The list of associated user identities.
3597
- """
3598
- @staticmethod
3599
- def __key_warning(key: str):
3600
- suggest = None
3601
- if key == "clientId":
3602
- suggest = "client_id"
3603
- elif key == "principalId":
3604
- suggest = "principal_id"
3605
-
3606
- if suggest:
3607
- pulumi.log.warn(f"Key '{key}' not found in UserAssignedIdentitiesResponse. Access the value via the '{suggest}' property getter instead.")
3608
-
3609
- def __getitem__(self, key: str) -> Any:
3610
- UserAssignedIdentitiesResponse.__key_warning(key)
3611
- return super().__getitem__(key)
3612
-
3613
- def get(self, key: str, default = None) -> Any:
3614
- UserAssignedIdentitiesResponse.__key_warning(key)
3615
- return super().get(key, default)
3616
-
3617
- def __init__(__self__, *,
3618
- client_id: str,
3619
- principal_id: str):
3620
- """
3621
- The list of associated user identities.
3622
- :param str client_id: The client id of user assigned identity.
3623
- :param str principal_id: The principal id of user assigned identity.
3624
- """
3625
- pulumi.set(__self__, "client_id", client_id)
3626
- pulumi.set(__self__, "principal_id", principal_id)
3627
-
3628
- @property
3629
- @pulumi.getter(name="clientId")
3630
- def client_id(self) -> str:
3631
- """
3632
- The client id of user assigned identity.
3633
- """
3634
- return pulumi.get(self, "client_id")
3635
-
3636
- @property
3637
- @pulumi.getter(name="principalId")
3638
- def principal_id(self) -> str:
3639
- """
3640
- The principal id of user assigned identity.
3641
- """
3642
- return pulumi.get(self, "principal_id")
3643
-
3644
-
3645
- @pulumi.output_type
3646
- class UserIdentityResponse(dict):
3647
- """
3648
- Specify either the userName or autoUser property, but not both.
3649
- """
3650
- @staticmethod
3651
- def __key_warning(key: str):
3652
- suggest = None
3653
- if key == "autoUser":
3654
- suggest = "auto_user"
3655
- elif key == "userName":
3656
- suggest = "user_name"
3657
-
3658
- if suggest:
3659
- pulumi.log.warn(f"Key '{key}' not found in UserIdentityResponse. Access the value via the '{suggest}' property getter instead.")
3660
-
3661
- def __getitem__(self, key: str) -> Any:
3662
- UserIdentityResponse.__key_warning(key)
3663
- return super().__getitem__(key)
3664
-
3665
- def get(self, key: str, default = None) -> Any:
3666
- UserIdentityResponse.__key_warning(key)
3667
- return super().get(key, default)
3668
-
3669
- def __init__(__self__, *,
3670
- auto_user: Optional['outputs.AutoUserSpecificationResponse'] = None,
3671
- user_name: Optional[str] = None):
3672
- """
3673
- Specify either the userName or autoUser property, but not both.
3674
- :param 'AutoUserSpecificationResponse' auto_user: The userName and autoUser properties are mutually exclusive; you must specify one but not both.
3675
- :param str user_name: The userName and autoUser properties are mutually exclusive; you must specify one but not both.
3676
- """
3677
- if auto_user is not None:
3678
- pulumi.set(__self__, "auto_user", auto_user)
3679
- if user_name is not None:
3680
- pulumi.set(__self__, "user_name", user_name)
3681
-
3682
- @property
3683
- @pulumi.getter(name="autoUser")
3684
- def auto_user(self) -> Optional['outputs.AutoUserSpecificationResponse']:
3685
- """
3686
- The userName and autoUser properties are mutually exclusive; you must specify one but not both.
3687
- """
3688
- return pulumi.get(self, "auto_user")
3689
-
3690
- @property
3691
- @pulumi.getter(name="userName")
3692
- def user_name(self) -> Optional[str]:
3693
- """
3694
- The userName and autoUser properties are mutually exclusive; you must specify one but not both.
3695
- """
3696
- return pulumi.get(self, "user_name")
3697
-
3698
-
3699
- @pulumi.output_type
3700
- class VMDiskSecurityProfileResponse(dict):
3701
- """
3702
- Specifies the security profile settings for the managed disk. **Note**: It can only be set for Confidential VMs and is required when using Confidential VMs.
3703
- """
3704
- @staticmethod
3705
- def __key_warning(key: str):
3706
- suggest = None
3707
- if key == "securityEncryptionType":
3708
- suggest = "security_encryption_type"
3709
-
3710
- if suggest:
3711
- pulumi.log.warn(f"Key '{key}' not found in VMDiskSecurityProfileResponse. Access the value via the '{suggest}' property getter instead.")
3712
-
3713
- def __getitem__(self, key: str) -> Any:
3714
- VMDiskSecurityProfileResponse.__key_warning(key)
3715
- return super().__getitem__(key)
3716
-
3717
- def get(self, key: str, default = None) -> Any:
3718
- VMDiskSecurityProfileResponse.__key_warning(key)
3719
- return super().get(key, default)
3720
-
3721
- def __init__(__self__, *,
3722
- security_encryption_type: Optional[str] = None):
3723
- """
3724
- Specifies the security profile settings for the managed disk. **Note**: It can only be set for Confidential VMs and is required when using Confidential VMs.
3725
- """
3726
- if security_encryption_type is not None:
3727
- pulumi.set(__self__, "security_encryption_type", security_encryption_type)
3728
-
3729
- @property
3730
- @pulumi.getter(name="securityEncryptionType")
3731
- def security_encryption_type(self) -> Optional[str]:
3732
- return pulumi.get(self, "security_encryption_type")
3733
-
3734
-
3735
- @pulumi.output_type
3736
- class VMExtensionResponse(dict):
3737
- @staticmethod
3738
- def __key_warning(key: str):
3739
- suggest = None
3740
- if key == "autoUpgradeMinorVersion":
3741
- suggest = "auto_upgrade_minor_version"
3742
- elif key == "enableAutomaticUpgrade":
3743
- suggest = "enable_automatic_upgrade"
3744
- elif key == "protectedSettings":
3745
- suggest = "protected_settings"
3746
- elif key == "provisionAfterExtensions":
3747
- suggest = "provision_after_extensions"
3748
- elif key == "typeHandlerVersion":
3749
- suggest = "type_handler_version"
3750
-
3751
- if suggest:
3752
- pulumi.log.warn(f"Key '{key}' not found in VMExtensionResponse. Access the value via the '{suggest}' property getter instead.")
3753
-
3754
- def __getitem__(self, key: str) -> Any:
3755
- VMExtensionResponse.__key_warning(key)
3756
- return super().__getitem__(key)
3757
-
3758
- def get(self, key: str, default = None) -> Any:
3759
- VMExtensionResponse.__key_warning(key)
3760
- return super().get(key, default)
3761
-
3762
- def __init__(__self__, *,
3763
- name: str,
3764
- publisher: str,
3765
- type: str,
3766
- auto_upgrade_minor_version: Optional[bool] = None,
3767
- enable_automatic_upgrade: Optional[bool] = None,
3768
- protected_settings: Optional[Any] = None,
3769
- provision_after_extensions: Optional[Sequence[str]] = None,
3770
- settings: Optional[Any] = None,
3771
- type_handler_version: Optional[str] = None):
3772
- """
3773
- :param bool auto_upgrade_minor_version: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
3774
- :param bool enable_automatic_upgrade: Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
3775
- :param Any protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
3776
- :param Sequence[str] provision_after_extensions: Collection of extension names after which this extension needs to be provisioned.
3777
- """
3778
- pulumi.set(__self__, "name", name)
3779
- pulumi.set(__self__, "publisher", publisher)
3780
- pulumi.set(__self__, "type", type)
3781
- if auto_upgrade_minor_version is not None:
3782
- pulumi.set(__self__, "auto_upgrade_minor_version", auto_upgrade_minor_version)
3783
- if enable_automatic_upgrade is not None:
3784
- pulumi.set(__self__, "enable_automatic_upgrade", enable_automatic_upgrade)
3785
- if protected_settings is not None:
3786
- pulumi.set(__self__, "protected_settings", protected_settings)
3787
- if provision_after_extensions is not None:
3788
- pulumi.set(__self__, "provision_after_extensions", provision_after_extensions)
3789
- if settings is not None:
3790
- pulumi.set(__self__, "settings", settings)
3791
- if type_handler_version is not None:
3792
- pulumi.set(__self__, "type_handler_version", type_handler_version)
3793
-
3794
- @property
3795
- @pulumi.getter
3796
- def name(self) -> str:
3797
- return pulumi.get(self, "name")
3798
-
3799
- @property
3800
- @pulumi.getter
3801
- def publisher(self) -> str:
3802
- return pulumi.get(self, "publisher")
3803
-
3804
- @property
3805
- @pulumi.getter
3806
- def type(self) -> str:
3807
- return pulumi.get(self, "type")
3808
-
3809
- @property
3810
- @pulumi.getter(name="autoUpgradeMinorVersion")
3811
- def auto_upgrade_minor_version(self) -> Optional[bool]:
3812
- """
3813
- Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
3814
- """
3815
- return pulumi.get(self, "auto_upgrade_minor_version")
3816
-
3817
- @property
3818
- @pulumi.getter(name="enableAutomaticUpgrade")
3819
- def enable_automatic_upgrade(self) -> Optional[bool]:
3820
- """
3821
- Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
3822
- """
3823
- return pulumi.get(self, "enable_automatic_upgrade")
3824
-
3825
- @property
3826
- @pulumi.getter(name="protectedSettings")
3827
- def protected_settings(self) -> Optional[Any]:
3828
- """
3829
- The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
3830
- """
3831
- return pulumi.get(self, "protected_settings")
3832
-
3833
- @property
3834
- @pulumi.getter(name="provisionAfterExtensions")
3835
- def provision_after_extensions(self) -> Optional[Sequence[str]]:
3836
- """
3837
- Collection of extension names after which this extension needs to be provisioned.
3838
- """
3839
- return pulumi.get(self, "provision_after_extensions")
3840
-
3841
- @property
3842
- @pulumi.getter
3843
- def settings(self) -> Optional[Any]:
3844
- return pulumi.get(self, "settings")
3845
-
3846
- @property
3847
- @pulumi.getter(name="typeHandlerVersion")
3848
- def type_handler_version(self) -> Optional[str]:
3849
- return pulumi.get(self, "type_handler_version")
3850
-
3851
-
3852
- @pulumi.output_type
3853
- class VirtualMachineConfigurationResponse(dict):
3854
- @staticmethod
3855
- def __key_warning(key: str):
3856
- suggest = None
3857
- if key == "imageReference":
3858
- suggest = "image_reference"
3859
- elif key == "nodeAgentSkuId":
3860
- suggest = "node_agent_sku_id"
3861
- elif key == "containerConfiguration":
3862
- suggest = "container_configuration"
3863
- elif key == "dataDisks":
3864
- suggest = "data_disks"
3865
- elif key == "diskEncryptionConfiguration":
3866
- suggest = "disk_encryption_configuration"
3867
- elif key == "licenseType":
3868
- suggest = "license_type"
3869
- elif key == "nodePlacementConfiguration":
3870
- suggest = "node_placement_configuration"
3871
- elif key == "osDisk":
3872
- suggest = "os_disk"
3873
- elif key == "securityProfile":
3874
- suggest = "security_profile"
3875
- elif key == "serviceArtifactReference":
3876
- suggest = "service_artifact_reference"
3877
- elif key == "windowsConfiguration":
3878
- suggest = "windows_configuration"
3879
-
3880
- if suggest:
3881
- pulumi.log.warn(f"Key '{key}' not found in VirtualMachineConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
3882
-
3883
- def __getitem__(self, key: str) -> Any:
3884
- VirtualMachineConfigurationResponse.__key_warning(key)
3885
- return super().__getitem__(key)
3886
-
3887
- def get(self, key: str, default = None) -> Any:
3888
- VirtualMachineConfigurationResponse.__key_warning(key)
3889
- return super().get(key, default)
3890
-
3891
- def __init__(__self__, *,
3892
- image_reference: 'outputs.ImageReferenceResponse',
3893
- node_agent_sku_id: str,
3894
- container_configuration: Optional['outputs.ContainerConfigurationResponse'] = None,
3895
- data_disks: Optional[Sequence['outputs.DataDiskResponse']] = None,
3896
- disk_encryption_configuration: Optional['outputs.DiskEncryptionConfigurationResponse'] = None,
3897
- extensions: Optional[Sequence['outputs.VMExtensionResponse']] = None,
3898
- license_type: Optional[str] = None,
3899
- node_placement_configuration: Optional['outputs.NodePlacementConfigurationResponse'] = None,
3900
- os_disk: Optional['outputs.OSDiskResponse'] = None,
3901
- security_profile: Optional['outputs.SecurityProfileResponse'] = None,
3902
- service_artifact_reference: Optional['outputs.ServiceArtifactReferenceResponse'] = None,
3903
- windows_configuration: Optional['outputs.WindowsConfigurationResponse'] = None):
3904
- """
3905
- :param str node_agent_sku_id: The Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the 'List supported node agent SKUs' operation.
3906
- :param 'ContainerConfigurationResponse' container_configuration: If specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it.
3907
- :param Sequence['DataDiskResponse'] data_disks: This property must be specified if the compute nodes in the pool need to have empty data disks attached to them.
3908
- :param 'DiskEncryptionConfigurationResponse' disk_encryption_configuration: If specified, encryption is performed on each node in the pool during node provisioning.
3909
- :param Sequence['VMExtensionResponse'] extensions: If specified, the extensions mentioned in this configuration will be installed on each node.
3910
- :param str license_type: This only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are:
3911
-
3912
- Windows_Server - The on-premises license is for Windows Server.
3913
- Windows_Client - The on-premises license is for Windows Client.
3914
- :param 'NodePlacementConfigurationResponse' node_placement_configuration: This configuration will specify rules on how nodes in the pool will be physically allocated.
3915
- :param 'OSDiskResponse' os_disk: Contains configuration for ephemeral OSDisk settings.
3916
- :param 'SecurityProfileResponse' security_profile: Specifies the security profile settings for the virtual machine or virtual machine scale set.
3917
- :param 'ServiceArtifactReferenceResponse' service_artifact_reference: The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}
3918
- :param 'WindowsConfigurationResponse' windows_configuration: This property must not be specified if the imageReference specifies a Linux OS image.
3919
- """
3920
- pulumi.set(__self__, "image_reference", image_reference)
3921
- pulumi.set(__self__, "node_agent_sku_id", node_agent_sku_id)
3922
- if container_configuration is not None:
3923
- pulumi.set(__self__, "container_configuration", container_configuration)
3924
- if data_disks is not None:
3925
- pulumi.set(__self__, "data_disks", data_disks)
3926
- if disk_encryption_configuration is not None:
3927
- pulumi.set(__self__, "disk_encryption_configuration", disk_encryption_configuration)
3928
- if extensions is not None:
3929
- pulumi.set(__self__, "extensions", extensions)
3930
- if license_type is not None:
3931
- pulumi.set(__self__, "license_type", license_type)
3932
- if node_placement_configuration is not None:
3933
- pulumi.set(__self__, "node_placement_configuration", node_placement_configuration)
3934
- if os_disk is not None:
3935
- pulumi.set(__self__, "os_disk", os_disk)
3936
- if security_profile is not None:
3937
- pulumi.set(__self__, "security_profile", security_profile)
3938
- if service_artifact_reference is not None:
3939
- pulumi.set(__self__, "service_artifact_reference", service_artifact_reference)
3940
- if windows_configuration is not None:
3941
- pulumi.set(__self__, "windows_configuration", windows_configuration)
3942
-
3943
- @property
3944
- @pulumi.getter(name="imageReference")
3945
- def image_reference(self) -> 'outputs.ImageReferenceResponse':
3946
- return pulumi.get(self, "image_reference")
3947
-
3948
- @property
3949
- @pulumi.getter(name="nodeAgentSkuId")
3950
- def node_agent_sku_id(self) -> str:
3951
- """
3952
- The Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the 'List supported node agent SKUs' operation.
3953
- """
3954
- return pulumi.get(self, "node_agent_sku_id")
3955
-
3956
- @property
3957
- @pulumi.getter(name="containerConfiguration")
3958
- def container_configuration(self) -> Optional['outputs.ContainerConfigurationResponse']:
3959
- """
3960
- If specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it.
3961
- """
3962
- return pulumi.get(self, "container_configuration")
3963
-
3964
- @property
3965
- @pulumi.getter(name="dataDisks")
3966
- def data_disks(self) -> Optional[Sequence['outputs.DataDiskResponse']]:
3967
- """
3968
- This property must be specified if the compute nodes in the pool need to have empty data disks attached to them.
3969
- """
3970
- return pulumi.get(self, "data_disks")
3971
-
3972
- @property
3973
- @pulumi.getter(name="diskEncryptionConfiguration")
3974
- def disk_encryption_configuration(self) -> Optional['outputs.DiskEncryptionConfigurationResponse']:
3975
- """
3976
- If specified, encryption is performed on each node in the pool during node provisioning.
3977
- """
3978
- return pulumi.get(self, "disk_encryption_configuration")
3979
-
3980
- @property
3981
- @pulumi.getter
3982
- def extensions(self) -> Optional[Sequence['outputs.VMExtensionResponse']]:
3983
- """
3984
- If specified, the extensions mentioned in this configuration will be installed on each node.
3985
- """
3986
- return pulumi.get(self, "extensions")
3987
-
3988
- @property
3989
- @pulumi.getter(name="licenseType")
3990
- def license_type(self) -> Optional[str]:
3991
- """
3992
- This only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are:
3993
-
3994
- Windows_Server - The on-premises license is for Windows Server.
3995
- Windows_Client - The on-premises license is for Windows Client.
3996
- """
3997
- return pulumi.get(self, "license_type")
3998
-
3999
- @property
4000
- @pulumi.getter(name="nodePlacementConfiguration")
4001
- def node_placement_configuration(self) -> Optional['outputs.NodePlacementConfigurationResponse']:
4002
- """
4003
- This configuration will specify rules on how nodes in the pool will be physically allocated.
4004
- """
4005
- return pulumi.get(self, "node_placement_configuration")
4006
-
4007
- @property
4008
- @pulumi.getter(name="osDisk")
4009
- def os_disk(self) -> Optional['outputs.OSDiskResponse']:
4010
- """
4011
- Contains configuration for ephemeral OSDisk settings.
4012
- """
4013
- return pulumi.get(self, "os_disk")
4014
-
4015
- @property
4016
- @pulumi.getter(name="securityProfile")
4017
- def security_profile(self) -> Optional['outputs.SecurityProfileResponse']:
4018
- """
4019
- Specifies the security profile settings for the virtual machine or virtual machine scale set.
4020
- """
4021
- return pulumi.get(self, "security_profile")
4022
-
4023
- @property
4024
- @pulumi.getter(name="serviceArtifactReference")
4025
- def service_artifact_reference(self) -> Optional['outputs.ServiceArtifactReferenceResponse']:
4026
- """
4027
- The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}
4028
- """
4029
- return pulumi.get(self, "service_artifact_reference")
4030
-
4031
- @property
4032
- @pulumi.getter(name="windowsConfiguration")
4033
- def windows_configuration(self) -> Optional['outputs.WindowsConfigurationResponse']:
4034
- """
4035
- This property must not be specified if the imageReference specifies a Linux OS image.
4036
- """
4037
- return pulumi.get(self, "windows_configuration")
4038
-
4039
-
4040
- @pulumi.output_type
4041
- class VirtualMachineFamilyCoreQuotaResponse(dict):
4042
- """
4043
- A VM Family and its associated core quota for the Batch account.
4044
- """
4045
- @staticmethod
4046
- def __key_warning(key: str):
4047
- suggest = None
4048
- if key == "coreQuota":
4049
- suggest = "core_quota"
4050
-
4051
- if suggest:
4052
- pulumi.log.warn(f"Key '{key}' not found in VirtualMachineFamilyCoreQuotaResponse. Access the value via the '{suggest}' property getter instead.")
4053
-
4054
- def __getitem__(self, key: str) -> Any:
4055
- VirtualMachineFamilyCoreQuotaResponse.__key_warning(key)
4056
- return super().__getitem__(key)
4057
-
4058
- def get(self, key: str, default = None) -> Any:
4059
- VirtualMachineFamilyCoreQuotaResponse.__key_warning(key)
4060
- return super().get(key, default)
4061
-
4062
- def __init__(__self__, *,
4063
- core_quota: int,
4064
- name: str):
4065
- """
4066
- A VM Family and its associated core quota for the Batch account.
4067
- :param int core_quota: The core quota for the VM family for the Batch account.
4068
- :param str name: The Virtual Machine family name.
4069
- """
4070
- pulumi.set(__self__, "core_quota", core_quota)
4071
- pulumi.set(__self__, "name", name)
4072
-
4073
- @property
4074
- @pulumi.getter(name="coreQuota")
4075
- def core_quota(self) -> int:
4076
- """
4077
- The core quota for the VM family for the Batch account.
4078
- """
4079
- return pulumi.get(self, "core_quota")
4080
-
4081
- @property
4082
- @pulumi.getter
4083
- def name(self) -> str:
4084
- """
4085
- The Virtual Machine family name.
4086
- """
4087
- return pulumi.get(self, "name")
4088
-
4089
-
4090
- @pulumi.output_type
4091
- class WindowsConfigurationResponse(dict):
4092
- @staticmethod
4093
- def __key_warning(key: str):
4094
- suggest = None
4095
- if key == "enableAutomaticUpdates":
4096
- suggest = "enable_automatic_updates"
4097
-
4098
- if suggest:
4099
- pulumi.log.warn(f"Key '{key}' not found in WindowsConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
4100
-
4101
- def __getitem__(self, key: str) -> Any:
4102
- WindowsConfigurationResponse.__key_warning(key)
4103
- return super().__getitem__(key)
4104
-
4105
- def get(self, key: str, default = None) -> Any:
4106
- WindowsConfigurationResponse.__key_warning(key)
4107
- return super().get(key, default)
4108
-
4109
- def __init__(__self__, *,
4110
- enable_automatic_updates: Optional[bool] = None):
4111
- """
4112
- :param bool enable_automatic_updates: If omitted, the default value is true.
4113
- """
4114
- if enable_automatic_updates is not None:
4115
- pulumi.set(__self__, "enable_automatic_updates", enable_automatic_updates)
4116
-
4117
- @property
4118
- @pulumi.getter(name="enableAutomaticUpdates")
4119
- def enable_automatic_updates(self) -> Optional[bool]:
4120
- """
4121
- If omitted, the default value is true.
4122
- """
4123
- return pulumi.get(self, "enable_automatic_updates")
4124
-
4125
-
4126
- @pulumi.output_type
4127
- class WindowsUserConfigurationResponse(dict):
4128
- @staticmethod
4129
- def __key_warning(key: str):
4130
- suggest = None
4131
- if key == "loginMode":
4132
- suggest = "login_mode"
4133
-
4134
- if suggest:
4135
- pulumi.log.warn(f"Key '{key}' not found in WindowsUserConfigurationResponse. Access the value via the '{suggest}' property getter instead.")
4136
-
4137
- def __getitem__(self, key: str) -> Any:
4138
- WindowsUserConfigurationResponse.__key_warning(key)
4139
- return super().__getitem__(key)
4140
-
4141
- def get(self, key: str, default = None) -> Any:
4142
- WindowsUserConfigurationResponse.__key_warning(key)
4143
- return super().get(key, default)
4144
-
4145
- def __init__(__self__, *,
4146
- login_mode: Optional[str] = None):
4147
- """
4148
- :param str login_mode: Specifies login mode for the user. The default value is Interactive.
4149
- """
4150
- if login_mode is not None:
4151
- pulumi.set(__self__, "login_mode", login_mode)
4152
-
4153
- @property
4154
- @pulumi.getter(name="loginMode")
4155
- def login_mode(self) -> Optional[str]:
4156
- """
4157
- Specifies login mode for the user. The default value is Interactive.
4158
- """
4159
- return pulumi.get(self, "login_mode")
4160
-
4161
-