Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.compute.kotlin.VirtualMachineScaleSetVM.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.compute.kotlin
import com.pulumi.azurenative.compute.kotlin.outputs.AdditionalCapabilitiesResponse
import com.pulumi.azurenative.compute.kotlin.outputs.DiagnosticsProfileResponse
import com.pulumi.azurenative.compute.kotlin.outputs.HardwareProfileResponse
import com.pulumi.azurenative.compute.kotlin.outputs.NetworkProfileResponse
import com.pulumi.azurenative.compute.kotlin.outputs.OSProfileResponse
import com.pulumi.azurenative.compute.kotlin.outputs.PlanResponse
import com.pulumi.azurenative.compute.kotlin.outputs.SecurityProfileResponse
import com.pulumi.azurenative.compute.kotlin.outputs.SkuResponse
import com.pulumi.azurenative.compute.kotlin.outputs.StorageProfileResponse
import com.pulumi.azurenative.compute.kotlin.outputs.SubResourceResponse
import com.pulumi.azurenative.compute.kotlin.outputs.VirtualMachineExtensionResponse
import com.pulumi.azurenative.compute.kotlin.outputs.VirtualMachineIdentityResponse
import com.pulumi.azurenative.compute.kotlin.outputs.VirtualMachineScaleSetVMInstanceViewResponse
import com.pulumi.azurenative.compute.kotlin.outputs.VirtualMachineScaleSetVMNetworkProfileConfigurationResponse
import com.pulumi.azurenative.compute.kotlin.outputs.VirtualMachineScaleSetVMProtectionPolicyResponse
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.azurenative.compute.kotlin.outputs.AdditionalCapabilitiesResponse.Companion.toKotlin as additionalCapabilitiesResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.DiagnosticsProfileResponse.Companion.toKotlin as diagnosticsProfileResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.HardwareProfileResponse.Companion.toKotlin as hardwareProfileResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.NetworkProfileResponse.Companion.toKotlin as networkProfileResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.OSProfileResponse.Companion.toKotlin as oSProfileResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.PlanResponse.Companion.toKotlin as planResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.SecurityProfileResponse.Companion.toKotlin as securityProfileResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.SkuResponse.Companion.toKotlin as skuResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.StorageProfileResponse.Companion.toKotlin as storageProfileResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.SubResourceResponse.Companion.toKotlin as subResourceResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.VirtualMachineExtensionResponse.Companion.toKotlin as virtualMachineExtensionResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.VirtualMachineIdentityResponse.Companion.toKotlin as virtualMachineIdentityResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.VirtualMachineScaleSetVMInstanceViewResponse.Companion.toKotlin as virtualMachineScaleSetVMInstanceViewResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.VirtualMachineScaleSetVMNetworkProfileConfigurationResponse.Companion.toKotlin as virtualMachineScaleSetVMNetworkProfileConfigurationResponseToKotlin
import com.pulumi.azurenative.compute.kotlin.outputs.VirtualMachineScaleSetVMProtectionPolicyResponse.Companion.toKotlin as virtualMachineScaleSetVMProtectionPolicyResponseToKotlin
/**
* Builder for [VirtualMachineScaleSetVM].
*/
@PulumiTagMarker
public class VirtualMachineScaleSetVMResourceBuilder internal constructor() {
public var name: String? = null
public var args: VirtualMachineScaleSetVMArgs = VirtualMachineScaleSetVMArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend VirtualMachineScaleSetVMArgsBuilder.() -> Unit) {
val builder = VirtualMachineScaleSetVMArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): VirtualMachineScaleSetVM {
val builtJavaResource =
com.pulumi.azurenative.compute.VirtualMachineScaleSetVM(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return VirtualMachineScaleSetVM(builtJavaResource)
}
}
/**
* Describes a virtual machine scale set virtual machine.
* Azure REST API version: 2023-03-01. Prior API version in Azure Native 1.x: 2021-03-01.
* Other available API versions: 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01.
* ## Example Usage
* ### VirtualMachineScaleSetVM_Update_MaximumSet_Gen
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var virtualMachineScaleSetVM = new AzureNative.Compute.VirtualMachineScaleSetVM("virtualMachineScaleSetVM", new()
* {
* AdditionalCapabilities = new AzureNative.Compute.Inputs.AdditionalCapabilitiesArgs
* {
* HibernationEnabled = true,
* UltraSSDEnabled = true,
* },
* AvailabilitySet = new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* DiagnosticsProfile = new AzureNative.Compute.Inputs.DiagnosticsProfileArgs
* {
* BootDiagnostics = new AzureNative.Compute.Inputs.BootDiagnosticsArgs
* {
* Enabled = true,
* StorageUri = "aaaaaaaaaaaaa",
* },
* },
* HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs
* {
* VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Basic_A0,
* VmSizeProperties = new AzureNative.Compute.Inputs.VMSizePropertiesArgs
* {
* VCPUsAvailable = 9,
* VCPUsPerCore = 12,
* },
* },
* InstanceId = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
* LicenseType = "aaaaaaaaaa",
* Location = "westus",
* NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs
* {
* NetworkApiVersion = AzureNative.Compute.NetworkApiVersion.NetworkApiVersion_2020_11_01,
* NetworkInterfaceConfigurations = new[]
* {
* new AzureNative.Compute.Inputs.VirtualMachineNetworkInterfaceConfigurationArgs
* {
* DeleteOption = AzureNative.Compute.DeleteOptions.Delete,
* DnsSettings = new AzureNative.Compute.Inputs.VirtualMachineNetworkInterfaceDnsSettingsConfigurationArgs
* {
* DnsServers = new[]
* {
* "aaaaaa",
* },
* },
* DscpConfiguration = new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* EnableAcceleratedNetworking = true,
* EnableFpga = true,
* EnableIPForwarding = true,
* IpConfigurations = new[]
* {
* new AzureNative.Compute.Inputs.VirtualMachineNetworkInterfaceIPConfigurationArgs
* {
* ApplicationGatewayBackendAddressPools = new[]
* {
* new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* },
* ApplicationSecurityGroups = new[]
* {
* new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* },
* LoadBalancerBackendAddressPools = new[]
* {
* new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* },
* Name = "aa",
* Primary = true,
* PrivateIPAddressVersion = AzureNative.Compute.IPVersions.IPv4,
* PublicIPAddressConfiguration = new AzureNative.Compute.Inputs.VirtualMachinePublicIPAddressConfigurationArgs
* {
* DeleteOption = AzureNative.Compute.DeleteOptions.Delete,
* DnsSettings = new AzureNative.Compute.Inputs.VirtualMachinePublicIPAddressDnsSettingsConfigurationArgs
* {
* DomainNameLabel = "aaaaaaaaaaaaaaaaaaaaaaaaa",
* },
* IdleTimeoutInMinutes = 2,
* IpTags = new[]
* {
* new AzureNative.Compute.Inputs.VirtualMachineIpTagArgs
* {
* IpTagType = "aaaaaaaaaaaaaaaaaaaaaaaaa",
* Tag = "aaaaaaaaaaaaaaaaaaaa",
* },
* },
* Name = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
* PublicIPAddressVersion = AzureNative.Compute.IPVersions.IPv4,
* PublicIPAllocationMethod = AzureNative.Compute.PublicIPAllocationMethod.Dynamic,
* PublicIPPrefix = new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* Sku = new AzureNative.Compute.Inputs.PublicIPAddressSkuArgs
* {
* Name = AzureNative.Compute.PublicIPAddressSkuName.Basic,
* Tier = AzureNative.Compute.PublicIPAddressSkuTier.Regional,
* },
* },
* Subnet = new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* },
* },
* Name = "aaaaaaaaaaa",
* NetworkSecurityGroup = new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* Primary = true,
* },
* },
* NetworkInterfaces = new[]
* {
* new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs
* {
* DeleteOption = AzureNative.Compute.DeleteOptions.Delete,
* Id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0/networkInterfaces/vmsstestnetconfig5415",
* Primary = true,
* },
* },
* },
* NetworkProfileConfiguration = new AzureNative.Compute.Inputs.VirtualMachineScaleSetVMNetworkProfileConfigurationArgs
* {
* NetworkInterfaceConfigurations = new[]
* {
* new AzureNative.Compute.Inputs.VirtualMachineScaleSetNetworkConfigurationArgs
* {
* DeleteOption = AzureNative.Compute.DeleteOptions.Delete,
* DnsSettings = new AzureNative.Compute.Inputs.VirtualMachineScaleSetNetworkConfigurationDnsSettingsArgs
* {
* DnsServers = new() { },
* },
* EnableAcceleratedNetworking = true,
* EnableFpga = true,
* EnableIPForwarding = true,
* IpConfigurations = new[]
* {
* new AzureNative.Compute.Inputs.VirtualMachineScaleSetIPConfigurationArgs
* {
* ApplicationGatewayBackendAddressPools = new[]
* {
* new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* },
* ApplicationSecurityGroups = new[]
* {
* new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* },
* LoadBalancerBackendAddressPools = new[]
* {
* new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* },
* LoadBalancerInboundNatPools = new[]
* {
* new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* },
* Name = "vmsstestnetconfig9693",
* Primary = true,
* PrivateIPAddressVersion = AzureNative.Compute.IPVersion.IPv4,
* PublicIPAddressConfiguration = new AzureNative.Compute.Inputs.VirtualMachineScaleSetPublicIPAddressConfigurationArgs
* {
* DeleteOption = AzureNative.Compute.DeleteOptions.Delete,
* DnsSettings = new AzureNative.Compute.Inputs.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettingsArgs
* {
* DomainNameLabel = "aaaaaaaaaaaaaaaaaa",
* },
* IdleTimeoutInMinutes = 18,
* IpTags = new[]
* {
* new AzureNative.Compute.Inputs.VirtualMachineScaleSetIpTagArgs
* {
* IpTagType = "aaaaaaa",
* Tag = "aaaaaaaaaaaaaaaaaaaaaaaaaaa",
* },
* },
* Name = "aaaaaaaaaaaaaaaaaa",
* PublicIPAddressVersion = AzureNative.Compute.IPVersion.IPv4,
* PublicIPPrefix = new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* Sku = new AzureNative.Compute.Inputs.PublicIPAddressSkuArgs
* {
* Name = AzureNative.Compute.PublicIPAddressSkuName.Basic,
* Tier = AzureNative.Compute.PublicIPAddressSkuTier.Regional,
* },
* },
* Subnet = new AzureNative.Compute.Inputs.ApiEntityReferenceArgs
* {
* Id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vn4071/subnets/sn5503",
* },
* },
* },
* Name = "vmsstestnetconfig5415",
* NetworkSecurityGroup = new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* Primary = true,
* },
* },
* },
* OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs
* {
* AdminPassword = "aaaaaaaaaaaaaaaa",
* AdminUsername = "Foo12",
* AllowExtensionOperations = true,
* ComputerName = "test000000",
* CustomData = "aaaa",
* LinuxConfiguration = new AzureNative.Compute.Inputs.LinuxConfigurationArgs
* {
* DisablePasswordAuthentication = true,
* PatchSettings = new AzureNative.Compute.Inputs.LinuxPatchSettingsArgs
* {
* AssessmentMode = AzureNative.Compute.LinuxPatchAssessmentMode.ImageDefault,
* PatchMode = AzureNative.Compute.LinuxVMGuestPatchMode.ImageDefault,
* },
* ProvisionVMAgent = true,
* Ssh = new AzureNative.Compute.Inputs.SshConfigurationArgs
* {
* PublicKeys = new[]
* {
* new AzureNative.Compute.Inputs.SshPublicKeyArgs
* {
* KeyData = "aaaaaa",
* Path = "aaa",
* },
* },
* },
* },
* RequireGuestProvisionSignal = true,
* Secrets = new() { },
* WindowsConfiguration = new AzureNative.Compute.Inputs.WindowsConfigurationArgs
* {
* AdditionalUnattendContent = new[]
* {
* new AzureNative.Compute.Inputs.AdditionalUnattendContentArgs
* {
* ComponentName = AzureNative.Compute.ComponentNames.Microsoft_Windows_Shell_Setup,
* Content = "aaaaaaaaaaaaaaaaaaaa",
* PassName = AzureNative.Compute.PassNames.OobeSystem,
* SettingName = AzureNative.Compute.SettingNames.AutoLogon,
* },
* },
* EnableAutomaticUpdates = true,
* PatchSettings = new AzureNative.Compute.Inputs.PatchSettingsArgs
* {
* AssessmentMode = AzureNative.Compute.WindowsPatchAssessmentMode.ImageDefault,
* EnableHotpatching = true,
* PatchMode = AzureNative.Compute.WindowsVMGuestPatchMode.Manual,
* },
* ProvisionVMAgent = true,
* TimeZone = "aaaaaaaaaaaaaaaaaaaaaaaaaaa",
* WinRM = new AzureNative.Compute.Inputs.WinRMConfigurationArgs
* {
* Listeners = new[]
* {
* new AzureNative.Compute.Inputs.WinRMListenerArgs
* {
* CertificateUrl = "aaaaaaaaaaaaaaaaaaaaaa",
* Protocol = AzureNative.Compute.ProtocolTypes.Http,
* },
* },
* },
* },
* },
* Plan = new AzureNative.Compute.Inputs.PlanArgs
* {
* Name = "aaaaaaaaaa",
* Product = "aaaaaaaaaaaaaaaaaaaa",
* PromotionCode = "aaaaaaaaaaaaaaaaaaaa",
* Publisher = "aaaaaaaaaaaaaaaaaaaaaa",
* },
* ProtectionPolicy = new AzureNative.Compute.Inputs.VirtualMachineScaleSetVMProtectionPolicyArgs
* {
* ProtectFromScaleIn = true,
* ProtectFromScaleSetActions = true,
* },
* ResourceGroupName = "rgcompute",
* SecurityProfile = new AzureNative.Compute.Inputs.SecurityProfileArgs
* {
* EncryptionAtHost = true,
* SecurityType = AzureNative.Compute.SecurityTypes.TrustedLaunch,
* UefiSettings = new AzureNative.Compute.Inputs.UefiSettingsArgs
* {
* SecureBootEnabled = true,
* VTpmEnabled = true,
* },
* },
* StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs
* {
* DataDisks = new[]
* {
* new AzureNative.Compute.Inputs.DataDiskArgs
* {
* Caching = AzureNative.Compute.CachingTypes.None,
* CreateOption = AzureNative.Compute.DiskCreateOptionTypes.Empty,
* DeleteOption = AzureNative.Compute.DiskDeleteOptionTypes.Delete,
* DetachOption = AzureNative.Compute.DiskDetachOptionTypes.ForceDetach,
* DiskSizeGB = 128,
* Image = new AzureNative.Compute.Inputs.VirtualHardDiskArgs
* {
* Uri = "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd",
* },
* Lun = 1,
* ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs
* {
* DiskEncryptionSet = new AzureNative.Compute.Inputs.DiskEncryptionSetParametersArgs
* {
* Id = "aaaaaaaaaaaa",
* },
* Id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d",
* StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,
* },
* Name = "vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d",
* ToBeDetached = true,
* Vhd = new AzureNative.Compute.Inputs.VirtualHardDiskArgs
* {
* Uri = "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd",
* },
* WriteAcceleratorEnabled = true,
* },
* },
* ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs
* {
* Id = "a",
* Offer = "WindowsServer",
* Publisher = "MicrosoftWindowsServer",
* SharedGalleryImageId = "aaaaaaaaaaaaaaaaaaaa",
* Sku = "2012-R2-Datacenter",
* Version = "4.127.20180315",
* },
* OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs
* {
* Caching = AzureNative.Compute.CachingTypes.None,
* CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,
* DeleteOption = AzureNative.Compute.DiskDeleteOptionTypes.Delete,
* DiffDiskSettings = new AzureNative.Compute.Inputs.DiffDiskSettingsArgs
* {
* Option = AzureNative.Compute.DiffDiskOptions.Local,
* Placement = AzureNative.Compute.DiffDiskPlacement.CacheDisk,
* },
* DiskSizeGB = 127,
* EncryptionSettings = new AzureNative.Compute.Inputs.DiskEncryptionSettingsArgs
* {
* DiskEncryptionKey = new AzureNative.Compute.Inputs.KeyVaultSecretReferenceArgs
* {
* SecretUrl = "aaaaaaaa",
* SourceVault = new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* },
* Enabled = true,
* KeyEncryptionKey = new AzureNative.Compute.Inputs.KeyVaultKeyReferenceArgs
* {
* KeyUrl = "aaaaaaaaaaaaaa",
* SourceVault = new AzureNative.Compute.Inputs.SubResourceArgs
* {
* Id = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}",
* },
* },
* },
* Image = new AzureNative.Compute.Inputs.VirtualHardDiskArgs
* {
* Uri = "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd",
* },
* ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs
* {
* DiskEncryptionSet = new AzureNative.Compute.Inputs.DiskEncryptionSetParametersArgs
* {
* Id = "aaaaaaaaaaaa",
* },
* Id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc",
* StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,
* },
* Name = "vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc",
* OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
* Vhd = new AzureNative.Compute.Inputs.VirtualHardDiskArgs
* {
* Uri = "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd",
* },
* WriteAcceleratorEnabled = true,
* },
* },
* Tags = null,
* UserData = "RXhhbXBsZSBVc2VyRGF0YQ==",
* VmScaleSetName = "aaaaaaaaaaaaaa",
* });
* });
* ```
* ```go
* package main
* import (
* compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewVirtualMachineScaleSetVM(ctx, "virtualMachineScaleSetVM", &compute.VirtualMachineScaleSetVMArgs{
* AdditionalCapabilities: &compute.AdditionalCapabilitiesArgs{
* HibernationEnabled: pulumi.Bool(true),
* UltraSSDEnabled: pulumi.Bool(true),
* },
* AvailabilitySet: &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* DiagnosticsProfile: &compute.DiagnosticsProfileArgs{
* BootDiagnostics: &compute.BootDiagnosticsArgs{
* Enabled: pulumi.Bool(true),
* StorageUri: pulumi.String("aaaaaaaaaaaaa"),
* },
* },
* HardwareProfile: &compute.HardwareProfileArgs{
* VmSize: pulumi.String(compute.VirtualMachineSizeTypes_Basic_A0),
* VmSizeProperties: &compute.VMSizePropertiesArgs{
* VCPUsAvailable: pulumi.Int(9),
* VCPUsPerCore: pulumi.Int(12),
* },
* },
* InstanceId: pulumi.String("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
* LicenseType: pulumi.String("aaaaaaaaaa"),
* Location: pulumi.String("westus"),
* NetworkProfile: &compute.NetworkProfileArgs{
* NetworkApiVersion: pulumi.String(compute.NetworkApiVersion_2020_11_01),
* NetworkInterfaceConfigurations: compute.VirtualMachineNetworkInterfaceConfigurationArray{
* &compute.VirtualMachineNetworkInterfaceConfigurationArgs{
* DeleteOption: pulumi.String(compute.DeleteOptionsDelete),
* DnsSettings: &compute.VirtualMachineNetworkInterfaceDnsSettingsConfigurationArgs{
* DnsServers: pulumi.StringArray{
* pulumi.String("aaaaaa"),
* },
* },
* DscpConfiguration: &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* EnableAcceleratedNetworking: pulumi.Bool(true),
* EnableFpga: pulumi.Bool(true),
* EnableIPForwarding: pulumi.Bool(true),
* IpConfigurations: compute.VirtualMachineNetworkInterfaceIPConfigurationArray{
* &compute.VirtualMachineNetworkInterfaceIPConfigurationArgs{
* ApplicationGatewayBackendAddressPools: compute.SubResourceArray{
* &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* },
* ApplicationSecurityGroups: compute.SubResourceArray{
* &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* },
* LoadBalancerBackendAddressPools: compute.SubResourceArray{
* &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* },
* Name: pulumi.String("aa"),
* Primary: pulumi.Bool(true),
* PrivateIPAddressVersion: pulumi.String(compute.IPVersionsIPv4),
* PublicIPAddressConfiguration: &compute.VirtualMachinePublicIPAddressConfigurationArgs{
* DeleteOption: pulumi.String(compute.DeleteOptionsDelete),
* DnsSettings: &compute.VirtualMachinePublicIPAddressDnsSettingsConfigurationArgs{
* DomainNameLabel: pulumi.String("aaaaaaaaaaaaaaaaaaaaaaaaa"),
* },
* IdleTimeoutInMinutes: pulumi.Int(2),
* IpTags: compute.VirtualMachineIpTagArray{
* &compute.VirtualMachineIpTagArgs{
* IpTagType: pulumi.String("aaaaaaaaaaaaaaaaaaaaaaaaa"),
* Tag: pulumi.String("aaaaaaaaaaaaaaaaaaaa"),
* },
* },
* Name: pulumi.String("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
* PublicIPAddressVersion: pulumi.String(compute.IPVersionsIPv4),
* PublicIPAllocationMethod: pulumi.String(compute.PublicIPAllocationMethodDynamic),
* PublicIPPrefix: &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* Sku: &compute.PublicIPAddressSkuArgs{
* Name: pulumi.String(compute.PublicIPAddressSkuNameBasic),
* Tier: pulumi.String(compute.PublicIPAddressSkuTierRegional),
* },
* },
* Subnet: &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* },
* },
* Name: pulumi.String("aaaaaaaaaaa"),
* NetworkSecurityGroup: &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* Primary: pulumi.Bool(true),
* },
* },
* NetworkInterfaces: compute.NetworkInterfaceReferenceArray{
* &compute.NetworkInterfaceReferenceArgs{
* DeleteOption: pulumi.String(compute.DeleteOptionsDelete),
* Id: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0/networkInterfaces/vmsstestnetconfig5415"),
* Primary: pulumi.Bool(true),
* },
* },
* },
* NetworkProfileConfiguration: &compute.VirtualMachineScaleSetVMNetworkProfileConfigurationArgs{
* NetworkInterfaceConfigurations: compute.VirtualMachineScaleSetNetworkConfigurationArray{
* &compute.VirtualMachineScaleSetNetworkConfigurationArgs{
* DeleteOption: pulumi.String(compute.DeleteOptionsDelete),
* DnsSettings: &compute.VirtualMachineScaleSetNetworkConfigurationDnsSettingsArgs{
* DnsServers: pulumi.StringArray{},
* },
* EnableAcceleratedNetworking: pulumi.Bool(true),
* EnableFpga: pulumi.Bool(true),
* EnableIPForwarding: pulumi.Bool(true),
* IpConfigurations: compute.VirtualMachineScaleSetIPConfigurationArray{
* &compute.VirtualMachineScaleSetIPConfigurationArgs{
* ApplicationGatewayBackendAddressPools: compute.SubResourceArray{
* &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* },
* ApplicationSecurityGroups: compute.SubResourceArray{
* &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* },
* LoadBalancerBackendAddressPools: compute.SubResourceArray{
* &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* },
* LoadBalancerInboundNatPools: compute.SubResourceArray{
* &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* },
* Name: pulumi.String("vmsstestnetconfig9693"),
* Primary: pulumi.Bool(true),
* PrivateIPAddressVersion: pulumi.String(compute.IPVersionIPv4),
* PublicIPAddressConfiguration: &compute.VirtualMachineScaleSetPublicIPAddressConfigurationArgs{
* DeleteOption: pulumi.String(compute.DeleteOptionsDelete),
* DnsSettings: &compute.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettingsArgs{
* DomainNameLabel: pulumi.String("aaaaaaaaaaaaaaaaaa"),
* },
* IdleTimeoutInMinutes: pulumi.Int(18),
* IpTags: compute.VirtualMachineScaleSetIpTagArray{
* &compute.VirtualMachineScaleSetIpTagArgs{
* IpTagType: pulumi.String("aaaaaaa"),
* Tag: pulumi.String("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
* },
* },
* Name: pulumi.String("aaaaaaaaaaaaaaaaaa"),
* PublicIPAddressVersion: pulumi.String(compute.IPVersionIPv4),
* PublicIPPrefix: &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* Sku: &compute.PublicIPAddressSkuArgs{
* Name: pulumi.String(compute.PublicIPAddressSkuNameBasic),
* Tier: pulumi.String(compute.PublicIPAddressSkuTierRegional),
* },
* },
* Subnet: &compute.ApiEntityReferenceArgs{
* Id: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vn4071/subnets/sn5503"),
* },
* },
* },
* Name: pulumi.String("vmsstestnetconfig5415"),
* NetworkSecurityGroup: &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* Primary: pulumi.Bool(true),
* },
* },
* },
* OsProfile: &compute.OSProfileArgs{
* AdminPassword: pulumi.String("aaaaaaaaaaaaaaaa"),
* AdminUsername: pulumi.String("Foo12"),
* AllowExtensionOperations: pulumi.Bool(true),
* ComputerName: pulumi.String("test000000"),
* CustomData: pulumi.String("aaaa"),
* LinuxConfiguration: &compute.LinuxConfigurationArgs{
* DisablePasswordAuthentication: pulumi.Bool(true),
* PatchSettings: &compute.LinuxPatchSettingsArgs{
* AssessmentMode: pulumi.String(compute.LinuxPatchAssessmentModeImageDefault),
* PatchMode: pulumi.String(compute.LinuxVMGuestPatchModeImageDefault),
* },
* ProvisionVMAgent: pulumi.Bool(true),
* Ssh: &compute.SshConfigurationArgs{
* PublicKeys: compute.SshPublicKeyTypeArray{
* &compute.SshPublicKeyTypeArgs{
* KeyData: pulumi.String("aaaaaa"),
* Path: pulumi.String("aaa"),
* },
* },
* },
* },
* RequireGuestProvisionSignal: pulumi.Bool(true),
* Secrets: compute.VaultSecretGroupArray{},
* WindowsConfiguration: &compute.WindowsConfigurationArgs{
* AdditionalUnattendContent: compute.AdditionalUnattendContentArray{
* &compute.AdditionalUnattendContentArgs{
* ComponentName: compute.ComponentNames_Microsoft_Windows_Shell_Setup,
* Content: pulumi.String("aaaaaaaaaaaaaaaaaaaa"),
* PassName: compute.PassNamesOobeSystem,
* SettingName: compute.SettingNamesAutoLogon,
* },
* },
* EnableAutomaticUpdates: pulumi.Bool(true),
* PatchSettings: &compute.PatchSettingsArgs{
* AssessmentMode: pulumi.String(compute.WindowsPatchAssessmentModeImageDefault),
* EnableHotpatching: pulumi.Bool(true),
* PatchMode: pulumi.String(compute.WindowsVMGuestPatchModeManual),
* },
* ProvisionVMAgent: pulumi.Bool(true),
* TimeZone: pulumi.String("aaaaaaaaaaaaaaaaaaaaaaaaaaa"),
* WinRM: &compute.WinRMConfigurationArgs{
* Listeners: compute.WinRMListenerArray{
* &compute.WinRMListenerArgs{
* CertificateUrl: pulumi.String("aaaaaaaaaaaaaaaaaaaaaa"),
* Protocol: compute.ProtocolTypesHttp,
* },
* },
* },
* },
* },
* Plan: &compute.PlanArgs{
* Name: pulumi.String("aaaaaaaaaa"),
* Product: pulumi.String("aaaaaaaaaaaaaaaaaaaa"),
* PromotionCode: pulumi.String("aaaaaaaaaaaaaaaaaaaa"),
* Publisher: pulumi.String("aaaaaaaaaaaaaaaaaaaaaa"),
* },
* ProtectionPolicy: &compute.VirtualMachineScaleSetVMProtectionPolicyArgs{
* ProtectFromScaleIn: pulumi.Bool(true),
* ProtectFromScaleSetActions: pulumi.Bool(true),
* },
* ResourceGroupName: pulumi.String("rgcompute"),
* SecurityProfile: &compute.SecurityProfileArgs{
* EncryptionAtHost: pulumi.Bool(true),
* SecurityType: pulumi.String(compute.SecurityTypesTrustedLaunch),
* UefiSettings: &compute.UefiSettingsArgs{
* SecureBootEnabled: pulumi.Bool(true),
* VTpmEnabled: pulumi.Bool(true),
* },
* },
* StorageProfile: &compute.StorageProfileArgs{
* DataDisks: compute.DataDiskArray{
* &compute.DataDiskArgs{
* Caching: compute.CachingTypesNone,
* CreateOption: pulumi.String(compute.DiskCreateOptionTypesEmpty),
* DeleteOption: pulumi.String(compute.DiskDeleteOptionTypesDelete),
* DetachOption: pulumi.String(compute.DiskDetachOptionTypesForceDetach),
* DiskSizeGB: pulumi.Int(128),
* Image: &compute.VirtualHardDiskArgs{
* Uri: pulumi.String("https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd"),
* },
* Lun: pulumi.Int(1),
* ManagedDisk: &compute.ManagedDiskParametersArgs{
* DiskEncryptionSet: &compute.DiskEncryptionSetParametersArgs{
* Id: pulumi.String("aaaaaaaaaaaa"),
* },
* Id: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d"),
* StorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),
* },
* Name: pulumi.String("vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d"),
* ToBeDetached: pulumi.Bool(true),
* Vhd: &compute.VirtualHardDiskArgs{
* Uri: pulumi.String("https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd"),
* },
* WriteAcceleratorEnabled: pulumi.Bool(true),
* },
* },
* ImageReference: &compute.ImageReferenceArgs{
* Id: pulumi.String("a"),
* Offer: pulumi.String("WindowsServer"),
* Publisher: pulumi.String("MicrosoftWindowsServer"),
* SharedGalleryImageId: pulumi.String("aaaaaaaaaaaaaaaaaaaa"),
* Sku: pulumi.String("2012-R2-Datacenter"),
* Version: pulumi.String("4.127.20180315"),
* },
* OsDisk: &compute.OSDiskArgs{
* Caching: compute.CachingTypesNone,
* CreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),
* DeleteOption: pulumi.String(compute.DiskDeleteOptionTypesDelete),
* DiffDiskSettings: &compute.DiffDiskSettingsArgs{
* Option: pulumi.String(compute.DiffDiskOptionsLocal),
* Placement: pulumi.String(compute.DiffDiskPlacementCacheDisk),
* },
* DiskSizeGB: pulumi.Int(127),
* EncryptionSettings: &compute.DiskEncryptionSettingsArgs{
* DiskEncryptionKey: &compute.KeyVaultSecretReferenceArgs{
* SecretUrl: pulumi.String("aaaaaaaa"),
* SourceVault: &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* },
* Enabled: pulumi.Bool(true),
* KeyEncryptionKey: &compute.KeyVaultKeyReferenceArgs{
* KeyUrl: pulumi.String("aaaaaaaaaaaaaa"),
* SourceVault: &compute.SubResourceArgs{
* Id: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"),
* },
* },
* },
* Image: &compute.VirtualHardDiskArgs{
* Uri: pulumi.String("https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd"),
* },
* ManagedDisk: &compute.ManagedDiskParametersArgs{
* DiskEncryptionSet: &compute.DiskEncryptionSetParametersArgs{
* Id: pulumi.String("aaaaaaaaaaaa"),
* },
* Id: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc"),
* StorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),
* },
* Name: pulumi.String("vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc"),
* OsType: compute.OperatingSystemTypesWindows,
* Vhd: &compute.VirtualHardDiskArgs{
* Uri: pulumi.String("https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd"),
* },
* WriteAcceleratorEnabled: pulumi.Bool(true),
* },
* },
* Tags: nil,
* UserData: pulumi.String("RXhhbXBsZSBVc2VyRGF0YQ=="),
* VmScaleSetName: pulumi.String("aaaaaaaaaaaaaa"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.compute.VirtualMachineScaleSetVM;
* import com.pulumi.azurenative.compute.VirtualMachineScaleSetVMArgs;
* import com.pulumi.azurenative.compute.inputs.AdditionalCapabilitiesArgs;
* import com.pulumi.azurenative.compute.inputs.SubResourceArgs;
* import com.pulumi.azurenative.compute.inputs.DiagnosticsProfileArgs;
* import com.pulumi.azurenative.compute.inputs.BootDiagnosticsArgs;
* import com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;
* import com.pulumi.azurenative.compute.inputs.VMSizePropertiesArgs;
* import com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;
* import com.pulumi.azurenative.compute.inputs.VirtualMachineScaleSetVMNetworkProfileConfigurationArgs;
* import com.pulumi.azurenative.compute.inputs.OSProfileArgs;
* import com.pulumi.azurenative.compute.inputs.LinuxConfigurationArgs;
* import com.pulumi.azurenative.compute.inputs.LinuxPatchSettingsArgs;
* import com.pulumi.azurenative.compute.inputs.SshConfigurationArgs;
* import com.pulumi.azurenative.compute.inputs.WindowsConfigurationArgs;
* import com.pulumi.azurenative.compute.inputs.PatchSettingsArgs;
* import com.pulumi.azurenative.compute.inputs.WinRMConfigurationArgs;
* import com.pulumi.azurenative.compute.inputs.PlanArgs;
* import com.pulumi.azurenative.compute.inputs.VirtualMachineScaleSetVMProtectionPolicyArgs;
* import com.pulumi.azurenative.compute.inputs.SecurityProfileArgs;
* import com.pulumi.azurenative.compute.inputs.UefiSettingsArgs;
* import com.pulumi.azurenative.compute.inputs.StorageProfileArgs;
* import com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;
* import com.pulumi.azurenative.compute.inputs.OSDiskArgs;
* import com.pulumi.azurenative.compute.inputs.DiffDiskSettingsArgs;
* import com.pulumi.azurenative.compute.inputs.DiskEncryptionSettingsArgs;
* import com.pulumi.azurenative.compute.inputs.KeyVaultSecretReferenceArgs;
* import com.pulumi.azurenative.compute.inputs.KeyVaultKeyReferenceArgs;
* import com.pulumi.azurenative.compute.inputs.VirtualHardDiskArgs;
* import com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;
* import com.pulumi.azurenative.compute.inputs.DiskEncryptionSetParametersArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var virtualMachineScaleSetVM = new VirtualMachineScaleSetVM("virtualMachineScaleSetVM", VirtualMachineScaleSetVMArgs.builder()
* .additionalCapabilities(AdditionalCapabilitiesArgs.builder()
* .hibernationEnabled(true)
* .ultraSSDEnabled(true)
* .build())
* .availabilitySet(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .diagnosticsProfile(DiagnosticsProfileArgs.builder()
* .bootDiagnostics(BootDiagnosticsArgs.builder()
* .enabled(true)
* .storageUri("aaaaaaaaaaaaa")
* .build())
* .build())
* .hardwareProfile(HardwareProfileArgs.builder()
* .vmSize("Basic_A0")
* .vmSizeProperties(VMSizePropertiesArgs.builder()
* .vCPUsAvailable(9)
* .vCPUsPerCore(12)
* .build())
* .build())
* .instanceId("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
* .licenseType("aaaaaaaaaa")
* .location("westus")
* .networkProfile(NetworkProfileArgs.builder()
* .networkApiVersion("2020-11-01")
* .networkInterfaceConfigurations(VirtualMachineNetworkInterfaceConfigurationArgs.builder()
* .deleteOption("Delete")
* .dnsSettings(VirtualMachineNetworkInterfaceDnsSettingsConfigurationArgs.builder()
* .dnsServers("aaaaaa")
* .build())
* .dscpConfiguration(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .enableAcceleratedNetworking(true)
* .enableFpga(true)
* .enableIPForwarding(true)
* .ipConfigurations(VirtualMachineNetworkInterfaceIPConfigurationArgs.builder()
* .applicationGatewayBackendAddressPools(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .applicationSecurityGroups(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .loadBalancerBackendAddressPools(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .name("aa")
* .primary(true)
* .privateIPAddressVersion("IPv4")
* .publicIPAddressConfiguration(VirtualMachinePublicIPAddressConfigurationArgs.builder()
* .deleteOption("Delete")
* .dnsSettings(VirtualMachinePublicIPAddressDnsSettingsConfigurationArgs.builder()
* .domainNameLabel("aaaaaaaaaaaaaaaaaaaaaaaaa")
* .build())
* .idleTimeoutInMinutes(2)
* .ipTags(VirtualMachineIpTagArgs.builder()
* .ipTagType("aaaaaaaaaaaaaaaaaaaaaaaaa")
* .tag("aaaaaaaaaaaaaaaaaaaa")
* .build())
* .name("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
* .publicIPAddressVersion("IPv4")
* .publicIPAllocationMethod("Dynamic")
* .publicIPPrefix(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .sku(PublicIPAddressSkuArgs.builder()
* .name("Basic")
* .tier("Regional")
* .build())
* .build())
* .subnet(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .build())
* .name("aaaaaaaaaaa")
* .networkSecurityGroup(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .primary(true)
* .build())
* .networkInterfaces(NetworkInterfaceReferenceArgs.builder()
* .deleteOption("Delete")
* .id("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0/networkInterfaces/vmsstestnetconfig5415")
* .primary(true)
* .build())
* .build())
* .networkProfileConfiguration(VirtualMachineScaleSetVMNetworkProfileConfigurationArgs.builder()
* .networkInterfaceConfigurations(VirtualMachineScaleSetNetworkConfigurationArgs.builder()
* .deleteOption("Delete")
* .dnsSettings(VirtualMachineScaleSetNetworkConfigurationDnsSettingsArgs.builder()
* .dnsServers()
* .build())
* .enableAcceleratedNetworking(true)
* .enableFpga(true)
* .enableIPForwarding(true)
* .ipConfigurations(VirtualMachineScaleSetIPConfigurationArgs.builder()
* .applicationGatewayBackendAddressPools(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .applicationSecurityGroups(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .loadBalancerBackendAddressPools(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .loadBalancerInboundNatPools(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .name("vmsstestnetconfig9693")
* .primary(true)
* .privateIPAddressVersion("IPv4")
* .publicIPAddressConfiguration(VirtualMachineScaleSetPublicIPAddressConfigurationArgs.builder()
* .deleteOption("Delete")
* .dnsSettings(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettingsArgs.builder()
* .domainNameLabel("aaaaaaaaaaaaaaaaaa")
* .build())
* .idleTimeoutInMinutes(18)
* .ipTags(VirtualMachineScaleSetIpTagArgs.builder()
* .ipTagType("aaaaaaa")
* .tag("aaaaaaaaaaaaaaaaaaaaaaaaaaa")
* .build())
* .name("aaaaaaaaaaaaaaaaaa")
* .publicIPAddressVersion("IPv4")
* .publicIPPrefix(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .sku(PublicIPAddressSkuArgs.builder()
* .name("Basic")
* .tier("Regional")
* .build())
* .build())
* .subnet(ApiEntityReferenceArgs.builder()
* .id("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vn4071/subnets/sn5503")
* .build())
* .build())
* .name("vmsstestnetconfig5415")
* .networkSecurityGroup(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .primary(true)
* .build())
* .build())
* .osProfile(OSProfileArgs.builder()
* .adminPassword("aaaaaaaaaaaaaaaa")
* .adminUsername("Foo12")
* .allowExtensionOperations(true)
* .computerName("test000000")
* .customData("aaaa")
* .linuxConfiguration(LinuxConfigurationArgs.builder()
* .disablePasswordAuthentication(true)
* .patchSettings(LinuxPatchSettingsArgs.builder()
* .assessmentMode("ImageDefault")
* .patchMode("ImageDefault")
* .build())
* .provisionVMAgent(true)
* .ssh(SshConfigurationArgs.builder()
* .publicKeys(SshPublicKeyArgs.builder()
* .keyData("aaaaaa")
* .path("aaa")
* .build())
* .build())
* .build())
* .requireGuestProvisionSignal(true)
* .secrets()
* .windowsConfiguration(WindowsConfigurationArgs.builder()
* .additionalUnattendContent(AdditionalUnattendContentArgs.builder()
* .componentName("Microsoft-Windows-Shell-Setup")
* .content("aaaaaaaaaaaaaaaaaaaa")
* .passName("OobeSystem")
* .settingName("AutoLogon")
* .build())
* .enableAutomaticUpdates(true)
* .patchSettings(PatchSettingsArgs.builder()
* .assessmentMode("ImageDefault")
* .enableHotpatching(true)
* .patchMode("Manual")
* .build())
* .provisionVMAgent(true)
* .timeZone("aaaaaaaaaaaaaaaaaaaaaaaaaaa")
* .winRM(WinRMConfigurationArgs.builder()
* .listeners(WinRMListenerArgs.builder()
* .certificateUrl("aaaaaaaaaaaaaaaaaaaaaa")
* .protocol("Http")
* .build())
* .build())
* .build())
* .build())
* .plan(PlanArgs.builder()
* .name("aaaaaaaaaa")
* .product("aaaaaaaaaaaaaaaaaaaa")
* .promotionCode("aaaaaaaaaaaaaaaaaaaa")
* .publisher("aaaaaaaaaaaaaaaaaaaaaa")
* .build())
* .protectionPolicy(VirtualMachineScaleSetVMProtectionPolicyArgs.builder()
* .protectFromScaleIn(true)
* .protectFromScaleSetActions(true)
* .build())
* .resourceGroupName("rgcompute")
* .securityProfile(SecurityProfileArgs.builder()
* .encryptionAtHost(true)
* .securityType("TrustedLaunch")
* .uefiSettings(UefiSettingsArgs.builder()
* .secureBootEnabled(true)
* .vTpmEnabled(true)
* .build())
* .build())
* .storageProfile(StorageProfileArgs.builder()
* .dataDisks(DataDiskArgs.builder()
* .caching("None")
* .createOption("Empty")
* .deleteOption("Delete")
* .detachOption("ForceDetach")
* .diskSizeGB(128)
* .image(VirtualHardDiskArgs.builder()
* .uri("https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd")
* .build())
* .lun(1)
* .managedDisk(ManagedDiskParametersArgs.builder()
* .diskEncryptionSet(DiskEncryptionSetParametersArgs.builder()
* .id("aaaaaaaaaaaa")
* .build())
* .id("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d")
* .storageAccountType("Standard_LRS")
* .build())
* .name("vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d")
* .toBeDetached(true)
* .vhd(VirtualHardDiskArgs.builder()
* .uri("https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd")
* .build())
* .writeAcceleratorEnabled(true)
* .build())
* .imageReference(ImageReferenceArgs.builder()
* .id("a")
* .offer("WindowsServer")
* .publisher("MicrosoftWindowsServer")
* .sharedGalleryImageId("aaaaaaaaaaaaaaaaaaaa")
* .sku("2012-R2-Datacenter")
* .version("4.127.20180315")
* .build())
* .osDisk(OSDiskArgs.builder()
* .caching("None")
* .createOption("FromImage")
* .deleteOption("Delete")
* .diffDiskSettings(DiffDiskSettingsArgs.builder()
* .option("Local")
* .placement("CacheDisk")
* .build())
* .diskSizeGB(127)
* .encryptionSettings(DiskEncryptionSettingsArgs.builder()
* .diskEncryptionKey(KeyVaultSecretReferenceArgs.builder()
* .secretUrl("aaaaaaaa")
* .sourceVault(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .build())
* .enabled(true)
* .keyEncryptionKey(KeyVaultKeyReferenceArgs.builder()
* .keyUrl("aaaaaaaaaaaaaa")
* .sourceVault(SubResourceArgs.builder()
* .id("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}")
* .build())
* .build())
* .build())
* .image(VirtualHardDiskArgs.builder()
* .uri("https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd")
* .build())
* .managedDisk(ManagedDiskParametersArgs.builder()
* .diskEncryptionSet(DiskEncryptionSetParametersArgs.builder()
* .id("aaaaaaaaaaaa")
* .build())
* .id("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc")
* .storageAccountType("Standard_LRS")
* .build())
* .name("vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc")
* .osType("Windows")
* .vhd(VirtualHardDiskArgs.builder()
* .uri("https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd")
* .build())
* .writeAcceleratorEnabled(true)
* .build())
* .build())
* .tags()
* .userData("RXhhbXBsZSBVc2VyRGF0YQ==")
* .vmScaleSetName("aaaaaaaaaaaaaa")
* .build());
* }
* }
* ```
* ### VirtualMachineScaleSetVM_Update_MinimumSet_Gen
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var virtualMachineScaleSetVM = new AzureNative.Compute.VirtualMachineScaleSetVM("virtualMachineScaleSetVM", new()
* {
* InstanceId = "aaaaaaaaaaaaaaaaaaaa",
* Location = "westus",
* ResourceGroupName = "rgcompute",
* VmScaleSetName = "aaaaaaaaaaaaaaaaaa",
* });
* });
* ```
* ```go
* package main
* import (
* compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewVirtualMachineScaleSetVM(ctx, "virtualMachineScaleSetVM", &compute.VirtualMachineScaleSetVMArgs{
* InstanceId: pulumi.String("aaaaaaaaaaaaaaaaaaaa"),
* Location: pulumi.String("westus"),
* ResourceGroupName: pulumi.String("rgcompute"),
* VmScaleSetName: pulumi.String("aaaaaaaaaaaaaaaaaa"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.compute.VirtualMachineScaleSetVM;
* import com.pulumi.azurenative.compute.VirtualMachineScaleSetVMArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var virtualMachineScaleSetVM = new VirtualMachineScaleSetVM("virtualMachineScaleSetVM", VirtualMachineScaleSetVMArgs.builder()
* .instanceId("aaaaaaaaaaaaaaaaaaaa")
* .location("westus")
* .resourceGroupName("rgcompute")
* .vmScaleSetName("aaaaaaaaaaaaaaaaaa")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:compute:VirtualMachineScaleSetVM {vmss-vm-name} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}
* ```
*/
public class VirtualMachineScaleSetVM internal constructor(
override val javaResource: com.pulumi.azurenative.compute.VirtualMachineScaleSetVM,
) : KotlinCustomResource(javaResource, VirtualMachineScaleSetVMMapper) {
/**
* Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type.
*/
public val additionalCapabilities: Output?
get() = javaResource.additionalCapabilities().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> additionalCapabilitiesResponseToKotlin(args0) })
}).orElse(null)
})
/**
* Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.
*/
public val availabilitySet: Output?
get() = javaResource.availabilitySet().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> subResourceResponseToKotlin(args0) })
}).orElse(null)
})
/**
* Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.
*/
public val diagnosticsProfile: Output?
get() = javaResource.diagnosticsProfile().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> diagnosticsProfileResponseToKotlin(args0) })
}).orElse(null)
})
/**
* Specifies the hardware settings for the virtual machine.
*/
public val hardwareProfile: Output?
get() = javaResource.hardwareProfile().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> hardwareProfileResponseToKotlin(args0) })
}).orElse(null)
})
/**
* The identity of the virtual machine, if configured.
*/
public val identity: Output?
get() = javaResource.identity().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
virtualMachineIdentityResponseToKotlin(args0)
})
}).orElse(null)
})
/**
* The virtual machine instance ID.
*/
public val instanceId: Output
get() = javaResource.instanceId().applyValue({ args0 -> args0 })
/**
* The virtual machine instance view.
*/
public val instanceView: Output
get() = javaResource.instanceView().applyValue({ args0 ->
args0.let({ args0 ->
virtualMachineScaleSetVMInstanceViewResponseToKotlin(args0)
})
})
/**
* Specifies whether the latest model has been applied to the virtual machine.
*/
public val latestModelApplied: Output
get() = javaResource.latestModelApplied().applyValue({ args0 -> args0 })
/**
* 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
*/
public val licenseType: Output?
get() = javaResource.licenseType().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Resource location
*/
public val location: Output
get() = javaResource.location().applyValue({ args0 -> args0 })
/**
* Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine.
*/
public val modelDefinitionApplied: Output
get() = javaResource.modelDefinitionApplied().applyValue({ args0 -> args0 })
/**
* Resource name
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* Specifies the network interfaces of the virtual machine.
*/
public val networkProfile: Output?
get() = javaResource.networkProfile().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> networkProfileResponseToKotlin(args0) })
}).orElse(null)
})
/**
* Specifies the network profile configuration of the virtual machine.
*/
public val networkProfileConfiguration:
Output?
get() = javaResource.networkProfileConfiguration().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
virtualMachineScaleSetVMNetworkProfileConfigurationResponseToKotlin(args0)
})
}).orElse(null)
})
/**
* Specifies the operating system settings for the virtual machine.
*/
public val osProfile: Output?
get() = javaResource.osProfile().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
oSProfileResponseToKotlin(args0)
})
}).orElse(null)
})
/**
* 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**.
*/
public val plan: Output?
get() = javaResource.plan().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
planResponseToKotlin(args0)
})
}).orElse(null)
})
/**
* Specifies the protection policy of the virtual machine.
*/
public val protectionPolicy: Output?
get() = javaResource.protectionPolicy().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
virtualMachineScaleSetVMProtectionPolicyResponseToKotlin(args0)
})
}).orElse(null)
})
/**
* The provisioning state, which only appears in the response.
*/
public val provisioningState: Output
get() = javaResource.provisioningState().applyValue({ args0 -> args0 })
/**
* The virtual machine child extension resources.
*/
public val resources: Output>
get() = javaResource.resources().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
virtualMachineExtensionResponseToKotlin(args0)
})
})
})
/**
* Specifies the Security related profile settings for the virtual machine.
*/
public val securityProfile: Output?
get() = javaResource.securityProfile().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> securityProfileResponseToKotlin(args0) })
}).orElse(null)
})
/**
* The virtual machine SKU.
*/
public val sku: Output
get() = javaResource.sku().applyValue({ args0 ->
args0.let({ args0 ->
skuResponseToKotlin(args0)
})
})
/**
* Specifies the storage settings for the virtual machine disks.
*/
public val storageProfile: Output?
get() = javaResource.storageProfile().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> storageProfileResponseToKotlin(args0) })
}).orElse(null)
})
/**
* Resource tags
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}).orElse(null)
})
/**
* Resource type
*/
public val type: Output
get() = javaResource.type().applyValue({ args0 -> args0 })
/**
* UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01
*/
public val userData: Output?
get() = javaResource.userData().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* Azure VM unique ID.
*/
public val vmId: Output
get() = javaResource.vmId().applyValue({ args0 -> args0 })
/**
* The virtual machine zones.
*/
public val zones: Output>
get() = javaResource.zones().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
}
public object VirtualMachineScaleSetVMMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.azurenative.compute.VirtualMachineScaleSetVM::class == javaResource::class
override fun map(javaResource: Resource): VirtualMachineScaleSetVM =
VirtualMachineScaleSetVM(
javaResource as
com.pulumi.azurenative.compute.VirtualMachineScaleSetVM,
)
}
/**
* @see [VirtualMachineScaleSetVM].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [VirtualMachineScaleSetVM].
*/
public suspend fun virtualMachineScaleSetVM(
name: String,
block: suspend VirtualMachineScaleSetVMResourceBuilder.() -> Unit,
): VirtualMachineScaleSetVM {
val builder = VirtualMachineScaleSetVMResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [VirtualMachineScaleSetVM].
* @param name The _unique_ name of the resulting resource.
*/
public fun virtualMachineScaleSetVM(name: String): VirtualMachineScaleSetVM {
val builder = VirtualMachineScaleSetVMResourceBuilder()
builder.name(name)
return builder.build()
}