/
virtual_machine_scale_set_spec_arm_types_gen.go
752 lines (598 loc) · 41.3 KB
/
virtual_machine_scale_set_spec_arm_types_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1api20220301
import "github.com/Azure/azure-service-operator/v2/pkg/genruntime"
type VirtualMachineScaleSet_Spec_ARM struct {
// ExtendedLocation: The extended location of the Virtual Machine Scale Set.
ExtendedLocation *ExtendedLocation_ARM `json:"extendedLocation,omitempty"`
// Identity: The identity of the virtual machine scale set, if configured.
Identity *VirtualMachineScaleSetIdentity_ARM `json:"identity,omitempty"`
// Location: Resource location
Location *string `json:"location,omitempty"`
Name string `json:"name,omitempty"`
// Plan: Specifies information about the marketplace image used to create the virtual machine. This element is only used
// for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic
// use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy
// programmatically, Get Started ->. Enter any required information and then click Save.
Plan *Plan_ARM `json:"plan,omitempty"`
// Properties: Describes the properties of a Virtual Machine Scale Set.
Properties *VirtualMachineScaleSetProperties_ARM `json:"properties,omitempty"`
// Sku: The virtual machine scale set sku.
Sku *Sku_ARM `json:"sku,omitempty"`
// Tags: Resource tags
Tags map[string]string `json:"tags,omitempty"`
// Zones: The virtual machine scale set zones. NOTE: Availability zones can only be set when you create the scale set
Zones []string `json:"zones,omitempty"`
}
var _ genruntime.ARMResourceSpec = &VirtualMachineScaleSet_Spec_ARM{}
// GetAPIVersion returns the ARM API version of the resource. This is always "2022-03-01"
func (scaleSet VirtualMachineScaleSet_Spec_ARM) GetAPIVersion() string {
return string(APIVersion_Value)
}
// GetName returns the Name of the resource
func (scaleSet *VirtualMachineScaleSet_Spec_ARM) GetName() string {
return scaleSet.Name
}
// GetType returns the ARM Type of the resource. This is always "Microsoft.Compute/virtualMachineScaleSets"
func (scaleSet *VirtualMachineScaleSet_Spec_ARM) GetType() string {
return "Microsoft.Compute/virtualMachineScaleSets"
}
// Specifies information about the marketplace image used to create the virtual machine. This element is only used for
// marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use.
// In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically,
// Get Started ->. Enter any required information and then click Save.
type Plan_ARM struct {
// Name: The plan ID.
Name *string `json:"name,omitempty"`
// Product: Specifies the product of the image from the marketplace. This is the same value as Offer under the
// imageReference element.
Product *string `json:"product,omitempty"`
// PromotionCode: The promotion code.
PromotionCode *string `json:"promotionCode,omitempty"`
// Publisher: The publisher ID.
Publisher *string `json:"publisher,omitempty"`
}
// Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is
// currently on, you need to deallocate the VMs in the scale set before you modify the SKU name.
type Sku_ARM struct {
// Capacity: Specifies the number of virtual machines in the scale set.
Capacity *int `json:"capacity,omitempty"`
// Name: The sku name.
Name *string `json:"name,omitempty"`
// Tier: Specifies the tier of virtual machines in a scale set.
// Possible Values:
// Standard
// Basic
Tier *string `json:"tier,omitempty"`
}
// Identity for the virtual machine scale set.
type VirtualMachineScaleSetIdentity_ARM struct {
// Type: The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both
// an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from
// the virtual machine scale set.
Type *VirtualMachineScaleSetIdentity_Type `json:"type,omitempty"`
UserAssignedIdentities map[string]UserAssignedIdentityDetails_ARM `json:"userAssignedIdentities,omitempty"`
}
// Describes the properties of a Virtual Machine Scale Set.
type VirtualMachineScaleSetProperties_ARM struct {
// AdditionalCapabilities: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual
// Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data
// disks with UltraSSD_LRS storage account type.
AdditionalCapabilities *AdditionalCapabilities_ARM `json:"additionalCapabilities,omitempty"`
// AutomaticRepairsPolicy: Policy for automatic repairs.
AutomaticRepairsPolicy *AutomaticRepairsPolicy_ARM `json:"automaticRepairsPolicy,omitempty"`
// DoNotRunExtensionsOnOverprovisionedVMs: When Overprovision is enabled, extensions are launched only on the requested
// number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra
// overprovisioned VMs.
DoNotRunExtensionsOnOverprovisionedVMs *bool `json:"doNotRunExtensionsOnOverprovisionedVMs,omitempty"`
// HostGroup: Specifies information about the dedicated host group that the virtual machine scale set resides in.
// Minimum api-version: 2020-06-01.
HostGroup *SubResource_ARM `json:"hostGroup,omitempty"`
// OrchestrationMode: Specifies the orchestration mode for the virtual machine scale set.
OrchestrationMode *OrchestrationMode `json:"orchestrationMode,omitempty"`
// Overprovision: Specifies whether the Virtual Machine Scale Set should be overprovisioned.
Overprovision *bool `json:"overprovision,omitempty"`
// PlatformFaultDomainCount: Fault Domain count for each placement group.
PlatformFaultDomainCount *int `json:"platformFaultDomainCount,omitempty"`
// ProximityPlacementGroup: Specifies information about the proximity placement group that the virtual machine scale set
// should be assigned to.
// Minimum api-version: 2018-04-01.
ProximityPlacementGroup *SubResource_ARM `json:"proximityPlacementGroup,omitempty"`
// ScaleInPolicy: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.
ScaleInPolicy *ScaleInPolicy_ARM `json:"scaleInPolicy,omitempty"`
// SinglePlacementGroup: When true this limits the scale set to a single placement group, of max size 100 virtual machines.
// NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may
// not be modified to true.
SinglePlacementGroup *bool `json:"singlePlacementGroup,omitempty"`
// SpotRestorePolicy: Specifies the Spot Restore properties for the virtual machine scale set.
SpotRestorePolicy *SpotRestorePolicy_ARM `json:"spotRestorePolicy,omitempty"`
// UpgradePolicy: The upgrade policy.
UpgradePolicy *UpgradePolicy_ARM `json:"upgradePolicy,omitempty"`
// VirtualMachineProfile: The virtual machine profile.
VirtualMachineProfile *VirtualMachineScaleSetVMProfile_ARM `json:"virtualMachineProfile,omitempty"`
// ZoneBalance: Whether to force strictly even Virtual Machine distribution cross x-zones in case there is zone outage.
// zoneBalance property can only be set if the zones property of the scale set contains more than one zone. If there are no
// zones or only one zone specified, then zoneBalance property should not be set.
ZoneBalance *bool `json:"zoneBalance,omitempty"`
}
// Enables or disables a capability on the virtual machine or virtual machine scale set.
type AdditionalCapabilities_ARM struct {
// HibernationEnabled: The flag that enables or disables hibernation capability on the VM.
HibernationEnabled *bool `json:"hibernationEnabled,omitempty"`
// UltraSSDEnabled: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS
// storage account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual
// machine or virtual machine scale set only if this property is enabled.
UltraSSDEnabled *bool `json:"ultraSSDEnabled,omitempty"`
}
// Specifies the configuration parameters for automatic repairs on the virtual machine scale set.
type AutomaticRepairsPolicy_ARM struct {
// Enabled: Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is
// false.
Enabled *bool `json:"enabled,omitempty"`
// GracePeriod: The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time
// starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should
// be specified in ISO 8601 format. The minimum allowed grace period is 10 minutes (PT10M), which is also the default
// value. The maximum allowed grace period is 90 minutes (PT90M).
GracePeriod *string `json:"gracePeriod,omitempty"`
// RepairAction: Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual
// machines in the scale set. Default value is replace.
RepairAction *AutomaticRepairsPolicy_RepairAction `json:"repairAction,omitempty"`
}
// Describes a scale-in policy for a virtual machine scale set.
type ScaleInPolicy_ARM struct {
// ForceDeletion: This property allows you to specify if virtual machines chosen for removal have to be force deleted when
// a virtual machine scale set is being scaled-in.(Feature in Preview)
ForceDeletion *bool `json:"forceDeletion,omitempty"`
// Rules: The rules to be followed when scaling-in a virtual machine scale set.
// Possible values are:
// Default When a virtual machine scale set is scaled in, the scale set will first be balanced across zones if it is a
// zonal scale set. Then, it will be balanced across Fault Domains as far as possible. Within each Fault Domain, the
// virtual machines chosen for removal will be the newest ones that are not protected from scale-in.
// OldestVM When a virtual machine scale set is being scaled-in, the oldest virtual machines that are not protected from
// scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across
// zones. Within each zone, the oldest virtual machines that are not protected will be chosen for removal.
// NewestVM When a virtual machine scale set is being scaled-in, the newest virtual machines that are not protected from
// scale-in will be chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced across
// zones. Within each zone, the newest virtual machines that are not protected will be chosen for removal.
Rules []ScaleInPolicy_Rules `json:"rules,omitempty"`
}
// Specifies the Spot-Try-Restore properties for the virtual machine scale set.
// With this property customer can
// enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity
// availability and pricing constraint.
type SpotRestorePolicy_ARM struct {
// Enabled: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored
// opportunistically based on capacity availability and pricing constraints
Enabled *bool `json:"enabled,omitempty"`
// RestoreTimeout: Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore
// the VMSS SPOT instances
RestoreTimeout *string `json:"restoreTimeout,omitempty"`
}
// Describes an upgrade policy - automatic, manual, or rolling.
type UpgradePolicy_ARM struct {
// AutomaticOSUpgradePolicy: Configuration parameters used for performing automatic OS Upgrade.
AutomaticOSUpgradePolicy *AutomaticOSUpgradePolicy_ARM `json:"automaticOSUpgradePolicy,omitempty"`
// Mode: Specifies the mode of an upgrade to virtual machines in the scale set.
// Possible values are:
// Manual - You control the application of updates to virtual machines in the scale set. You do this by using the
// manualUpgrade action.
// Automatic - All virtual machines in the scale set are automatically updated at the same time.
Mode *UpgradePolicy_Mode `json:"mode,omitempty"`
// RollingUpgradePolicy: The configuration parameters used while performing a rolling upgrade.
RollingUpgradePolicy *RollingUpgradePolicy_ARM `json:"rollingUpgradePolicy,omitempty"`
}
// Information about the user assigned identity for the resource
type UserAssignedIdentityDetails_ARM struct {
}
// +kubebuilder:validation:Enum={"None","SystemAssigned","SystemAssigned, UserAssigned","UserAssigned"}
type VirtualMachineScaleSetIdentity_Type string
const (
VirtualMachineScaleSetIdentity_Type_None = VirtualMachineScaleSetIdentity_Type("None")
VirtualMachineScaleSetIdentity_Type_SystemAssigned = VirtualMachineScaleSetIdentity_Type("SystemAssigned")
VirtualMachineScaleSetIdentity_Type_SystemAssignedUserAssigned = VirtualMachineScaleSetIdentity_Type("SystemAssigned, UserAssigned")
VirtualMachineScaleSetIdentity_Type_UserAssigned = VirtualMachineScaleSetIdentity_Type("UserAssigned")
)
// Mapping from string to VirtualMachineScaleSetIdentity_Type
var virtualMachineScaleSetIdentity_Type_Values = map[string]VirtualMachineScaleSetIdentity_Type{
"none": VirtualMachineScaleSetIdentity_Type_None,
"systemassigned": VirtualMachineScaleSetIdentity_Type_SystemAssigned,
"systemassigned, userassigned": VirtualMachineScaleSetIdentity_Type_SystemAssignedUserAssigned,
"userassigned": VirtualMachineScaleSetIdentity_Type_UserAssigned,
}
// Describes a virtual machine scale set virtual machine profile.
type VirtualMachineScaleSetVMProfile_ARM struct {
// ApplicationProfile: Specifies the gallery applications that should be made available to the VM/VMSS
ApplicationProfile *ApplicationProfile_ARM `json:"applicationProfile,omitempty"`
// BillingProfile: Specifies the billing related details of a Azure Spot VMSS.
// Minimum api-version: 2019-03-01.
BillingProfile *BillingProfile_ARM `json:"billingProfile,omitempty"`
// CapacityReservation: Specifies the capacity reservation related details of a scale set.
// Minimum api-version: 2021-04-01.
CapacityReservation *CapacityReservationProfile_ARM `json:"capacityReservation,omitempty"`
// DiagnosticsProfile: Specifies the boot diagnostic settings state.
// Minimum api-version: 2015-06-15.
DiagnosticsProfile *DiagnosticsProfile_ARM `json:"diagnosticsProfile,omitempty"`
// EvictionPolicy: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set.
// For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01.
// For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is
// 2017-10-30-preview.
EvictionPolicy *EvictionPolicy `json:"evictionPolicy,omitempty"`
// ExtensionProfile: Specifies a collection of settings for extensions installed on virtual machines in the scale set.
ExtensionProfile *VirtualMachineScaleSetExtensionProfile_ARM `json:"extensionProfile,omitempty"`
// HardwareProfile: Specifies the hardware profile related details of a scale set.
// Minimum api-version: 2022-03-01.
HardwareProfile *VirtualMachineScaleSetHardwareProfile_ARM `json:"hardwareProfile,omitempty"`
// LicenseType: Specifies that the image or disk that is being used was licensed on-premises.
// Possible values for Windows Server operating system are:
// Windows_Client
// Windows_Server
// Possible values for Linux Server operating system are:
// RHEL_BYOS (for RHEL)
// SLES_BYOS (for SUSE)
// For more information, see [Azure Hybrid Use Benefit for Windows
// Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing)
// [Azure Hybrid Use Benefit for Linux
// Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux)
// Minimum api-version: 2015-06-15
LicenseType *string `json:"licenseType,omitempty"`
// NetworkProfile: Specifies properties of the network interfaces of the virtual machines in the scale set.
NetworkProfile *VirtualMachineScaleSetNetworkProfile_ARM `json:"networkProfile,omitempty"`
// OsProfile: Specifies the operating system settings for the virtual machines in the scale set.
OsProfile *VirtualMachineScaleSetOSProfile_ARM `json:"osProfile,omitempty"`
// Priority: Specifies the priority for the virtual machines in the scale set.
// Minimum api-version: 2017-10-30-preview
Priority *Priority `json:"priority,omitempty"`
// ScheduledEventsProfile: Specifies Scheduled Event related configurations.
ScheduledEventsProfile *ScheduledEventsProfile_ARM `json:"scheduledEventsProfile,omitempty"`
// SecurityProfile: Specifies the Security related profile settings for the virtual machines in the scale set.
SecurityProfile *SecurityProfile_ARM `json:"securityProfile,omitempty"`
// StorageProfile: Specifies the storage settings for the virtual machine disks.
StorageProfile *VirtualMachineScaleSetStorageProfile_ARM `json:"storageProfile,omitempty"`
// UserData: UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass
// any secrets in here.
// Minimum api-version: 2021-03-01
UserData *string `json:"userData,omitempty"`
}
// The configuration parameters used for performing automatic OS upgrade.
type AutomaticOSUpgradePolicy_ARM struct {
// DisableAutomaticRollback: Whether OS image rollback feature should be disabled. Default value is false.
DisableAutomaticRollback *bool `json:"disableAutomaticRollback,omitempty"`
// EnableAutomaticOSUpgrade: 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. Default value is false.
// If this is set to true for Windows based scale sets,
// [enableAutomaticUpdates](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.windowsconfiguration.enableautomaticupdates?view=azure-dotnet)
// is automatically set to false and cannot be set to true.
EnableAutomaticOSUpgrade *bool `json:"enableAutomaticOSUpgrade,omitempty"`
// UseRollingUpgradePolicy: Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Default value
// is false. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS.
UseRollingUpgradePolicy *bool `json:"useRollingUpgradePolicy,omitempty"`
}
// The configuration parameters used while performing a rolling upgrade.
type RollingUpgradePolicy_ARM struct {
// EnableCrossZoneUpgrade: Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration
// the Update Domain and maxBatchInstancePercent to determine the batch size.
EnableCrossZoneUpgrade *bool `json:"enableCrossZoneUpgrade,omitempty"`
// MaxBatchInstancePercent: 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 default value for this parameter is 20%.
MaxBatchInstancePercent *int `json:"maxBatchInstancePercent,omitempty"`
// MaxUnhealthyInstancePercent: 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 default value for this parameter is 20%.
MaxUnhealthyInstancePercent *int `json:"maxUnhealthyInstancePercent,omitempty"`
// MaxUnhealthyUpgradedInstancePercent: 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 default value for this parameter is 20%.
MaxUnhealthyUpgradedInstancePercent *int `json:"maxUnhealthyUpgradedInstancePercent,omitempty"`
// PauseTimeBetweenBatches: 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. The default value is 0 seconds (PT0S).
PauseTimeBetweenBatches *string `json:"pauseTimeBetweenBatches,omitempty"`
// PrioritizeUnhealthyInstances: Upgrade all unhealthy instances in a scale set before any healthy instances.
PrioritizeUnhealthyInstances *bool `json:"prioritizeUnhealthyInstances,omitempty"`
}
// Describes a virtual machine scale set extension profile.
type VirtualMachineScaleSetExtensionProfile_ARM struct {
// Extensions: The virtual machine scale set child extension resources.
Extensions []VirtualMachineScaleSetExtension_ARM `json:"extensions,omitempty"`
// ExtensionsTimeBudget: Specifies the time alloted for all extensions to start. The time duration should be between 15
// minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes
// (PT1H30M).
// Minimum api-version: 2020-06-01
ExtensionsTimeBudget *string `json:"extensionsTimeBudget,omitempty"`
}
// Specifies the hardware settings for the virtual machine scale set.
type VirtualMachineScaleSetHardwareProfile_ARM struct {
// VmSizeProperties: Specifies the properties for customizing the size of the virtual machine. Minimum api-version:
// 2022-03-01.
// Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details.
VmSizeProperties *VMSizeProperties_ARM `json:"vmSizeProperties,omitempty"`
}
// Describes a virtual machine scale set network profile.
type VirtualMachineScaleSetNetworkProfile_ARM struct {
// HealthProbe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine
// scale set. The reference will be in the form:
// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'.
HealthProbe *ApiEntityReference_ARM `json:"healthProbe,omitempty"`
// NetworkApiVersion: specifies the Microsoft.Network API version used when creating networking resources in the Network
// Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible'
NetworkApiVersion *VirtualMachineScaleSetNetworkProfile_NetworkApiVersion `json:"networkApiVersion,omitempty"`
// NetworkInterfaceConfigurations: The list of network configurations.
NetworkInterfaceConfigurations []VirtualMachineScaleSetNetworkConfiguration_ARM `json:"networkInterfaceConfigurations,omitempty"`
}
// Describes a virtual machine scale set OS profile.
type VirtualMachineScaleSetOSProfile_ARM struct {
// AdminPassword: Specifies the password of the administrator account.
// Minimum-length (Windows): 8 characters
// Minimum-length (Linux): 6 characters
// Max-length (Windows): 123 characters
// Max-length (Linux): 72 characters
// Complexity requirements: 3 out of 4 conditions below need to be fulfilled
// Has lower characters
// Has upper characters
// Has a digit
// Has a special character (Regex match [\W_])
// Disallowed values: "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1",
// "Password22", "iloveyou!"
// For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows
// VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp)
// For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess
// Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)
AdminPassword *string `json:"adminPassword,omitempty"`
// AdminUsername: Specifies the name of the administrator account.
// Windows-only restriction: Cannot end in "."
// Disallowed values: "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123",
// "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server",
// "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".
// Minimum-length (Linux): 1 character
// Max-length (Linux): 64 characters
// Max-length (Windows): 20 characters
AdminUsername *string `json:"adminUsername,omitempty"`
// AllowExtensionOperations: Specifies whether extension operations should be allowed on the virtual machine scale set.
// This may only be set to False when no extensions are present on the virtual machine scale set.
AllowExtensionOperations *bool `json:"allowExtensionOperations,omitempty"`
// ComputerNamePrefix: Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name
// prefixes must be 1 to 15 characters long.
ComputerNamePrefix *string `json:"computerNamePrefix,omitempty"`
// CustomData: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array
// that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.
// For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during
// creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init)
CustomData *string `json:"customData,omitempty"`
// LinuxConfiguration: Specifies the Linux operating system settings on the virtual machine.
// For a list of supported Linux distributions, see [Linux on Azure-Endorsed
// Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).
LinuxConfiguration *LinuxConfiguration_ARM `json:"linuxConfiguration,omitempty"`
// Secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. To install
// certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for
// Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual
// machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows).
Secrets []VaultSecretGroup_ARM `json:"secrets,omitempty"`
// WindowsConfiguration: Specifies Windows operating system settings on the virtual machine.
WindowsConfiguration *WindowsConfiguration_ARM `json:"windowsConfiguration,omitempty"`
}
// Describes a virtual machine scale set storage profile.
type VirtualMachineScaleSetStorageProfile_ARM struct {
// DataDisks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set.
// For more information about disks, see [About disks and VHDs for Azure virtual
// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
DataDisks []VirtualMachineScaleSetDataDisk_ARM `json:"dataDisks,omitempty"`
// ImageReference: Specifies information about the image to use. You can specify information about platform images,
// marketplace images, or virtual machine images. This element is required when you want to use a platform image,
// marketplace image, or virtual machine image, but is not used in other creation operations.
ImageReference *ImageReference_ARM `json:"imageReference,omitempty"`
// OsDisk: Specifies information about the operating system disk used by the virtual machines in the scale set.
// For more information about disks, see [About disks and VHDs for Azure virtual
// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
OsDisk *VirtualMachineScaleSetOSDisk_ARM `json:"osDisk,omitempty"`
}
// The API entity reference.
type ApiEntityReference_ARM struct {
Id *string `json:"id,omitempty"`
}
// Describes a virtual machine scale set data disk.
type VirtualMachineScaleSetDataDisk_ARM struct {
// Caching: Specifies the caching requirements.
// Possible values are:
// None
// ReadOnly
// ReadWrite
// Default: None for Standard storage. ReadOnly for Premium storage
Caching *Caching `json:"caching,omitempty"`
// CreateOption: The create option.
CreateOption *CreateOption `json:"createOption,omitempty"`
// DeleteOption: Specifies whether data disk should be deleted or detached upon VMSS Flex deletion (This feature is
// available for VMSS with Flexible OrchestrationMode only).
// Possible values:
// Delete If this value is used, the data disk is deleted when the VMSS Flex VM is deleted.
// Detach If this value is used, the data disk is retained after VMSS Flex VM is deleted.
// The default value is set to Delete.
DeleteOption *DeleteOption `json:"deleteOption,omitempty"`
// DiskIOPSReadWrite: Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is
// UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
DiskIOPSReadWrite *int `json:"diskIOPSReadWrite,omitempty"`
// DiskMBpsReadWrite: Specifies the bandwidth in MB per second for the managed disk. Should be used only when
// StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.
DiskMBpsReadWrite *int `json:"diskMBpsReadWrite,omitempty"`
// DiskSizeGB: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the
// disk in a virtual machine image.
// This value cannot be larger than 1023 GB
DiskSizeGB *int `json:"diskSizeGB,omitempty"`
// Lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and
// therefore must be unique for each data disk attached to a VM.
Lun *int `json:"lun,omitempty"`
// ManagedDisk: The managed disk parameters.
ManagedDisk *VirtualMachineScaleSetManagedDiskParameters_ARM `json:"managedDisk,omitempty"`
// Name: The disk name.
Name *string `json:"name,omitempty"`
// WriteAcceleratorEnabled: Specifies whether writeAccelerator should be enabled or disabled on the disk.
WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"`
}
// Describes a Virtual Machine Scale Set Extension.
type VirtualMachineScaleSetExtension_ARM struct {
// Name: The name of the extension.
Name *string `json:"name,omitempty"`
// Properties: Describes the properties of a Virtual Machine Scale Set Extension.
Properties *VirtualMachineScaleSetExtensionProperties_ARM `json:"properties,omitempty"`
}
// Describes a virtual machine scale set network profile's network configurations.
type VirtualMachineScaleSetNetworkConfiguration_ARM struct {
Id *string `json:"id,omitempty"`
// Name: The network configuration name.
Name *string `json:"name,omitempty"`
// Properties: Describes a virtual machine scale set network profile's IP configuration.
Properties *VirtualMachineScaleSetNetworkConfigurationProperties_ARM `json:"properties,omitempty"`
}
// Describes a virtual machine scale set operating system disk.
type VirtualMachineScaleSetOSDisk_ARM struct {
// Caching: Specifies the caching requirements.
// Possible values are:
// None
// ReadOnly
// ReadWrite
// Default: None for Standard storage. ReadOnly for Premium storage
Caching *Caching `json:"caching,omitempty"`
// CreateOption: Specifies how the virtual machines in the scale set should be created.
// The only allowed value is: FromImage \u2013 This value is used when you are using an image to create the virtual
// machine. If you are using a platform image, you also use the imageReference element described above. If you are using a
// marketplace image, you also use the plan element previously described.
CreateOption *CreateOption `json:"createOption,omitempty"`
// DeleteOption: Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available
// for VMSS with Flexible OrchestrationMode only).
// Possible values:
// Delete If this value is used, the OS disk is deleted when VMSS Flex VM is deleted.
// Detach If this value is used, the OS disk is retained after VMSS Flex VM is deleted.
// The default value is set to Delete. For an Ephemeral OS Disk, the default value is set to Delete. User cannot change the
// delete option for Ephemeral OS Disk.
DeleteOption *DeleteOption `json:"deleteOption,omitempty"`
// DiffDiskSettings: Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale
// set.
DiffDiskSettings *DiffDiskSettings_ARM `json:"diffDiskSettings,omitempty"`
// DiskSizeGB: Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size
// of the disk in a virtual machine image.
// This value cannot be larger than 1023 GB
DiskSizeGB *int `json:"diskSizeGB,omitempty"`
// Image: Specifies information about the unmanaged user image to base the scale set on.
Image *VirtualHardDisk_ARM `json:"image,omitempty"`
// ManagedDisk: The managed disk parameters.
ManagedDisk *VirtualMachineScaleSetManagedDiskParameters_ARM `json:"managedDisk,omitempty"`
// Name: The disk name.
Name *string `json:"name,omitempty"`
// OsType: This property allows you to specify the type of the OS that is included in the disk if creating a VM from
// user-image or a specialized VHD.
// Possible values are:
// Windows
// Linux
OsType *VirtualMachineScaleSetOSDisk_OsType `json:"osType,omitempty"`
// VhdContainers: Specifies the container urls that are used to store operating system disks for the scale set.
VhdContainers []string `json:"vhdContainers,omitempty"`
// WriteAcceleratorEnabled: Specifies whether writeAccelerator should be enabled or disabled on the disk.
WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"`
}
// Describes the parameters of a ScaleSet managed disk.
type VirtualMachineScaleSetManagedDiskParameters_ARM struct {
// DiskEncryptionSet: Specifies the customer managed disk encryption set resource id for the managed disk.
DiskEncryptionSet *SubResource_ARM `json:"diskEncryptionSet,omitempty"`
// SecurityProfile: Specifies the security profile for the managed disk.
SecurityProfile *VMDiskSecurityProfile_ARM `json:"securityProfile,omitempty"`
// StorageAccountType: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with
// data disks, it cannot be used with OS Disk.
StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"`
}
// Describes a virtual machine scale set network profile's IP configuration.
type VirtualMachineScaleSetNetworkConfigurationProperties_ARM struct {
// DeleteOption: Specify what happens to the network interface when the VM is deleted
DeleteOption *VirtualMachineScaleSetNetworkConfigurationProperties_DeleteOption `json:"deleteOption,omitempty"`
// DnsSettings: The dns settings to be applied on the network interfaces.
DnsSettings *VirtualMachineScaleSetNetworkConfigurationDnsSettings_ARM `json:"dnsSettings,omitempty"`
// EnableAcceleratedNetworking: Specifies whether the network interface is accelerated networking-enabled.
EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"`
// EnableFpga: Specifies whether the network interface is FPGA networking-enabled.
EnableFpga *bool `json:"enableFpga,omitempty"`
// EnableIPForwarding: Whether IP forwarding enabled on this NIC.
EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"`
// IpConfigurations: Specifies the IP configurations of the network interface.
IpConfigurations []VirtualMachineScaleSetIPConfiguration_ARM `json:"ipConfigurations,omitempty"`
// NetworkSecurityGroup: The network security group.
NetworkSecurityGroup *SubResource_ARM `json:"networkSecurityGroup,omitempty"`
// Primary: Specifies the primary network interface in case the virtual machine has more than 1 network interface.
Primary *bool `json:"primary,omitempty"`
}
// Describes a virtual machine scale set network profile's IP configuration.
type VirtualMachineScaleSetIPConfiguration_ARM struct {
Id *string `json:"id,omitempty"`
// Name: The IP configuration name.
Name *string `json:"name,omitempty"`
// Properties: Describes a virtual machine scale set network profile's IP configuration properties.
Properties *VirtualMachineScaleSetIPConfigurationProperties_ARM `json:"properties,omitempty"`
}
// Describes a virtual machines scale sets network configuration's DNS settings.
type VirtualMachineScaleSetNetworkConfigurationDnsSettings_ARM struct {
// DnsServers: List of DNS servers IP addresses
DnsServers []string `json:"dnsServers,omitempty"`
}
// Describes a virtual machine scale set network profile's IP configuration properties.
type VirtualMachineScaleSetIPConfigurationProperties_ARM struct {
// ApplicationGatewayBackendAddressPools: Specifies an array of references to backend address pools of application
// gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot
// use the same application gateway.
ApplicationGatewayBackendAddressPools []SubResource_ARM `json:"applicationGatewayBackendAddressPools,omitempty"`
// ApplicationSecurityGroups: Specifies an array of references to application security group.
ApplicationSecurityGroups []SubResource_ARM `json:"applicationSecurityGroups,omitempty"`
// LoadBalancerBackendAddressPools: Specifies an array of references to backend address pools of load balancers. A scale
// set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the
// same basic sku load balancer.
LoadBalancerBackendAddressPools []SubResource_ARM `json:"loadBalancerBackendAddressPools,omitempty"`
// LoadBalancerInboundNatPools: Specifies an array of references to inbound Nat pools of the load balancers. A scale set
// can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same
// basic sku load balancer.
LoadBalancerInboundNatPools []SubResource_ARM `json:"loadBalancerInboundNatPools,omitempty"`
// Primary: Specifies the primary network interface in case the virtual machine has more than 1 network interface.
Primary *bool `json:"primary,omitempty"`
// PrivateIPAddressVersion: Available from Api-Version 2017-03-30 onwards, it represents whether the specific
// ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
PrivateIPAddressVersion *VirtualMachineScaleSetIPConfigurationProperties_PrivateIPAddressVersion `json:"privateIPAddressVersion,omitempty"`
// PublicIPAddressConfiguration: The publicIPAddressConfiguration.
PublicIPAddressConfiguration *VirtualMachineScaleSetPublicIPAddressConfiguration_ARM `json:"publicIPAddressConfiguration,omitempty"`
// Subnet: Specifies the identifier of the subnet.
Subnet *ApiEntityReference_ARM `json:"subnet,omitempty"`
}
// Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration
type VirtualMachineScaleSetPublicIPAddressConfiguration_ARM struct {
// Name: The publicIP address configuration name.
Name *string `json:"name,omitempty"`
// Properties: Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration
Properties *VirtualMachineScaleSetPublicIPAddressConfigurationProperties_ARM `json:"properties,omitempty"`
// Sku: Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.
Sku *PublicIPAddressSku_ARM `json:"sku,omitempty"`
}
// Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration
type VirtualMachineScaleSetPublicIPAddressConfigurationProperties_ARM struct {
// DeleteOption: Specify what happens to the public IP when the VM is deleted
DeleteOption *VirtualMachineScaleSetPublicIPAddressConfigurationProperties_DeleteOption `json:"deleteOption,omitempty"`
// DnsSettings: The dns settings to be applied on the publicIP addresses .
DnsSettings *VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings_ARM `json:"dnsSettings,omitempty"`
// IdleTimeoutInMinutes: The idle timeout of the public IP address.
IdleTimeoutInMinutes *int `json:"idleTimeoutInMinutes,omitempty"`
// IpTags: The list of IP tags associated with the public IP address.
IpTags []VirtualMachineScaleSetIpTag_ARM `json:"ipTags,omitempty"`
// PublicIPAddressVersion: Available from Api-Version 2019-07-01 onwards, it represents whether the specific
// ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
PublicIPAddressVersion *VirtualMachineScaleSetPublicIPAddressConfigurationProperties_PublicIPAddressVersion `json:"publicIPAddressVersion,omitempty"`
// PublicIPPrefix: The PublicIPPrefix from which to allocate publicIP addresses.
PublicIPPrefix *SubResource_ARM `json:"publicIPPrefix,omitempty"`
}
// Contains the IP tag associated with the public IP address.
type VirtualMachineScaleSetIpTag_ARM struct {
// IpTagType: IP tag type. Example: FirstPartyUsage.
IpTagType *string `json:"ipTagType,omitempty"`
// Tag: IP tag associated with the public IP. Example: SQL, Storage etc.
Tag *string `json:"tag,omitempty"`
}
// Describes a virtual machines scale sets network configuration's DNS settings.
type VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings_ARM struct {
// DomainNameLabel: The Domain name label.The concatenation of the domain name label and vm index will be the domain name
// labels of the PublicIPAddress resources that will be created
DomainNameLabel *string `json:"domainNameLabel,omitempty"`
}