ExtensionArgs

data class ExtensionArgs(val arcSettingName: Output<String>? = null, val autoUpgradeMinorVersion: Output<Boolean>? = null, val clusterName: Output<String>? = null, val createdAt: Output<String>? = null, val createdBy: Output<String>? = null, val createdByType: Output<Either<String, CreatedByType>>? = null, val extensionName: Output<String>? = null, val forceUpdateTag: Output<String>? = null, val lastModifiedAt: Output<String>? = null, val lastModifiedBy: Output<String>? = null, val lastModifiedByType: Output<Either<String, CreatedByType>>? = null, val protectedSettings: Output<Any>? = null, val publisher: Output<String>? = null, val resourceGroupName: Output<String>? = null, val settings: Output<Any>? = null, val type: Output<String>? = null, val typeHandlerVersion: Output<String>? = null) : ConvertibleToJava<ExtensionArgs>

Details of a particular extension in HCI Cluster. API Version: 2021-01-01-preview.

Example Usage

Create Arc Extension

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var extension = new AzureNative.AzureStackHCI.Extension("extension", new()
{
ArcSettingName = "default",
ClusterName = "myCluster",
ExtensionName = "MicrosoftMonitoringAgent",
ProtectedSettings =
{
{ "workspaceKey", "xx" },
},
Publisher = "Microsoft.Compute",
ResourceGroupName = "test-rg",
Settings =
{
{ "workspaceId", "xx" },
},
Type = "MicrosoftMonitoringAgent",
TypeHandlerVersion = "1.10",
});
});
package main
import (
azurestackhci "github.com/pulumi/pulumi-azure-native-sdk/azurestackhci"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurestackhci.NewExtension(ctx, "extension", &azurestackhci.ExtensionArgs{
ArcSettingName: pulumi.String("default"),
ClusterName: pulumi.String("myCluster"),
ExtensionName: pulumi.String("MicrosoftMonitoringAgent"),
ProtectedSettings: pulumi.Any{
WorkspaceKey: "xx",
},
Publisher: pulumi.String("Microsoft.Compute"),
ResourceGroupName: pulumi.String("test-rg"),
Settings: pulumi.Any{
WorkspaceId: "xx",
},
Type: pulumi.String("MicrosoftMonitoringAgent"),
TypeHandlerVersion: pulumi.String("1.10"),
})
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.azurestackhci.Extension;
import com.pulumi.azurenative.azurestackhci.ExtensionArgs;
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 extension = new Extension("extension", ExtensionArgs.builder()
.arcSettingName("default")
.clusterName("myCluster")
.extensionName("MicrosoftMonitoringAgent")
.protectedSettings(Map.of("workspaceKey", "xx"))
.publisher("Microsoft.Compute")
.resourceGroupName("test-rg")
.settings(Map.of("workspaceId", "xx"))
.type("MicrosoftMonitoringAgent")
.typeHandlerVersion("1.10")
.build());
}
}

Import

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

$ pulumi import azure-native:azurestackhci:Extension MicrosoftMonitoringAgent /subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/test-rg/providers/Microsoft.AzureStackHCI/clusters/myCluster/arcSettings/default/extensions/MicrosoftMonitoringAgent

Constructors

Link copied to clipboard
constructor(arcSettingName: Output<String>? = null, autoUpgradeMinorVersion: Output<Boolean>? = null, clusterName: Output<String>? = null, createdAt: Output<String>? = null, createdBy: Output<String>? = null, createdByType: Output<Either<String, CreatedByType>>? = null, extensionName: Output<String>? = null, forceUpdateTag: Output<String>? = null, lastModifiedAt: Output<String>? = null, lastModifiedBy: Output<String>? = null, lastModifiedByType: Output<Either<String, CreatedByType>>? = null, protectedSettings: Output<Any>? = null, publisher: Output<String>? = null, resourceGroupName: Output<String>? = null, settings: Output<Any>? = null, type: Output<String>? = null, typeHandlerVersion: Output<String>? = null)

Properties

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

The name of the proxy resource holding details of HCI ArcSetting information.

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 clusterName: Output<String>? = null

The name of the cluster.

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

The timestamp of resource creation (UTC).

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

The identity that created the resource.

Link copied to clipboard
val createdByType: Output<Either<String, CreatedByType>>? = null

The type of identity that created the resource.

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

The name of the machine extension.

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

How the extension handler should be forced to update even if the extension configuration has not changed.

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

The timestamp of resource last modification (UTC)

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

The identity that last modified the resource.

Link copied to clipboard
val lastModifiedByType: Output<Either<String, CreatedByType>>? = null

The type of identity that last modified the resource.

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

Protected settings (may contain secrets).

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. The name is case insensitive.

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

Json formatted public settings for the extension.

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.

Functions

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