Extension

class Extension : KotlinCustomResource

Manages a Hybrid Compute Machine Extension.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.arcmachine.ArcmachineFunctions;
import com.pulumi.azure.arcmachine.inputs.GetArgs;
import com.pulumi.azure.arcmachine.Extension;
import com.pulumi.azure.arcmachine.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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.name("example")
.location("West Europe")
.build());
final var example = ArcmachineFunctions.get(GetArgs.builder()
.name("existing-hcmachine")
.resourceGroupName(exampleResourceGroup.name())
.build());
var exampleExtension = new Extension("exampleExtension", ExtensionArgs.builder()
.name("example")
.location("West Europe")
.arcMachineId(example.applyValue(getResult -> getResult).applyValue(example -> example.applyValue(getResult -> getResult.id())))
.publisher("Microsoft.Azure.Monitor")
.type("AzureMonitorLinuxAgent")
.build());
}
}

Import

Hybrid Compute Machine Extensions can be imported using the resource id, e.g.

$ pulumi import azure:arcmachine/extension:Extension example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.HybridCompute/machines/hcmachine1/extensions/ext1

Properties

Link copied to clipboard
val arcMachineId: Output<String>

The ID of the Hybrid Compute Machine Extension. Changing this forces a new Hybrid Compute Machine Extension to be created.

Link copied to clipboard

Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. Supported values are true and false. Defaults to true.

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

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The Azure Region where the Hybrid Compute Machine Extension should exist. Changing this forces a new Hybrid Compute Machine Extension to be created.

Link copied to clipboard
val name: Output<String>

The name which should be used for this Hybrid Compute Machine Extension. Changing this forces a new Hybrid Compute Machine Extension to be created.

Link copied to clipboard

Json formatted protected settings for the extension.

Link copied to clipboard
val publisher: Output<String>

The name of the extension handler publisher, such as Microsoft.Azure.Monitor. Changing this forces a new Hybrid Compute Machine Extension to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val settings: Output<String>?

Json formatted public settings for the extension.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags which should be assigned to the Hybrid Compute Machine Extension.

Link copied to clipboard
val type: Output<String>

Specifies the type of the extension. For example CustomScriptExtension or AzureMonitorLinuxAgent. Changing this forces a new Hybrid Compute Machine Extension to be created.

Link copied to clipboard

Specifies the version of the script handler.

Link copied to clipboard
val urn: Output<String>