-
Notifications
You must be signed in to change notification settings - Fork 50
/
linuxVirtualMachineScaleSet.go
1435 lines (1333 loc) · 101 KB
/
linuxVirtualMachineScaleSet.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
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package compute
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages a Linux Virtual Machine Scale Set.
//
// ## Disclaimers
//
// > **NOTE:** This provider will automatically update & reimage the nodes in the Scale Set (if Required) during an Update - this behaviour can be configured using the `features` setting within the Provider block.
//
// ## Example Usage
//
// This example provisions a basic Linux Virtual Machine Scale Set on an internal network.
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// firstPublicKey := "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+wWK73dCr+jgQOAxNsHAnNNNMEMWOHYEccp6wJm2gotpr9katuF/ZAdou5AaW1C61slRkHRkpRRX9FA9CYBiitZgvCCz+3nWNN7l/Up54Zps/pHWGZLHNJZRYyAB6j5yVLMVHIHriY49d/GZTZVNB8GoJv9Gakwc/fuEZYYl4YDFiGMBP///TzlI4jhiJzjKnEvqPFki5p2ZRJqcbCiF4pJrxUQR/RXqVFQdbRLZgYfJ8xGB878RENq3yQ39d8dVOkq4edbkzwcUmwwwkYVPIoDGsYLaRHnG+To7FvMeyO7xDVQkMKzopTQV8AuKpyvpqu0a9pWOMaiCyDytO7GGN you@me.com"
// example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
// Name: pulumi.String("example-resources"),
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
// Name: pulumi.String("example-network"),
// ResourceGroupName: example.Name,
// Location: example.Location,
// AddressSpaces: pulumi.StringArray{
// pulumi.String("10.0.0.0/16"),
// },
// })
// if err != nil {
// return err
// }
// internal, err := network.NewSubnet(ctx, "internal", &network.SubnetArgs{
// Name: pulumi.String("internal"),
// ResourceGroupName: example.Name,
// VirtualNetworkName: exampleVirtualNetwork.Name,
// AddressPrefixes: pulumi.StringArray{
// pulumi.String("10.0.2.0/24"),
// },
// })
// if err != nil {
// return err
// }
// _, err = compute.NewLinuxVirtualMachineScaleSet(ctx, "example", &compute.LinuxVirtualMachineScaleSetArgs{
// Name: pulumi.String("example-vmss"),
// ResourceGroupName: example.Name,
// Location: example.Location,
// Sku: pulumi.String("Standard_F2"),
// Instances: pulumi.Int(1),
// AdminUsername: pulumi.String("adminuser"),
// AdminSshKeys: compute.LinuxVirtualMachineScaleSetAdminSshKeyArray{
// &compute.LinuxVirtualMachineScaleSetAdminSshKeyArgs{
// Username: pulumi.String("adminuser"),
// PublicKey: pulumi.String(firstPublicKey),
// },
// },
// SourceImageReference: &compute.LinuxVirtualMachineScaleSetSourceImageReferenceArgs{
// Publisher: pulumi.String("Canonical"),
// Offer: pulumi.String("0001-com-ubuntu-server-jammy"),
// Sku: pulumi.String("22_04-lts"),
// Version: pulumi.String("latest"),
// },
// OsDisk: &compute.LinuxVirtualMachineScaleSetOsDiskArgs{
// StorageAccountType: pulumi.String("Standard_LRS"),
// Caching: pulumi.String("ReadWrite"),
// },
// NetworkInterfaces: compute.LinuxVirtualMachineScaleSetNetworkInterfaceArray{
// &compute.LinuxVirtualMachineScaleSetNetworkInterfaceArgs{
// Name: pulumi.String("example"),
// Primary: pulumi.Bool(true),
// IpConfigurations: compute.LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationArray{
// &compute.LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationArgs{
// Name: pulumi.String("internal"),
// Primary: pulumi.Bool(true),
// SubnetId: internal.ID(),
// },
// },
// },
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Linux Virtual Machine Scale Sets can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:compute/linuxVirtualMachineScaleSet:LinuxVirtualMachineScaleSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/virtualMachineScaleSets/scaleset1
// ```
type LinuxVirtualMachineScaleSet struct {
pulumi.CustomResourceState
// An `additionalCapabilities` block as defined below.
AdditionalCapabilities LinuxVirtualMachineScaleSetAdditionalCapabilitiesPtrOutput `pulumi:"additionalCapabilities"`
// The Password which should be used for the local-administrator on this Virtual Machine. Changing this forces a new resource to be created.
//
// > **NOTE:** When an `adminPassword` is specified `disablePasswordAuthentication` must be set to `false`.
//
// > **NOTE:** One of either `adminPassword` or `adminSshKey` must be specified.
AdminPassword pulumi.StringPtrOutput `pulumi:"adminPassword"`
// One or more `adminSshKey` blocks as defined below.
//
// > **NOTE:** One of either `adminPassword` or `adminSshKey` must be specified.
AdminSshKeys LinuxVirtualMachineScaleSetAdminSshKeyArrayOutput `pulumi:"adminSshKeys"`
// The username of the local administrator on each Virtual Machine Scale Set instance. Changing this forces a new resource to be created.
AdminUsername pulumi.StringOutput `pulumi:"adminUsername"`
// An `automaticInstanceRepair` block as defined below. To enable the automatic instance repair, this Virtual Machine Scale Set must have a valid `healthProbeId` or an [Application Health Extension](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-health-extension).
//
// > **NOTE:** For more information about Automatic Instance Repair, please refer to [this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-instance-repairs).
AutomaticInstanceRepair LinuxVirtualMachineScaleSetAutomaticInstanceRepairOutput `pulumi:"automaticInstanceRepair"`
// An `automaticOsUpgradePolicy` block as defined below. This can only be specified when `upgradeMode` is set to either `Automatic` or `Rolling`.
AutomaticOsUpgradePolicy LinuxVirtualMachineScaleSetAutomaticOsUpgradePolicyPtrOutput `pulumi:"automaticOsUpgradePolicy"`
// A `bootDiagnostics` block as defined below.
BootDiagnostics LinuxVirtualMachineScaleSetBootDiagnosticsPtrOutput `pulumi:"bootDiagnostics"`
// Specifies the ID of the Capacity Reservation Group which the Virtual Machine Scale Set should be allocated to. Changing this forces a new resource to be created.
//
// > **NOTE:** `capacityReservationGroupId` cannot be used with `proximityPlacementGroupId`
//
// > **NOTE:** `singlePlacementGroup` must be set to `false` when `capacityReservationGroupId` is specified.
CapacityReservationGroupId pulumi.StringPtrOutput `pulumi:"capacityReservationGroupId"`
// The prefix which should be used for the name of the Virtual Machines in this Scale Set. If unspecified this defaults to the value for the `name` field. If the value of the `name` field is not a valid `computerNamePrefix`, then you must specify `computerNamePrefix`. Changing this forces a new resource to be created.
ComputerNamePrefix pulumi.StringOutput `pulumi:"computerNamePrefix"`
// The Base64-Encoded Custom Data which should be used for this Virtual Machine Scale Set.
//
// > **NOTE:** When Custom Data has been configured, it's not possible to remove it without tainting the Virtual Machine Scale Set, due to a limitation of the Azure API.
CustomData pulumi.StringPtrOutput `pulumi:"customData"`
// One or more `dataDisk` blocks as defined below.
DataDisks LinuxVirtualMachineScaleSetDataDiskArrayOutput `pulumi:"dataDisks"`
// Should Password Authentication be disabled on this Virtual Machine Scale Set? Defaults to `true`.
//
// > In general we'd recommend using SSH Keys for authentication rather than Passwords - but there's tradeoff's to each - please [see this thread for more information](https://security.stackexchange.com/questions/69407/why-is-using-an-ssh-key-more-secure-than-using-passwords).
//
// > **NOTE:** When a `adminPassword` is specified `disablePasswordAuthentication` must be set to `false`.
DisablePasswordAuthentication pulumi.BoolPtrOutput `pulumi:"disablePasswordAuthentication"`
// Should Virtual Machine Extensions be run on Overprovisioned Virtual Machines in the Scale Set? Defaults to `false`.
DoNotRunExtensionsOnOverprovisionedMachines pulumi.BoolPtrOutput `pulumi:"doNotRunExtensionsOnOverprovisionedMachines"`
// Specifies the Edge Zone within the Azure Region where this Linux Virtual Machine Scale Set should exist. Changing this forces a new Linux Virtual Machine Scale Set to be created.
EdgeZone pulumi.StringPtrOutput `pulumi:"edgeZone"`
// Should all of the disks (including the temp disk) attached to this Virtual Machine be encrypted by enabling Encryption at Host?
EncryptionAtHostEnabled pulumi.BoolPtrOutput `pulumi:"encryptionAtHostEnabled"`
// Specifies the eviction policy for Virtual Machines in this Scale Set. Possible values are `Deallocate` and `Delete`. Changing this forces a new resource to be created.
//
// > **NOTE:** This can only be configured when `priority` is set to `Spot`.
EvictionPolicy pulumi.StringPtrOutput `pulumi:"evictionPolicy"`
// Should extension operations be allowed on the Virtual Machine Scale Set? Possible values are `true` or `false`. Defaults to `true`. Changing this forces a new Linux Virtual Machine Scale Set to be created.
//
// > **NOTE:** `extensionOperationsEnabled` may only be set to `false` if there are no extensions defined in the `extension` field.
ExtensionOperationsEnabled pulumi.BoolOutput `pulumi:"extensionOperationsEnabled"`
// One or more `extension` blocks as defined below
Extensions LinuxVirtualMachineScaleSetExtensionArrayOutput `pulumi:"extensions"`
// Specifies the duration allocated 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. Defaults to `PT1H30M`.
ExtensionsTimeBudget pulumi.StringPtrOutput `pulumi:"extensionsTimeBudget"`
// One or more `galleryApplication` blocks as defined below.
GalleryApplication LinuxVirtualMachineScaleSetGalleryApplicationArrayOutput `pulumi:"galleryApplication"`
// Deprecated: `gallery_applications` has been renamed to `gallery_application` and will be deprecated in 4.0
GalleryApplications LinuxVirtualMachineScaleSetGalleryApplicationArrayOutput `pulumi:"galleryApplications"`
// The ID of a Load Balancer Probe which should be used to determine the health of an instance. This is Required and can only be specified when `upgradeMode` is set to `Automatic` or `Rolling`.
HealthProbeId pulumi.StringPtrOutput `pulumi:"healthProbeId"`
// Specifies the ID of the dedicated host group that the virtual machine scale set resides in. Changing this forces a new resource to be created.
HostGroupId pulumi.StringPtrOutput `pulumi:"hostGroupId"`
// An `identity` block as defined below.
Identity LinuxVirtualMachineScaleSetIdentityPtrOutput `pulumi:"identity"`
// The number of Virtual Machines in the Scale Set. Defaults to `0`.
//
// > **NOTE:** If you're using AutoScaling, you may wish to use [`Ignore Changes` functionality](https://www.pulumi.com/docs/intro/concepts/programming-model/#ignorechanges) to ignore changes to this field.
Instances pulumi.IntPtrOutput `pulumi:"instances"`
// The Azure location where the Linux Virtual Machine Scale Set should exist. Changing this forces a new resource to be created.
Location pulumi.StringOutput `pulumi:"location"`
// The maximum price you're willing to pay for each Virtual Machine in this Scale Set, in US Dollars; which must be greater than the current spot price. If this bid price falls below the current spot price the Virtual Machines in the Scale Set will be evicted using the `evictionPolicy`. Defaults to `-1`, which means that each Virtual Machine in this Scale Set should not be evicted for price reasons.
//
// > **NOTE:** This can only be configured when `priority` is set to `Spot`.
MaxBidPrice pulumi.Float64PtrOutput `pulumi:"maxBidPrice"`
// The name of the Linux Virtual Machine Scale Set. Changing this forces a new resource to be created.
Name pulumi.StringOutput `pulumi:"name"`
// One or more `networkInterface` blocks as defined below.
NetworkInterfaces LinuxVirtualMachineScaleSetNetworkInterfaceArrayOutput `pulumi:"networkInterfaces"`
// An `osDisk` block as defined below.
OsDisk LinuxVirtualMachineScaleSetOsDiskOutput `pulumi:"osDisk"`
// Should Azure over-provision Virtual Machines in this Scale Set? This means that multiple Virtual Machines will be provisioned and Azure will keep the instances which become available first - which improves provisioning success rates and improves deployment time. You're not billed for these over-provisioned VM's and they don't count towards the Subscription Quota. Defaults to `true`.
Overprovision pulumi.BoolPtrOutput `pulumi:"overprovision"`
// A `plan` block as defined below. Changing this forces a new resource to be created.
//
// > **NOTE:** When using an image from Azure Marketplace a `plan` must be specified.
Plan LinuxVirtualMachineScaleSetPlanPtrOutput `pulumi:"plan"`
// Specifies the number of fault domains that are used by this Linux Virtual Machine Scale Set. Changing this forces a new resource to be created.
PlatformFaultDomainCount pulumi.IntOutput `pulumi:"platformFaultDomainCount"`
// The Priority of this Virtual Machine Scale Set. Possible values are `Regular` and `Spot`. Defaults to `Regular`. Changing this value forces a new resource.
//
// > **NOTE:** When `priority` is set to `Spot` an `evictionPolicy` must be specified.
Priority pulumi.StringPtrOutput `pulumi:"priority"`
// Should the Azure VM Agent be provisioned on each Virtual Machine in the Scale Set? Defaults to `true`. Changing this value forces a new resource to be created.
ProvisionVmAgent pulumi.BoolPtrOutput `pulumi:"provisionVmAgent"`
// The ID of the Proximity Placement Group in which the Virtual Machine Scale Set should be assigned to. Changing this forces a new resource to be created.
ProximityPlacementGroupId pulumi.StringPtrOutput `pulumi:"proximityPlacementGroupId"`
// The name of the Resource Group in which the Linux Virtual Machine Scale Set should be exist. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// A `rollingUpgradePolicy` block as defined below. This is Required and can only be specified when `upgradeMode` is set to `Automatic` or `Rolling`. Changing this forces a new resource to be created.
RollingUpgradePolicy LinuxVirtualMachineScaleSetRollingUpgradePolicyPtrOutput `pulumi:"rollingUpgradePolicy"`
// A `scaleIn` block as defined below.
ScaleIn LinuxVirtualMachineScaleSetScaleInOutput `pulumi:"scaleIn"`
// Deprecated: `scale_in_policy` will be removed in favour of the `scale_in` code block in version 4.0 of the AzureRM Provider.
ScaleInPolicy pulumi.StringOutput `pulumi:"scaleInPolicy"`
// One or more `secret` blocks as defined below.
Secrets LinuxVirtualMachineScaleSetSecretArrayOutput `pulumi:"secrets"`
// Specifies whether secure boot should be enabled on the virtual machine. Changing this forces a new resource to be created.
SecureBootEnabled pulumi.BoolPtrOutput `pulumi:"secureBootEnabled"`
// Should this Virtual Machine Scale Set be limited to a Single Placement Group, which means the number of instances will be capped at 100 Virtual Machines. Defaults to `true`.
SinglePlacementGroup pulumi.BoolPtrOutput `pulumi:"singlePlacementGroup"`
// The Virtual Machine SKU for the Scale Set, such as `Standard_F2`.
Sku pulumi.StringOutput `pulumi:"sku"`
// The ID of an Image which each Virtual Machine in this Scale Set should be based on. Possible Image ID types include `Image ID`, `Shared Image ID`, `Shared Image Version ID`, `Community Gallery Image ID`, `Community Gallery Image Version ID`, `Shared Gallery Image ID` and `Shared Gallery Image Version ID`.
//
// > **NOTE:** One of either `sourceImageId` or `sourceImageReference` must be set.
SourceImageId pulumi.StringPtrOutput `pulumi:"sourceImageId"`
// A `sourceImageReference` block as defined below.
//
// > **NOTE:** One of either `sourceImageId` or `sourceImageReference` must be set.
SourceImageReference LinuxVirtualMachineScaleSetSourceImageReferencePtrOutput `pulumi:"sourceImageReference"`
// A `spotRestore` block as defined below.
SpotRestore LinuxVirtualMachineScaleSetSpotRestoreOutput `pulumi:"spotRestore"`
// A mapping of tags which should be assigned to this Virtual Machine Scale Set.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// A `terminateNotification` block as defined below.
//
// > **Note:** This property has been deprecated in favour of the `terminationNotification` property and will be removed in version 4.0 of the provider.
//
// Deprecated: `terminate_notification` has been renamed to `termination_notification` and will be removed in 4.0.
TerminateNotification LinuxVirtualMachineScaleSetTerminateNotificationOutput `pulumi:"terminateNotification"`
// A `terminationNotification` block as defined below.
TerminationNotification LinuxVirtualMachineScaleSetTerminationNotificationOutput `pulumi:"terminationNotification"`
// The Unique ID for this Linux Virtual Machine Scale Set.
UniqueId pulumi.StringOutput `pulumi:"uniqueId"`
UpgradeMode pulumi.StringPtrOutput `pulumi:"upgradeMode"`
// The Base64-Encoded User Data which should be used for this Virtual Machine Scale Set.
UserData pulumi.StringPtrOutput `pulumi:"userData"`
// Specifies whether vTPM should be enabled on the virtual machine. Changing this forces a new resource to be created.
VtpmEnabled pulumi.BoolPtrOutput `pulumi:"vtpmEnabled"`
// Should the Virtual Machines in this Scale Set be strictly evenly distributed across Availability Zones? Defaults to `false`. Changing this forces a new resource to be created.
//
// > **NOTE:** This can only be set to `true` when one or more `zones` are configured.
ZoneBalance pulumi.BoolPtrOutput `pulumi:"zoneBalance"`
// Specifies a list of Availability Zones in which this Linux Virtual Machine Scale Set should be located. Changing this forces a new Linux Virtual Machine Scale Set to be created.
Zones pulumi.StringArrayOutput `pulumi:"zones"`
}
// NewLinuxVirtualMachineScaleSet registers a new resource with the given unique name, arguments, and options.
func NewLinuxVirtualMachineScaleSet(ctx *pulumi.Context,
name string, args *LinuxVirtualMachineScaleSetArgs, opts ...pulumi.ResourceOption) (*LinuxVirtualMachineScaleSet, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AdminUsername == nil {
return nil, errors.New("invalid value for required argument 'AdminUsername'")
}
if args.NetworkInterfaces == nil {
return nil, errors.New("invalid value for required argument 'NetworkInterfaces'")
}
if args.OsDisk == nil {
return nil, errors.New("invalid value for required argument 'OsDisk'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
if args.Sku == nil {
return nil, errors.New("invalid value for required argument 'Sku'")
}
if args.AdminPassword != nil {
args.AdminPassword = pulumi.ToSecret(args.AdminPassword).(pulumi.StringPtrInput)
}
if args.CustomData != nil {
args.CustomData = pulumi.ToSecret(args.CustomData).(pulumi.StringPtrInput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"adminPassword",
"customData",
})
opts = append(opts, secrets)
opts = internal.PkgResourceDefaultOpts(opts)
var resource LinuxVirtualMachineScaleSet
err := ctx.RegisterResource("azure:compute/linuxVirtualMachineScaleSet:LinuxVirtualMachineScaleSet", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetLinuxVirtualMachineScaleSet gets an existing LinuxVirtualMachineScaleSet resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetLinuxVirtualMachineScaleSet(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *LinuxVirtualMachineScaleSetState, opts ...pulumi.ResourceOption) (*LinuxVirtualMachineScaleSet, error) {
var resource LinuxVirtualMachineScaleSet
err := ctx.ReadResource("azure:compute/linuxVirtualMachineScaleSet:LinuxVirtualMachineScaleSet", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering LinuxVirtualMachineScaleSet resources.
type linuxVirtualMachineScaleSetState struct {
// An `additionalCapabilities` block as defined below.
AdditionalCapabilities *LinuxVirtualMachineScaleSetAdditionalCapabilities `pulumi:"additionalCapabilities"`
// The Password which should be used for the local-administrator on this Virtual Machine. Changing this forces a new resource to be created.
//
// > **NOTE:** When an `adminPassword` is specified `disablePasswordAuthentication` must be set to `false`.
//
// > **NOTE:** One of either `adminPassword` or `adminSshKey` must be specified.
AdminPassword *string `pulumi:"adminPassword"`
// One or more `adminSshKey` blocks as defined below.
//
// > **NOTE:** One of either `adminPassword` or `adminSshKey` must be specified.
AdminSshKeys []LinuxVirtualMachineScaleSetAdminSshKey `pulumi:"adminSshKeys"`
// The username of the local administrator on each Virtual Machine Scale Set instance. Changing this forces a new resource to be created.
AdminUsername *string `pulumi:"adminUsername"`
// An `automaticInstanceRepair` block as defined below. To enable the automatic instance repair, this Virtual Machine Scale Set must have a valid `healthProbeId` or an [Application Health Extension](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-health-extension).
//
// > **NOTE:** For more information about Automatic Instance Repair, please refer to [this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-instance-repairs).
AutomaticInstanceRepair *LinuxVirtualMachineScaleSetAutomaticInstanceRepair `pulumi:"automaticInstanceRepair"`
// An `automaticOsUpgradePolicy` block as defined below. This can only be specified when `upgradeMode` is set to either `Automatic` or `Rolling`.
AutomaticOsUpgradePolicy *LinuxVirtualMachineScaleSetAutomaticOsUpgradePolicy `pulumi:"automaticOsUpgradePolicy"`
// A `bootDiagnostics` block as defined below.
BootDiagnostics *LinuxVirtualMachineScaleSetBootDiagnostics `pulumi:"bootDiagnostics"`
// Specifies the ID of the Capacity Reservation Group which the Virtual Machine Scale Set should be allocated to. Changing this forces a new resource to be created.
//
// > **NOTE:** `capacityReservationGroupId` cannot be used with `proximityPlacementGroupId`
//
// > **NOTE:** `singlePlacementGroup` must be set to `false` when `capacityReservationGroupId` is specified.
CapacityReservationGroupId *string `pulumi:"capacityReservationGroupId"`
// The prefix which should be used for the name of the Virtual Machines in this Scale Set. If unspecified this defaults to the value for the `name` field. If the value of the `name` field is not a valid `computerNamePrefix`, then you must specify `computerNamePrefix`. Changing this forces a new resource to be created.
ComputerNamePrefix *string `pulumi:"computerNamePrefix"`
// The Base64-Encoded Custom Data which should be used for this Virtual Machine Scale Set.
//
// > **NOTE:** When Custom Data has been configured, it's not possible to remove it without tainting the Virtual Machine Scale Set, due to a limitation of the Azure API.
CustomData *string `pulumi:"customData"`
// One or more `dataDisk` blocks as defined below.
DataDisks []LinuxVirtualMachineScaleSetDataDisk `pulumi:"dataDisks"`
// Should Password Authentication be disabled on this Virtual Machine Scale Set? Defaults to `true`.
//
// > In general we'd recommend using SSH Keys for authentication rather than Passwords - but there's tradeoff's to each - please [see this thread for more information](https://security.stackexchange.com/questions/69407/why-is-using-an-ssh-key-more-secure-than-using-passwords).
//
// > **NOTE:** When a `adminPassword` is specified `disablePasswordAuthentication` must be set to `false`.
DisablePasswordAuthentication *bool `pulumi:"disablePasswordAuthentication"`
// Should Virtual Machine Extensions be run on Overprovisioned Virtual Machines in the Scale Set? Defaults to `false`.
DoNotRunExtensionsOnOverprovisionedMachines *bool `pulumi:"doNotRunExtensionsOnOverprovisionedMachines"`
// Specifies the Edge Zone within the Azure Region where this Linux Virtual Machine Scale Set should exist. Changing this forces a new Linux Virtual Machine Scale Set to be created.
EdgeZone *string `pulumi:"edgeZone"`
// Should all of the disks (including the temp disk) attached to this Virtual Machine be encrypted by enabling Encryption at Host?
EncryptionAtHostEnabled *bool `pulumi:"encryptionAtHostEnabled"`
// Specifies the eviction policy for Virtual Machines in this Scale Set. Possible values are `Deallocate` and `Delete`. Changing this forces a new resource to be created.
//
// > **NOTE:** This can only be configured when `priority` is set to `Spot`.
EvictionPolicy *string `pulumi:"evictionPolicy"`
// Should extension operations be allowed on the Virtual Machine Scale Set? Possible values are `true` or `false`. Defaults to `true`. Changing this forces a new Linux Virtual Machine Scale Set to be created.
//
// > **NOTE:** `extensionOperationsEnabled` may only be set to `false` if there are no extensions defined in the `extension` field.
ExtensionOperationsEnabled *bool `pulumi:"extensionOperationsEnabled"`
// One or more `extension` blocks as defined below
Extensions []LinuxVirtualMachineScaleSetExtension `pulumi:"extensions"`
// Specifies the duration allocated 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. Defaults to `PT1H30M`.
ExtensionsTimeBudget *string `pulumi:"extensionsTimeBudget"`
// One or more `galleryApplication` blocks as defined below.
GalleryApplication []LinuxVirtualMachineScaleSetGalleryApplication `pulumi:"galleryApplication"`
// Deprecated: `gallery_applications` has been renamed to `gallery_application` and will be deprecated in 4.0
GalleryApplications []LinuxVirtualMachineScaleSetGalleryApplication `pulumi:"galleryApplications"`
// The ID of a Load Balancer Probe which should be used to determine the health of an instance. This is Required and can only be specified when `upgradeMode` is set to `Automatic` or `Rolling`.
HealthProbeId *string `pulumi:"healthProbeId"`
// Specifies the ID of the dedicated host group that the virtual machine scale set resides in. Changing this forces a new resource to be created.
HostGroupId *string `pulumi:"hostGroupId"`
// An `identity` block as defined below.
Identity *LinuxVirtualMachineScaleSetIdentity `pulumi:"identity"`
// The number of Virtual Machines in the Scale Set. Defaults to `0`.
//
// > **NOTE:** If you're using AutoScaling, you may wish to use [`Ignore Changes` functionality](https://www.pulumi.com/docs/intro/concepts/programming-model/#ignorechanges) to ignore changes to this field.
Instances *int `pulumi:"instances"`
// The Azure location where the Linux Virtual Machine Scale Set should exist. Changing this forces a new resource to be created.
Location *string `pulumi:"location"`
// The maximum price you're willing to pay for each Virtual Machine in this Scale Set, in US Dollars; which must be greater than the current spot price. If this bid price falls below the current spot price the Virtual Machines in the Scale Set will be evicted using the `evictionPolicy`. Defaults to `-1`, which means that each Virtual Machine in this Scale Set should not be evicted for price reasons.
//
// > **NOTE:** This can only be configured when `priority` is set to `Spot`.
MaxBidPrice *float64 `pulumi:"maxBidPrice"`
// The name of the Linux Virtual Machine Scale Set. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// One or more `networkInterface` blocks as defined below.
NetworkInterfaces []LinuxVirtualMachineScaleSetNetworkInterface `pulumi:"networkInterfaces"`
// An `osDisk` block as defined below.
OsDisk *LinuxVirtualMachineScaleSetOsDisk `pulumi:"osDisk"`
// Should Azure over-provision Virtual Machines in this Scale Set? This means that multiple Virtual Machines will be provisioned and Azure will keep the instances which become available first - which improves provisioning success rates and improves deployment time. You're not billed for these over-provisioned VM's and they don't count towards the Subscription Quota. Defaults to `true`.
Overprovision *bool `pulumi:"overprovision"`
// A `plan` block as defined below. Changing this forces a new resource to be created.
//
// > **NOTE:** When using an image from Azure Marketplace a `plan` must be specified.
Plan *LinuxVirtualMachineScaleSetPlan `pulumi:"plan"`
// Specifies the number of fault domains that are used by this Linux Virtual Machine Scale Set. Changing this forces a new resource to be created.
PlatformFaultDomainCount *int `pulumi:"platformFaultDomainCount"`
// The Priority of this Virtual Machine Scale Set. Possible values are `Regular` and `Spot`. Defaults to `Regular`. Changing this value forces a new resource.
//
// > **NOTE:** When `priority` is set to `Spot` an `evictionPolicy` must be specified.
Priority *string `pulumi:"priority"`
// Should the Azure VM Agent be provisioned on each Virtual Machine in the Scale Set? Defaults to `true`. Changing this value forces a new resource to be created.
ProvisionVmAgent *bool `pulumi:"provisionVmAgent"`
// The ID of the Proximity Placement Group in which the Virtual Machine Scale Set should be assigned to. Changing this forces a new resource to be created.
ProximityPlacementGroupId *string `pulumi:"proximityPlacementGroupId"`
// The name of the Resource Group in which the Linux Virtual Machine Scale Set should be exist. Changing this forces a new resource to be created.
ResourceGroupName *string `pulumi:"resourceGroupName"`
// A `rollingUpgradePolicy` block as defined below. This is Required and can only be specified when `upgradeMode` is set to `Automatic` or `Rolling`. Changing this forces a new resource to be created.
RollingUpgradePolicy *LinuxVirtualMachineScaleSetRollingUpgradePolicy `pulumi:"rollingUpgradePolicy"`
// A `scaleIn` block as defined below.
ScaleIn *LinuxVirtualMachineScaleSetScaleIn `pulumi:"scaleIn"`
// Deprecated: `scale_in_policy` will be removed in favour of the `scale_in` code block in version 4.0 of the AzureRM Provider.
ScaleInPolicy *string `pulumi:"scaleInPolicy"`
// One or more `secret` blocks as defined below.
Secrets []LinuxVirtualMachineScaleSetSecret `pulumi:"secrets"`
// Specifies whether secure boot should be enabled on the virtual machine. Changing this forces a new resource to be created.
SecureBootEnabled *bool `pulumi:"secureBootEnabled"`
// Should this Virtual Machine Scale Set be limited to a Single Placement Group, which means the number of instances will be capped at 100 Virtual Machines. Defaults to `true`.
SinglePlacementGroup *bool `pulumi:"singlePlacementGroup"`
// The Virtual Machine SKU for the Scale Set, such as `Standard_F2`.
Sku *string `pulumi:"sku"`
// The ID of an Image which each Virtual Machine in this Scale Set should be based on. Possible Image ID types include `Image ID`, `Shared Image ID`, `Shared Image Version ID`, `Community Gallery Image ID`, `Community Gallery Image Version ID`, `Shared Gallery Image ID` and `Shared Gallery Image Version ID`.
//
// > **NOTE:** One of either `sourceImageId` or `sourceImageReference` must be set.
SourceImageId *string `pulumi:"sourceImageId"`
// A `sourceImageReference` block as defined below.
//
// > **NOTE:** One of either `sourceImageId` or `sourceImageReference` must be set.
SourceImageReference *LinuxVirtualMachineScaleSetSourceImageReference `pulumi:"sourceImageReference"`
// A `spotRestore` block as defined below.
SpotRestore *LinuxVirtualMachineScaleSetSpotRestore `pulumi:"spotRestore"`
// A mapping of tags which should be assigned to this Virtual Machine Scale Set.
Tags map[string]string `pulumi:"tags"`
// A `terminateNotification` block as defined below.
//
// > **Note:** This property has been deprecated in favour of the `terminationNotification` property and will be removed in version 4.0 of the provider.
//
// Deprecated: `terminate_notification` has been renamed to `termination_notification` and will be removed in 4.0.
TerminateNotification *LinuxVirtualMachineScaleSetTerminateNotification `pulumi:"terminateNotification"`
// A `terminationNotification` block as defined below.
TerminationNotification *LinuxVirtualMachineScaleSetTerminationNotification `pulumi:"terminationNotification"`
// The Unique ID for this Linux Virtual Machine Scale Set.
UniqueId *string `pulumi:"uniqueId"`
UpgradeMode *string `pulumi:"upgradeMode"`
// The Base64-Encoded User Data which should be used for this Virtual Machine Scale Set.
UserData *string `pulumi:"userData"`
// Specifies whether vTPM should be enabled on the virtual machine. Changing this forces a new resource to be created.
VtpmEnabled *bool `pulumi:"vtpmEnabled"`
// Should the Virtual Machines in this Scale Set be strictly evenly distributed across Availability Zones? Defaults to `false`. Changing this forces a new resource to be created.
//
// > **NOTE:** This can only be set to `true` when one or more `zones` are configured.
ZoneBalance *bool `pulumi:"zoneBalance"`
// Specifies a list of Availability Zones in which this Linux Virtual Machine Scale Set should be located. Changing this forces a new Linux Virtual Machine Scale Set to be created.
Zones []string `pulumi:"zones"`
}
type LinuxVirtualMachineScaleSetState struct {
// An `additionalCapabilities` block as defined below.
AdditionalCapabilities LinuxVirtualMachineScaleSetAdditionalCapabilitiesPtrInput
// The Password which should be used for the local-administrator on this Virtual Machine. Changing this forces a new resource to be created.
//
// > **NOTE:** When an `adminPassword` is specified `disablePasswordAuthentication` must be set to `false`.
//
// > **NOTE:** One of either `adminPassword` or `adminSshKey` must be specified.
AdminPassword pulumi.StringPtrInput
// One or more `adminSshKey` blocks as defined below.
//
// > **NOTE:** One of either `adminPassword` or `adminSshKey` must be specified.
AdminSshKeys LinuxVirtualMachineScaleSetAdminSshKeyArrayInput
// The username of the local administrator on each Virtual Machine Scale Set instance. Changing this forces a new resource to be created.
AdminUsername pulumi.StringPtrInput
// An `automaticInstanceRepair` block as defined below. To enable the automatic instance repair, this Virtual Machine Scale Set must have a valid `healthProbeId` or an [Application Health Extension](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-health-extension).
//
// > **NOTE:** For more information about Automatic Instance Repair, please refer to [this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-instance-repairs).
AutomaticInstanceRepair LinuxVirtualMachineScaleSetAutomaticInstanceRepairPtrInput
// An `automaticOsUpgradePolicy` block as defined below. This can only be specified when `upgradeMode` is set to either `Automatic` or `Rolling`.
AutomaticOsUpgradePolicy LinuxVirtualMachineScaleSetAutomaticOsUpgradePolicyPtrInput
// A `bootDiagnostics` block as defined below.
BootDiagnostics LinuxVirtualMachineScaleSetBootDiagnosticsPtrInput
// Specifies the ID of the Capacity Reservation Group which the Virtual Machine Scale Set should be allocated to. Changing this forces a new resource to be created.
//
// > **NOTE:** `capacityReservationGroupId` cannot be used with `proximityPlacementGroupId`
//
// > **NOTE:** `singlePlacementGroup` must be set to `false` when `capacityReservationGroupId` is specified.
CapacityReservationGroupId pulumi.StringPtrInput
// The prefix which should be used for the name of the Virtual Machines in this Scale Set. If unspecified this defaults to the value for the `name` field. If the value of the `name` field is not a valid `computerNamePrefix`, then you must specify `computerNamePrefix`. Changing this forces a new resource to be created.
ComputerNamePrefix pulumi.StringPtrInput
// The Base64-Encoded Custom Data which should be used for this Virtual Machine Scale Set.
//
// > **NOTE:** When Custom Data has been configured, it's not possible to remove it without tainting the Virtual Machine Scale Set, due to a limitation of the Azure API.
CustomData pulumi.StringPtrInput
// One or more `dataDisk` blocks as defined below.
DataDisks LinuxVirtualMachineScaleSetDataDiskArrayInput
// Should Password Authentication be disabled on this Virtual Machine Scale Set? Defaults to `true`.
//
// > In general we'd recommend using SSH Keys for authentication rather than Passwords - but there's tradeoff's to each - please [see this thread for more information](https://security.stackexchange.com/questions/69407/why-is-using-an-ssh-key-more-secure-than-using-passwords).
//
// > **NOTE:** When a `adminPassword` is specified `disablePasswordAuthentication` must be set to `false`.
DisablePasswordAuthentication pulumi.BoolPtrInput
// Should Virtual Machine Extensions be run on Overprovisioned Virtual Machines in the Scale Set? Defaults to `false`.
DoNotRunExtensionsOnOverprovisionedMachines pulumi.BoolPtrInput
// Specifies the Edge Zone within the Azure Region where this Linux Virtual Machine Scale Set should exist. Changing this forces a new Linux Virtual Machine Scale Set to be created.
EdgeZone pulumi.StringPtrInput
// Should all of the disks (including the temp disk) attached to this Virtual Machine be encrypted by enabling Encryption at Host?
EncryptionAtHostEnabled pulumi.BoolPtrInput
// Specifies the eviction policy for Virtual Machines in this Scale Set. Possible values are `Deallocate` and `Delete`. Changing this forces a new resource to be created.
//
// > **NOTE:** This can only be configured when `priority` is set to `Spot`.
EvictionPolicy pulumi.StringPtrInput
// Should extension operations be allowed on the Virtual Machine Scale Set? Possible values are `true` or `false`. Defaults to `true`. Changing this forces a new Linux Virtual Machine Scale Set to be created.
//
// > **NOTE:** `extensionOperationsEnabled` may only be set to `false` if there are no extensions defined in the `extension` field.
ExtensionOperationsEnabled pulumi.BoolPtrInput
// One or more `extension` blocks as defined below
Extensions LinuxVirtualMachineScaleSetExtensionArrayInput
// Specifies the duration allocated 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. Defaults to `PT1H30M`.
ExtensionsTimeBudget pulumi.StringPtrInput
// One or more `galleryApplication` blocks as defined below.
GalleryApplication LinuxVirtualMachineScaleSetGalleryApplicationArrayInput
// Deprecated: `gallery_applications` has been renamed to `gallery_application` and will be deprecated in 4.0
GalleryApplications LinuxVirtualMachineScaleSetGalleryApplicationArrayInput
// The ID of a Load Balancer Probe which should be used to determine the health of an instance. This is Required and can only be specified when `upgradeMode` is set to `Automatic` or `Rolling`.
HealthProbeId pulumi.StringPtrInput
// Specifies the ID of the dedicated host group that the virtual machine scale set resides in. Changing this forces a new resource to be created.
HostGroupId pulumi.StringPtrInput
// An `identity` block as defined below.
Identity LinuxVirtualMachineScaleSetIdentityPtrInput
// The number of Virtual Machines in the Scale Set. Defaults to `0`.
//
// > **NOTE:** If you're using AutoScaling, you may wish to use [`Ignore Changes` functionality](https://www.pulumi.com/docs/intro/concepts/programming-model/#ignorechanges) to ignore changes to this field.
Instances pulumi.IntPtrInput
// The Azure location where the Linux Virtual Machine Scale Set should exist. Changing this forces a new resource to be created.
Location pulumi.StringPtrInput
// The maximum price you're willing to pay for each Virtual Machine in this Scale Set, in US Dollars; which must be greater than the current spot price. If this bid price falls below the current spot price the Virtual Machines in the Scale Set will be evicted using the `evictionPolicy`. Defaults to `-1`, which means that each Virtual Machine in this Scale Set should not be evicted for price reasons.
//
// > **NOTE:** This can only be configured when `priority` is set to `Spot`.
MaxBidPrice pulumi.Float64PtrInput
// The name of the Linux Virtual Machine Scale Set. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// One or more `networkInterface` blocks as defined below.
NetworkInterfaces LinuxVirtualMachineScaleSetNetworkInterfaceArrayInput
// An `osDisk` block as defined below.
OsDisk LinuxVirtualMachineScaleSetOsDiskPtrInput
// Should Azure over-provision Virtual Machines in this Scale Set? This means that multiple Virtual Machines will be provisioned and Azure will keep the instances which become available first - which improves provisioning success rates and improves deployment time. You're not billed for these over-provisioned VM's and they don't count towards the Subscription Quota. Defaults to `true`.
Overprovision pulumi.BoolPtrInput
// A `plan` block as defined below. Changing this forces a new resource to be created.
//
// > **NOTE:** When using an image from Azure Marketplace a `plan` must be specified.
Plan LinuxVirtualMachineScaleSetPlanPtrInput
// Specifies the number of fault domains that are used by this Linux Virtual Machine Scale Set. Changing this forces a new resource to be created.
PlatformFaultDomainCount pulumi.IntPtrInput
// The Priority of this Virtual Machine Scale Set. Possible values are `Regular` and `Spot`. Defaults to `Regular`. Changing this value forces a new resource.
//
// > **NOTE:** When `priority` is set to `Spot` an `evictionPolicy` must be specified.
Priority pulumi.StringPtrInput
// Should the Azure VM Agent be provisioned on each Virtual Machine in the Scale Set? Defaults to `true`. Changing this value forces a new resource to be created.
ProvisionVmAgent pulumi.BoolPtrInput
// The ID of the Proximity Placement Group in which the Virtual Machine Scale Set should be assigned to. Changing this forces a new resource to be created.
ProximityPlacementGroupId pulumi.StringPtrInput
// The name of the Resource Group in which the Linux Virtual Machine Scale Set should be exist. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringPtrInput
// A `rollingUpgradePolicy` block as defined below. This is Required and can only be specified when `upgradeMode` is set to `Automatic` or `Rolling`. Changing this forces a new resource to be created.
RollingUpgradePolicy LinuxVirtualMachineScaleSetRollingUpgradePolicyPtrInput
// A `scaleIn` block as defined below.
ScaleIn LinuxVirtualMachineScaleSetScaleInPtrInput
// Deprecated: `scale_in_policy` will be removed in favour of the `scale_in` code block in version 4.0 of the AzureRM Provider.
ScaleInPolicy pulumi.StringPtrInput
// One or more `secret` blocks as defined below.
Secrets LinuxVirtualMachineScaleSetSecretArrayInput
// Specifies whether secure boot should be enabled on the virtual machine. Changing this forces a new resource to be created.
SecureBootEnabled pulumi.BoolPtrInput
// Should this Virtual Machine Scale Set be limited to a Single Placement Group, which means the number of instances will be capped at 100 Virtual Machines. Defaults to `true`.
SinglePlacementGroup pulumi.BoolPtrInput
// The Virtual Machine SKU for the Scale Set, such as `Standard_F2`.
Sku pulumi.StringPtrInput
// The ID of an Image which each Virtual Machine in this Scale Set should be based on. Possible Image ID types include `Image ID`, `Shared Image ID`, `Shared Image Version ID`, `Community Gallery Image ID`, `Community Gallery Image Version ID`, `Shared Gallery Image ID` and `Shared Gallery Image Version ID`.
//
// > **NOTE:** One of either `sourceImageId` or `sourceImageReference` must be set.
SourceImageId pulumi.StringPtrInput
// A `sourceImageReference` block as defined below.
//
// > **NOTE:** One of either `sourceImageId` or `sourceImageReference` must be set.
SourceImageReference LinuxVirtualMachineScaleSetSourceImageReferencePtrInput
// A `spotRestore` block as defined below.
SpotRestore LinuxVirtualMachineScaleSetSpotRestorePtrInput
// A mapping of tags which should be assigned to this Virtual Machine Scale Set.
Tags pulumi.StringMapInput
// A `terminateNotification` block as defined below.
//
// > **Note:** This property has been deprecated in favour of the `terminationNotification` property and will be removed in version 4.0 of the provider.
//
// Deprecated: `terminate_notification` has been renamed to `termination_notification` and will be removed in 4.0.
TerminateNotification LinuxVirtualMachineScaleSetTerminateNotificationPtrInput
// A `terminationNotification` block as defined below.
TerminationNotification LinuxVirtualMachineScaleSetTerminationNotificationPtrInput
// The Unique ID for this Linux Virtual Machine Scale Set.
UniqueId pulumi.StringPtrInput
UpgradeMode pulumi.StringPtrInput
// The Base64-Encoded User Data which should be used for this Virtual Machine Scale Set.
UserData pulumi.StringPtrInput
// Specifies whether vTPM should be enabled on the virtual machine. Changing this forces a new resource to be created.
VtpmEnabled pulumi.BoolPtrInput
// Should the Virtual Machines in this Scale Set be strictly evenly distributed across Availability Zones? Defaults to `false`. Changing this forces a new resource to be created.
//
// > **NOTE:** This can only be set to `true` when one or more `zones` are configured.
ZoneBalance pulumi.BoolPtrInput
// Specifies a list of Availability Zones in which this Linux Virtual Machine Scale Set should be located. Changing this forces a new Linux Virtual Machine Scale Set to be created.
Zones pulumi.StringArrayInput
}
func (LinuxVirtualMachineScaleSetState) ElementType() reflect.Type {
return reflect.TypeOf((*linuxVirtualMachineScaleSetState)(nil)).Elem()
}
type linuxVirtualMachineScaleSetArgs struct {
// An `additionalCapabilities` block as defined below.
AdditionalCapabilities *LinuxVirtualMachineScaleSetAdditionalCapabilities `pulumi:"additionalCapabilities"`
// The Password which should be used for the local-administrator on this Virtual Machine. Changing this forces a new resource to be created.
//
// > **NOTE:** When an `adminPassword` is specified `disablePasswordAuthentication` must be set to `false`.
//
// > **NOTE:** One of either `adminPassword` or `adminSshKey` must be specified.
AdminPassword *string `pulumi:"adminPassword"`
// One or more `adminSshKey` blocks as defined below.
//
// > **NOTE:** One of either `adminPassword` or `adminSshKey` must be specified.
AdminSshKeys []LinuxVirtualMachineScaleSetAdminSshKey `pulumi:"adminSshKeys"`
// The username of the local administrator on each Virtual Machine Scale Set instance. Changing this forces a new resource to be created.
AdminUsername string `pulumi:"adminUsername"`
// An `automaticInstanceRepair` block as defined below. To enable the automatic instance repair, this Virtual Machine Scale Set must have a valid `healthProbeId` or an [Application Health Extension](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-health-extension).
//
// > **NOTE:** For more information about Automatic Instance Repair, please refer to [this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-instance-repairs).
AutomaticInstanceRepair *LinuxVirtualMachineScaleSetAutomaticInstanceRepair `pulumi:"automaticInstanceRepair"`
// An `automaticOsUpgradePolicy` block as defined below. This can only be specified when `upgradeMode` is set to either `Automatic` or `Rolling`.
AutomaticOsUpgradePolicy *LinuxVirtualMachineScaleSetAutomaticOsUpgradePolicy `pulumi:"automaticOsUpgradePolicy"`
// A `bootDiagnostics` block as defined below.
BootDiagnostics *LinuxVirtualMachineScaleSetBootDiagnostics `pulumi:"bootDiagnostics"`
// Specifies the ID of the Capacity Reservation Group which the Virtual Machine Scale Set should be allocated to. Changing this forces a new resource to be created.
//
// > **NOTE:** `capacityReservationGroupId` cannot be used with `proximityPlacementGroupId`
//
// > **NOTE:** `singlePlacementGroup` must be set to `false` when `capacityReservationGroupId` is specified.
CapacityReservationGroupId *string `pulumi:"capacityReservationGroupId"`
// The prefix which should be used for the name of the Virtual Machines in this Scale Set. If unspecified this defaults to the value for the `name` field. If the value of the `name` field is not a valid `computerNamePrefix`, then you must specify `computerNamePrefix`. Changing this forces a new resource to be created.
ComputerNamePrefix *string `pulumi:"computerNamePrefix"`
// The Base64-Encoded Custom Data which should be used for this Virtual Machine Scale Set.
//
// > **NOTE:** When Custom Data has been configured, it's not possible to remove it without tainting the Virtual Machine Scale Set, due to a limitation of the Azure API.
CustomData *string `pulumi:"customData"`
// One or more `dataDisk` blocks as defined below.
DataDisks []LinuxVirtualMachineScaleSetDataDisk `pulumi:"dataDisks"`
// Should Password Authentication be disabled on this Virtual Machine Scale Set? Defaults to `true`.
//
// > In general we'd recommend using SSH Keys for authentication rather than Passwords - but there's tradeoff's to each - please [see this thread for more information](https://security.stackexchange.com/questions/69407/why-is-using-an-ssh-key-more-secure-than-using-passwords).
//
// > **NOTE:** When a `adminPassword` is specified `disablePasswordAuthentication` must be set to `false`.
DisablePasswordAuthentication *bool `pulumi:"disablePasswordAuthentication"`
// Should Virtual Machine Extensions be run on Overprovisioned Virtual Machines in the Scale Set? Defaults to `false`.
DoNotRunExtensionsOnOverprovisionedMachines *bool `pulumi:"doNotRunExtensionsOnOverprovisionedMachines"`
// Specifies the Edge Zone within the Azure Region where this Linux Virtual Machine Scale Set should exist. Changing this forces a new Linux Virtual Machine Scale Set to be created.
EdgeZone *string `pulumi:"edgeZone"`
// Should all of the disks (including the temp disk) attached to this Virtual Machine be encrypted by enabling Encryption at Host?
EncryptionAtHostEnabled *bool `pulumi:"encryptionAtHostEnabled"`
// Specifies the eviction policy for Virtual Machines in this Scale Set. Possible values are `Deallocate` and `Delete`. Changing this forces a new resource to be created.
//
// > **NOTE:** This can only be configured when `priority` is set to `Spot`.
EvictionPolicy *string `pulumi:"evictionPolicy"`
// Should extension operations be allowed on the Virtual Machine Scale Set? Possible values are `true` or `false`. Defaults to `true`. Changing this forces a new Linux Virtual Machine Scale Set to be created.
//
// > **NOTE:** `extensionOperationsEnabled` may only be set to `false` if there are no extensions defined in the `extension` field.
ExtensionOperationsEnabled *bool `pulumi:"extensionOperationsEnabled"`
// One or more `extension` blocks as defined below
Extensions []LinuxVirtualMachineScaleSetExtension `pulumi:"extensions"`
// Specifies the duration allocated 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. Defaults to `PT1H30M`.
ExtensionsTimeBudget *string `pulumi:"extensionsTimeBudget"`
// One or more `galleryApplication` blocks as defined below.
GalleryApplication []LinuxVirtualMachineScaleSetGalleryApplication `pulumi:"galleryApplication"`
// Deprecated: `gallery_applications` has been renamed to `gallery_application` and will be deprecated in 4.0
GalleryApplications []LinuxVirtualMachineScaleSetGalleryApplication `pulumi:"galleryApplications"`
// The ID of a Load Balancer Probe which should be used to determine the health of an instance. This is Required and can only be specified when `upgradeMode` is set to `Automatic` or `Rolling`.
HealthProbeId *string `pulumi:"healthProbeId"`
// Specifies the ID of the dedicated host group that the virtual machine scale set resides in. Changing this forces a new resource to be created.
HostGroupId *string `pulumi:"hostGroupId"`
// An `identity` block as defined below.
Identity *LinuxVirtualMachineScaleSetIdentity `pulumi:"identity"`
// The number of Virtual Machines in the Scale Set. Defaults to `0`.
//
// > **NOTE:** If you're using AutoScaling, you may wish to use [`Ignore Changes` functionality](https://www.pulumi.com/docs/intro/concepts/programming-model/#ignorechanges) to ignore changes to this field.
Instances *int `pulumi:"instances"`
// The Azure location where the Linux Virtual Machine Scale Set should exist. Changing this forces a new resource to be created.
Location *string `pulumi:"location"`
// The maximum price you're willing to pay for each Virtual Machine in this Scale Set, in US Dollars; which must be greater than the current spot price. If this bid price falls below the current spot price the Virtual Machines in the Scale Set will be evicted using the `evictionPolicy`. Defaults to `-1`, which means that each Virtual Machine in this Scale Set should not be evicted for price reasons.
//
// > **NOTE:** This can only be configured when `priority` is set to `Spot`.
MaxBidPrice *float64 `pulumi:"maxBidPrice"`
// The name of the Linux Virtual Machine Scale Set. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// One or more `networkInterface` blocks as defined below.
NetworkInterfaces []LinuxVirtualMachineScaleSetNetworkInterface `pulumi:"networkInterfaces"`
// An `osDisk` block as defined below.
OsDisk LinuxVirtualMachineScaleSetOsDisk `pulumi:"osDisk"`
// Should Azure over-provision Virtual Machines in this Scale Set? This means that multiple Virtual Machines will be provisioned and Azure will keep the instances which become available first - which improves provisioning success rates and improves deployment time. You're not billed for these over-provisioned VM's and they don't count towards the Subscription Quota. Defaults to `true`.
Overprovision *bool `pulumi:"overprovision"`
// A `plan` block as defined below. Changing this forces a new resource to be created.
//
// > **NOTE:** When using an image from Azure Marketplace a `plan` must be specified.
Plan *LinuxVirtualMachineScaleSetPlan `pulumi:"plan"`
// Specifies the number of fault domains that are used by this Linux Virtual Machine Scale Set. Changing this forces a new resource to be created.
PlatformFaultDomainCount *int `pulumi:"platformFaultDomainCount"`
// The Priority of this Virtual Machine Scale Set. Possible values are `Regular` and `Spot`. Defaults to `Regular`. Changing this value forces a new resource.
//
// > **NOTE:** When `priority` is set to `Spot` an `evictionPolicy` must be specified.
Priority *string `pulumi:"priority"`
// Should the Azure VM Agent be provisioned on each Virtual Machine in the Scale Set? Defaults to `true`. Changing this value forces a new resource to be created.
ProvisionVmAgent *bool `pulumi:"provisionVmAgent"`
// The ID of the Proximity Placement Group in which the Virtual Machine Scale Set should be assigned to. Changing this forces a new resource to be created.
ProximityPlacementGroupId *string `pulumi:"proximityPlacementGroupId"`
// The name of the Resource Group in which the Linux Virtual Machine Scale Set should be exist. Changing this forces a new resource to be created.
ResourceGroupName string `pulumi:"resourceGroupName"`
// A `rollingUpgradePolicy` block as defined below. This is Required and can only be specified when `upgradeMode` is set to `Automatic` or `Rolling`. Changing this forces a new resource to be created.
RollingUpgradePolicy *LinuxVirtualMachineScaleSetRollingUpgradePolicy `pulumi:"rollingUpgradePolicy"`
// A `scaleIn` block as defined below.
ScaleIn *LinuxVirtualMachineScaleSetScaleIn `pulumi:"scaleIn"`
// Deprecated: `scale_in_policy` will be removed in favour of the `scale_in` code block in version 4.0 of the AzureRM Provider.
ScaleInPolicy *string `pulumi:"scaleInPolicy"`
// One or more `secret` blocks as defined below.
Secrets []LinuxVirtualMachineScaleSetSecret `pulumi:"secrets"`
// Specifies whether secure boot should be enabled on the virtual machine. Changing this forces a new resource to be created.
SecureBootEnabled *bool `pulumi:"secureBootEnabled"`
// Should this Virtual Machine Scale Set be limited to a Single Placement Group, which means the number of instances will be capped at 100 Virtual Machines. Defaults to `true`.
SinglePlacementGroup *bool `pulumi:"singlePlacementGroup"`
// The Virtual Machine SKU for the Scale Set, such as `Standard_F2`.
Sku string `pulumi:"sku"`
// The ID of an Image which each Virtual Machine in this Scale Set should be based on. Possible Image ID types include `Image ID`, `Shared Image ID`, `Shared Image Version ID`, `Community Gallery Image ID`, `Community Gallery Image Version ID`, `Shared Gallery Image ID` and `Shared Gallery Image Version ID`.
//
// > **NOTE:** One of either `sourceImageId` or `sourceImageReference` must be set.
SourceImageId *string `pulumi:"sourceImageId"`
// A `sourceImageReference` block as defined below.
//
// > **NOTE:** One of either `sourceImageId` or `sourceImageReference` must be set.
SourceImageReference *LinuxVirtualMachineScaleSetSourceImageReference `pulumi:"sourceImageReference"`
// A `spotRestore` block as defined below.
SpotRestore *LinuxVirtualMachineScaleSetSpotRestore `pulumi:"spotRestore"`
// A mapping of tags which should be assigned to this Virtual Machine Scale Set.
Tags map[string]string `pulumi:"tags"`
// A `terminateNotification` block as defined below.
//
// > **Note:** This property has been deprecated in favour of the `terminationNotification` property and will be removed in version 4.0 of the provider.
//
// Deprecated: `terminate_notification` has been renamed to `termination_notification` and will be removed in 4.0.
TerminateNotification *LinuxVirtualMachineScaleSetTerminateNotification `pulumi:"terminateNotification"`
// A `terminationNotification` block as defined below.
TerminationNotification *LinuxVirtualMachineScaleSetTerminationNotification `pulumi:"terminationNotification"`
UpgradeMode *string `pulumi:"upgradeMode"`
// The Base64-Encoded User Data which should be used for this Virtual Machine Scale Set.
UserData *string `pulumi:"userData"`
// Specifies whether vTPM should be enabled on the virtual machine. Changing this forces a new resource to be created.
VtpmEnabled *bool `pulumi:"vtpmEnabled"`
// Should the Virtual Machines in this Scale Set be strictly evenly distributed across Availability Zones? Defaults to `false`. Changing this forces a new resource to be created.
//
// > **NOTE:** This can only be set to `true` when one or more `zones` are configured.
ZoneBalance *bool `pulumi:"zoneBalance"`
// Specifies a list of Availability Zones in which this Linux Virtual Machine Scale Set should be located. Changing this forces a new Linux Virtual Machine Scale Set to be created.
Zones []string `pulumi:"zones"`
}
// The set of arguments for constructing a LinuxVirtualMachineScaleSet resource.
type LinuxVirtualMachineScaleSetArgs struct {
// An `additionalCapabilities` block as defined below.
AdditionalCapabilities LinuxVirtualMachineScaleSetAdditionalCapabilitiesPtrInput
// The Password which should be used for the local-administrator on this Virtual Machine. Changing this forces a new resource to be created.
//
// > **NOTE:** When an `adminPassword` is specified `disablePasswordAuthentication` must be set to `false`.
//
// > **NOTE:** One of either `adminPassword` or `adminSshKey` must be specified.
AdminPassword pulumi.StringPtrInput
// One or more `adminSshKey` blocks as defined below.
//
// > **NOTE:** One of either `adminPassword` or `adminSshKey` must be specified.
AdminSshKeys LinuxVirtualMachineScaleSetAdminSshKeyArrayInput
// The username of the local administrator on each Virtual Machine Scale Set instance. Changing this forces a new resource to be created.
AdminUsername pulumi.StringInput
// An `automaticInstanceRepair` block as defined below. To enable the automatic instance repair, this Virtual Machine Scale Set must have a valid `healthProbeId` or an [Application Health Extension](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-health-extension).
//
// > **NOTE:** For more information about Automatic Instance Repair, please refer to [this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-instance-repairs).
AutomaticInstanceRepair LinuxVirtualMachineScaleSetAutomaticInstanceRepairPtrInput
// An `automaticOsUpgradePolicy` block as defined below. This can only be specified when `upgradeMode` is set to either `Automatic` or `Rolling`.
AutomaticOsUpgradePolicy LinuxVirtualMachineScaleSetAutomaticOsUpgradePolicyPtrInput
// A `bootDiagnostics` block as defined below.
BootDiagnostics LinuxVirtualMachineScaleSetBootDiagnosticsPtrInput
// Specifies the ID of the Capacity Reservation Group which the Virtual Machine Scale Set should be allocated to. Changing this forces a new resource to be created.
//
// > **NOTE:** `capacityReservationGroupId` cannot be used with `proximityPlacementGroupId`
//
// > **NOTE:** `singlePlacementGroup` must be set to `false` when `capacityReservationGroupId` is specified.
CapacityReservationGroupId pulumi.StringPtrInput
// The prefix which should be used for the name of the Virtual Machines in this Scale Set. If unspecified this defaults to the value for the `name` field. If the value of the `name` field is not a valid `computerNamePrefix`, then you must specify `computerNamePrefix`. Changing this forces a new resource to be created.
ComputerNamePrefix pulumi.StringPtrInput
// The Base64-Encoded Custom Data which should be used for this Virtual Machine Scale Set.
//
// > **NOTE:** When Custom Data has been configured, it's not possible to remove it without tainting the Virtual Machine Scale Set, due to a limitation of the Azure API.
CustomData pulumi.StringPtrInput
// One or more `dataDisk` blocks as defined below.
DataDisks LinuxVirtualMachineScaleSetDataDiskArrayInput
// Should Password Authentication be disabled on this Virtual Machine Scale Set? Defaults to `true`.
//
// > In general we'd recommend using SSH Keys for authentication rather than Passwords - but there's tradeoff's to each - please [see this thread for more information](https://security.stackexchange.com/questions/69407/why-is-using-an-ssh-key-more-secure-than-using-passwords).
//
// > **NOTE:** When a `adminPassword` is specified `disablePasswordAuthentication` must be set to `false`.
DisablePasswordAuthentication pulumi.BoolPtrInput
// Should Virtual Machine Extensions be run on Overprovisioned Virtual Machines in the Scale Set? Defaults to `false`.
DoNotRunExtensionsOnOverprovisionedMachines pulumi.BoolPtrInput
// Specifies the Edge Zone within the Azure Region where this Linux Virtual Machine Scale Set should exist. Changing this forces a new Linux Virtual Machine Scale Set to be created.
EdgeZone pulumi.StringPtrInput
// Should all of the disks (including the temp disk) attached to this Virtual Machine be encrypted by enabling Encryption at Host?
EncryptionAtHostEnabled pulumi.BoolPtrInput
// Specifies the eviction policy for Virtual Machines in this Scale Set. Possible values are `Deallocate` and `Delete`. Changing this forces a new resource to be created.
//
// > **NOTE:** This can only be configured when `priority` is set to `Spot`.
EvictionPolicy pulumi.StringPtrInput
// Should extension operations be allowed on the Virtual Machine Scale Set? Possible values are `true` or `false`. Defaults to `true`. Changing this forces a new Linux Virtual Machine Scale Set to be created.
//
// > **NOTE:** `extensionOperationsEnabled` may only be set to `false` if there are no extensions defined in the `extension` field.
ExtensionOperationsEnabled pulumi.BoolPtrInput
// One or more `extension` blocks as defined below
Extensions LinuxVirtualMachineScaleSetExtensionArrayInput
// Specifies the duration allocated 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. Defaults to `PT1H30M`.
ExtensionsTimeBudget pulumi.StringPtrInput
// One or more `galleryApplication` blocks as defined below.
GalleryApplication LinuxVirtualMachineScaleSetGalleryApplicationArrayInput
// Deprecated: `gallery_applications` has been renamed to `gallery_application` and will be deprecated in 4.0
GalleryApplications LinuxVirtualMachineScaleSetGalleryApplicationArrayInput
// The ID of a Load Balancer Probe which should be used to determine the health of an instance. This is Required and can only be specified when `upgradeMode` is set to `Automatic` or `Rolling`.
HealthProbeId pulumi.StringPtrInput
// Specifies the ID of the dedicated host group that the virtual machine scale set resides in. Changing this forces a new resource to be created.
HostGroupId pulumi.StringPtrInput
// An `identity` block as defined below.
Identity LinuxVirtualMachineScaleSetIdentityPtrInput
// The number of Virtual Machines in the Scale Set. Defaults to `0`.
//
// > **NOTE:** If you're using AutoScaling, you may wish to use [`Ignore Changes` functionality](https://www.pulumi.com/docs/intro/concepts/programming-model/#ignorechanges) to ignore changes to this field.
Instances pulumi.IntPtrInput
// The Azure location where the Linux Virtual Machine Scale Set should exist. Changing this forces a new resource to be created.
Location pulumi.StringPtrInput
// The maximum price you're willing to pay for each Virtual Machine in this Scale Set, in US Dollars; which must be greater than the current spot price. If this bid price falls below the current spot price the Virtual Machines in the Scale Set will be evicted using the `evictionPolicy`. Defaults to `-1`, which means that each Virtual Machine in this Scale Set should not be evicted for price reasons.
//
// > **NOTE:** This can only be configured when `priority` is set to `Spot`.
MaxBidPrice pulumi.Float64PtrInput
// The name of the Linux Virtual Machine Scale Set. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// One or more `networkInterface` blocks as defined below.
NetworkInterfaces LinuxVirtualMachineScaleSetNetworkInterfaceArrayInput
// An `osDisk` block as defined below.
OsDisk LinuxVirtualMachineScaleSetOsDiskInput
// Should Azure over-provision Virtual Machines in this Scale Set? This means that multiple Virtual Machines will be provisioned and Azure will keep the instances which become available first - which improves provisioning success rates and improves deployment time. You're not billed for these over-provisioned VM's and they don't count towards the Subscription Quota. Defaults to `true`.
Overprovision pulumi.BoolPtrInput
// A `plan` block as defined below. Changing this forces a new resource to be created.
//
// > **NOTE:** When using an image from Azure Marketplace a `plan` must be specified.
Plan LinuxVirtualMachineScaleSetPlanPtrInput
// Specifies the number of fault domains that are used by this Linux Virtual Machine Scale Set. Changing this forces a new resource to be created.
PlatformFaultDomainCount pulumi.IntPtrInput
// The Priority of this Virtual Machine Scale Set. Possible values are `Regular` and `Spot`. Defaults to `Regular`. Changing this value forces a new resource.
//
// > **NOTE:** When `priority` is set to `Spot` an `evictionPolicy` must be specified.
Priority pulumi.StringPtrInput
// Should the Azure VM Agent be provisioned on each Virtual Machine in the Scale Set? Defaults to `true`. Changing this value forces a new resource to be created.
ProvisionVmAgent pulumi.BoolPtrInput
// The ID of the Proximity Placement Group in which the Virtual Machine Scale Set should be assigned to. Changing this forces a new resource to be created.
ProximityPlacementGroupId pulumi.StringPtrInput
// The name of the Resource Group in which the Linux Virtual Machine Scale Set should be exist. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringInput
// A `rollingUpgradePolicy` block as defined below. This is Required and can only be specified when `upgradeMode` is set to `Automatic` or `Rolling`. Changing this forces a new resource to be created.
RollingUpgradePolicy LinuxVirtualMachineScaleSetRollingUpgradePolicyPtrInput
// A `scaleIn` block as defined below.
ScaleIn LinuxVirtualMachineScaleSetScaleInPtrInput
// Deprecated: `scale_in_policy` will be removed in favour of the `scale_in` code block in version 4.0 of the AzureRM Provider.
ScaleInPolicy pulumi.StringPtrInput
// One or more `secret` blocks as defined below.
Secrets LinuxVirtualMachineScaleSetSecretArrayInput
// Specifies whether secure boot should be enabled on the virtual machine. Changing this forces a new resource to be created.
SecureBootEnabled pulumi.BoolPtrInput
// Should this Virtual Machine Scale Set be limited to a Single Placement Group, which means the number of instances will be capped at 100 Virtual Machines. Defaults to `true`.
SinglePlacementGroup pulumi.BoolPtrInput
// The Virtual Machine SKU for the Scale Set, such as `Standard_F2`.
Sku pulumi.StringInput
// The ID of an Image which each Virtual Machine in this Scale Set should be based on. Possible Image ID types include `Image ID`, `Shared Image ID`, `Shared Image Version ID`, `Community Gallery Image ID`, `Community Gallery Image Version ID`, `Shared Gallery Image ID` and `Shared Gallery Image Version ID`.
//
// > **NOTE:** One of either `sourceImageId` or `sourceImageReference` must be set.
SourceImageId pulumi.StringPtrInput
// A `sourceImageReference` block as defined below.
//
// > **NOTE:** One of either `sourceImageId` or `sourceImageReference` must be set.
SourceImageReference LinuxVirtualMachineScaleSetSourceImageReferencePtrInput
// A `spotRestore` block as defined below.
SpotRestore LinuxVirtualMachineScaleSetSpotRestorePtrInput
// A mapping of tags which should be assigned to this Virtual Machine Scale Set.
Tags pulumi.StringMapInput
// A `terminateNotification` block as defined below.
//
// > **Note:** This property has been deprecated in favour of the `terminationNotification` property and will be removed in version 4.0 of the provider.
//
// Deprecated: `terminate_notification` has been renamed to `termination_notification` and will be removed in 4.0.
TerminateNotification LinuxVirtualMachineScaleSetTerminateNotificationPtrInput
// A `terminationNotification` block as defined below.
TerminationNotification LinuxVirtualMachineScaleSetTerminationNotificationPtrInput
UpgradeMode pulumi.StringPtrInput
// The Base64-Encoded User Data which should be used for this Virtual Machine Scale Set.
UserData pulumi.StringPtrInput
// Specifies whether vTPM should be enabled on the virtual machine. Changing this forces a new resource to be created.
VtpmEnabled pulumi.BoolPtrInput
// Should the Virtual Machines in this Scale Set be strictly evenly distributed across Availability Zones? Defaults to `false`. Changing this forces a new resource to be created.
//
// > **NOTE:** This can only be set to `true` when one or more `zones` are configured.
ZoneBalance pulumi.BoolPtrInput
// Specifies a list of Availability Zones in which this Linux Virtual Machine Scale Set should be located. Changing this forces a new Linux Virtual Machine Scale Set to be created.
Zones pulumi.StringArrayInput
}
func (LinuxVirtualMachineScaleSetArgs) ElementType() reflect.Type {
return reflect.TypeOf((*linuxVirtualMachineScaleSetArgs)(nil)).Elem()
}
type LinuxVirtualMachineScaleSetInput interface {
pulumi.Input
ToLinuxVirtualMachineScaleSetOutput() LinuxVirtualMachineScaleSetOutput
ToLinuxVirtualMachineScaleSetOutputWithContext(ctx context.Context) LinuxVirtualMachineScaleSetOutput
}
func (*LinuxVirtualMachineScaleSet) ElementType() reflect.Type {
return reflect.TypeOf((**LinuxVirtualMachineScaleSet)(nil)).Elem()
}
func (i *LinuxVirtualMachineScaleSet) ToLinuxVirtualMachineScaleSetOutput() LinuxVirtualMachineScaleSetOutput {
return i.ToLinuxVirtualMachineScaleSetOutputWithContext(context.Background())
}
func (i *LinuxVirtualMachineScaleSet) ToLinuxVirtualMachineScaleSetOutputWithContext(ctx context.Context) LinuxVirtualMachineScaleSetOutput {
return pulumi.ToOutputWithContext(ctx, i).(LinuxVirtualMachineScaleSetOutput)
}
// LinuxVirtualMachineScaleSetArrayInput is an input type that accepts LinuxVirtualMachineScaleSetArray and LinuxVirtualMachineScaleSetArrayOutput values.
// You can construct a concrete instance of `LinuxVirtualMachineScaleSetArrayInput` via:
//
// LinuxVirtualMachineScaleSetArray{ LinuxVirtualMachineScaleSetArgs{...} }
type LinuxVirtualMachineScaleSetArrayInput interface {
pulumi.Input
ToLinuxVirtualMachineScaleSetArrayOutput() LinuxVirtualMachineScaleSetArrayOutput
ToLinuxVirtualMachineScaleSetArrayOutputWithContext(context.Context) LinuxVirtualMachineScaleSetArrayOutput
}
type LinuxVirtualMachineScaleSetArray []LinuxVirtualMachineScaleSetInput
func (LinuxVirtualMachineScaleSetArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*LinuxVirtualMachineScaleSet)(nil)).Elem()
}
func (i LinuxVirtualMachineScaleSetArray) ToLinuxVirtualMachineScaleSetArrayOutput() LinuxVirtualMachineScaleSetArrayOutput {
return i.ToLinuxVirtualMachineScaleSetArrayOutputWithContext(context.Background())
}
func (i LinuxVirtualMachineScaleSetArray) ToLinuxVirtualMachineScaleSetArrayOutputWithContext(ctx context.Context) LinuxVirtualMachineScaleSetArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(LinuxVirtualMachineScaleSetArrayOutput)
}
// LinuxVirtualMachineScaleSetMapInput is an input type that accepts LinuxVirtualMachineScaleSetMap and LinuxVirtualMachineScaleSetMapOutput values.
// You can construct a concrete instance of `LinuxVirtualMachineScaleSetMapInput` via:
//