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. API Version: 2020-10-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.ConnectedVMwarevSphere.GuestAgent("guestAgent", new()
{
Credentials = new AzureNative.ConnectedVMwarevSphere.Inputs.GuestCredentialArgs
{
Password = "<password>",
Username = "tempuser",
},
HttpProxyConfig = new AzureNative.ConnectedVMwarevSphere.Inputs.HttpProxyConfigurationArgs
{
HttpsProxy = "http://192.1.2.3:8080",
},
Name = "default",
ProvisioningAction = "install",
ResourceGroupName = "testrg",
VirtualMachineName = "ContosoVm",
});
});
package main
import (
connectedvmwarevsphere "github.com/pulumi/pulumi-azure-native-sdk/connectedvmwarevsphere"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connectedvmwarevsphere.NewGuestAgent(ctx, "guestAgent", &connectedvmwarevsphere.GuestAgentArgs{
Credentials: &connectedvmwarevsphere.GuestCredentialArgs{
Password: pulumi.String("<password>"),
Username: pulumi.String("tempuser"),
},
HttpProxyConfig: &connectedvmwarevsphere.HttpProxyConfigurationArgs{
HttpsProxy: pulumi.String("http://192.1.2.3:8080"),
},
Name: pulumi.String("default"),
ProvisioningAction: pulumi.String("install"),
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.connectedvmwarevsphere.GuestAgent;
import com.pulumi.azurenative.connectedvmwarevsphere.GuestAgentArgs;
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(Map.ofEntries(
Map.entry("password", "<password>"),
Map.entry("username", "tempuser")
))
.httpProxyConfig(Map.of("httpsProxy", "http://192.1.2.3:8080"))
.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:connectedvmwarevsphere:GuestAgent default /subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VitualMachines/ContosoVm/guestAgents/default

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

Gets or sets the guest agent provisioning action.

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

The Resource Group Name.

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

Name of the vm.

Functions

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