VirtualMachineScaleSetExtensionArgs

data class VirtualMachineScaleSetExtensionArgs(val autoUpgradeMinorVersion: Output<Boolean>? = null, val enableAutomaticUpgrade: Output<Boolean>? = null, val forceUpdateTag: Output<String>? = null, val name: Output<String>? = null, val protectedSettings: Output<Any>? = null, val protectedSettingsFromKeyVault: Output<KeyVaultSecretReferenceArgs>? = null, val provisionAfterExtensions: Output<List<String>>? = null, val publisher: Output<String>? = null, val resourceGroupName: Output<String>? = null, val settings: Output<Any>? = null, val suppressFailures: Output<Boolean>? = null, val type: Output<String>? = null, val typeHandlerVersion: Output<String>? = null, val vmScaleSetName: Output<String>? = null, val vmssExtensionName: Output<String>? = null) : ConvertibleToJava<VirtualMachineScaleSetExtensionArgs>

Describes a Virtual Machine Scale Set Extension. Uses Azure REST API version 2024-11-01. In version 2.x of the Azure Native provider, it used API version 2023-03-01. Other available API versions: 2022-08-01, 2022-11-01, 2023-03-01, 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native compute [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var virtualMachineScaleSetExtension = new AzureNative.Compute.VirtualMachineScaleSetExtension("virtualMachineScaleSetExtension", new()
{
AutoUpgradeMinorVersion = true,
EnableAutomaticUpgrade = true,
ForceUpdateTag = "aaaaaaaaa",
Name = "{extension-name}",
ProtectedSettings = null,
ProvisionAfterExtensions = new[]
{
"aa",
},
Publisher = "{extension-Publisher}",
ResourceGroupName = "rgcompute",
Settings = null,
SuppressFailures = true,
Type = "{extension-Type}",
TypeHandlerVersion = "{handler-version}",
VmScaleSetName = "aaaaaaa",
VmssExtensionName = "aaaaaaaaaaaaaaaaaaaaa",
});
});
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.NewVirtualMachineScaleSetExtension(ctx, "virtualMachineScaleSetExtension", &compute.VirtualMachineScaleSetExtensionArgs{
AutoUpgradeMinorVersion: pulumi.Bool(true),
EnableAutomaticUpgrade: pulumi.Bool(true),
ForceUpdateTag: pulumi.String("aaaaaaaaa"),
Name: pulumi.String("{extension-name}"),
ProtectedSettings: pulumi.Any(map[string]interface{}{}),
ProvisionAfterExtensions: pulumi.StringArray{
pulumi.String("aa"),
},
Publisher: pulumi.String("{extension-Publisher}"),
ResourceGroupName: pulumi.String("rgcompute"),
Settings: pulumi.Any(map[string]interface{}{}),
SuppressFailures: pulumi.Bool(true),
Type: pulumi.String("{extension-Type}"),
TypeHandlerVersion: pulumi.String("{handler-version}"),
VmScaleSetName: pulumi.String("aaaaaaa"),
VmssExtensionName: pulumi.String("aaaaaaaaaaaaaaaaaaaaa"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.VirtualMachineScaleSetExtension;
import com.pulumi.azurenative.compute.VirtualMachineScaleSetExtensionArgs;
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 virtualMachineScaleSetExtension = new VirtualMachineScaleSetExtension("virtualMachineScaleSetExtension", VirtualMachineScaleSetExtensionArgs.builder()
.autoUpgradeMinorVersion(true)
.enableAutomaticUpgrade(true)
.forceUpdateTag("aaaaaaaaa")
.name("{extension-name}")
.protectedSettings()
.provisionAfterExtensions("aa")
.publisher("{extension-Publisher}")
.resourceGroupName("rgcompute")
.settings()
.suppressFailures(true)
.type("{extension-Type}")
.typeHandlerVersion("{handler-version}")
.vmScaleSetName("aaaaaaa")
.vmssExtensionName("aaaaaaaaaaaaaaaaaaaaa")
.build());
}
}

VirtualMachineScaleSetExtension_CreateOrUpdate_MinimumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var virtualMachineScaleSetExtension = new AzureNative.Compute.VirtualMachineScaleSetExtension("virtualMachineScaleSetExtension", new()
{
ResourceGroupName = "rgcompute",
VmScaleSetName = "aaaaaaaaaaa",
VmssExtensionName = "aaaaaaaaaaa",
});
});
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.NewVirtualMachineScaleSetExtension(ctx, "virtualMachineScaleSetExtension", &compute.VirtualMachineScaleSetExtensionArgs{
ResourceGroupName: pulumi.String("rgcompute"),
VmScaleSetName: pulumi.String("aaaaaaaaaaa"),
VmssExtensionName: pulumi.String("aaaaaaaaaaa"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.VirtualMachineScaleSetExtension;
import com.pulumi.azurenative.compute.VirtualMachineScaleSetExtensionArgs;
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 virtualMachineScaleSetExtension = new VirtualMachineScaleSetExtension("virtualMachineScaleSetExtension", VirtualMachineScaleSetExtensionArgs.builder()
.resourceGroupName("rgcompute")
.vmScaleSetName("aaaaaaaaaaa")
.vmssExtensionName("aaaaaaaaaaa")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:compute:VirtualMachineScaleSetExtension {extension-name} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}

Constructors

Link copied to clipboard
constructor(autoUpgradeMinorVersion: Output<Boolean>? = null, enableAutomaticUpgrade: Output<Boolean>? = null, forceUpdateTag: Output<String>? = null, name: Output<String>? = null, protectedSettings: Output<Any>? = null, protectedSettingsFromKeyVault: Output<KeyVaultSecretReferenceArgs>? = null, provisionAfterExtensions: Output<List<String>>? = null, publisher: Output<String>? = null, resourceGroupName: Output<String>? = null, settings: Output<Any>? = null, suppressFailures: Output<Boolean>? = null, type: Output<String>? = null, typeHandlerVersion: Output<String>? = null, vmScaleSetName: Output<String>? = null, vmssExtensionName: Output<String>? = null)

Properties

Link copied to clipboard
val autoUpgradeMinorVersion: Output<Boolean>? = null

Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.

Link copied to clipboard
val enableAutomaticUpgrade: Output<Boolean>? = null

Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.

Link copied to clipboard
val forceUpdateTag: Output<String>? = null

If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.

Link copied to clipboard
val name: Output<String>? = null

The name of the extension.

Link copied to clipboard
val protectedSettings: Output<Any>? = null

The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.

Link copied to clipboard

The extensions protected settings that are passed by reference, and consumed from key vault

Link copied to clipboard
val provisionAfterExtensions: Output<List<String>>? = null

Collection of extension names after which this extension needs to be provisioned.

Link copied to clipboard
val publisher: Output<String>? = null

The name of the extension handler publisher.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val settings: Output<Any>? = null

Json formatted public settings for the extension.

Link copied to clipboard
val suppressFailures: Output<Boolean>? = null

Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false.

Link copied to clipboard
val type: Output<String>? = null

Specifies the type of the extension; an example is "CustomScriptExtension".

Link copied to clipboard
val typeHandlerVersion: Output<String>? = null

Specifies the version of the script handler.

Link copied to clipboard
val vmScaleSetName: Output<String>? = null

The name of the VM scale set where the extension should be create or updated.

Link copied to clipboard
val vmssExtensionName: Output<String>? = null

The name of the VM scale set extension.

Functions

Link copied to clipboard
open override fun toJava(): VirtualMachineScaleSetExtensionArgs