GuestAgentArgs

data class GuestAgentArgs(val credentials: Output<GuestCredentialArgs>? = null, val httpProxyConfig: Output<HttpProxyConfigurationArgs>? = null, val name: Output<String>? = null, val provisioningAction: Output<Either<String, ProvisioningAction>>? = null, val resourceGroupName: Output<String>? = null, val virtualMachineName: Output<String>? = null) : ConvertibleToJava<GuestAgentArgs>

Defines the GuestAgent. Uses Azure REST API version 2022-12-15-preview. Other available API versions: 2023-07-01-preview, 2023-09-01-preview, 2024-01-01, 2024-02-01-preview, 2024-05-01-preview, 2024-07-15-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-02-01-preview, 2025-04-01-preview.

Example Usage

CreateGuestAgent

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var guestAgent = new AzureNative.AzureStackHCI.GuestAgent("guestAgent", new()
{
Credentials = new AzureNative.AzureStackHCI.Inputs.GuestCredentialArgs
{
Password = "<password>",
Username = "tempuser",
},
Name = "default",
ProvisioningAction = AzureNative.AzureStackHCI.ProvisioningAction.Install,
ResourceGroupName = "testrg",
VirtualMachineName = "ContosoVm",
});
});
package main
import (
azurestackhci "github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurestackhci.NewGuestAgent(ctx, "guestAgent", &azurestackhci.GuestAgentArgs{
Credentials: &azurestackhci.GuestCredentialArgs{
Password: pulumi.String("<password>"),
Username: pulumi.String("tempuser"),
},
Name: pulumi.String("default"),
ProvisioningAction: pulumi.String(azurestackhci.ProvisioningActionInstall),
ResourceGroupName: pulumi.String("testrg"),
VirtualMachineName: pulumi.String("ContosoVm"),
})
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.GuestAgent;
import com.pulumi.azurenative.azurestackhci.GuestAgentArgs;
import com.pulumi.azurenative.azurestackhci.inputs.GuestCredentialArgs;
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 guestAgent = new GuestAgent("guestAgent", GuestAgentArgs.builder()
.credentials(GuestCredentialArgs.builder()
.password("<password>")
.username("tempuser")
.build())
.name("default")
.provisioningAction("install")
.resourceGroupName("testrg")
.virtualMachineName("ContosoVm")
.build());
}
}

Import

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

$ pulumi import azure-native:azurestackhci:GuestAgent default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualMachines/{virtualMachineName}/guestAgents/{name}

Constructors

Link copied to clipboard
constructor(credentials: Output<GuestCredentialArgs>? = null, httpProxyConfig: Output<HttpProxyConfigurationArgs>? = null, name: Output<String>? = null, provisioningAction: Output<Either<String, ProvisioningAction>>? = null, resourceGroupName: Output<String>? = null, virtualMachineName: Output<String>? = null)

Properties

Link copied to clipboard
val credentials: Output<GuestCredentialArgs>? = null

Username / Password Credentials to provision guest agent.

Link copied to clipboard

HTTP Proxy configuration for the VM.

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

Name of the guestAgents.

Link copied to clipboard
val provisioningAction: Output<Either<String, ProvisioningAction>>? = null

The guest agent provisioning action.

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

Name of the vm.

Functions

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