VMInstanceGuestAgentArgs

data class VMInstanceGuestAgentArgs(val credentials: Output<GuestCredentialArgs>? = null, val httpProxyConfig: Output<HttpProxyConfigurationArgs>? = null, val privateLinkScopeResourceId: Output<String>? = null, val provisioningAction: Output<Either<String, ProvisioningAction>>? = null, val resourceUri: Output<String>? = null) : ConvertibleToJava<VMInstanceGuestAgentArgs>

Defines the GuestAgent. Uses Azure REST API version 2023-12-01. In version 2.x of the Azure Native provider, it used API version 2023-03-01-preview. Other available API versions: 2023-03-01-preview, 2023-10-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native connectedvmwarevsphere [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

CreateGuestAgent

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var vmInstanceGuestAgent = new AzureNative.ConnectedVMwarevSphere.VMInstanceGuestAgent("vmInstanceGuestAgent", new()
{
Credentials = new AzureNative.ConnectedVMwarevSphere.Inputs.GuestCredentialArgs
{
Password = "<password>",
Username = "tempuser",
},
HttpProxyConfig = new AzureNative.ConnectedVMwarevSphere.Inputs.HttpProxyConfigurationArgs
{
HttpsProxy = "http://192.1.2.3:8080",
},
PrivateLinkScopeResourceId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName",
ProvisioningAction = AzureNative.ConnectedVMwarevSphere.ProvisioningAction.Install,
ResourceUri = "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM",
});
});
package main
import (
connectedvmwarevsphere "github.com/pulumi/pulumi-azure-native-sdk/connectedvmwarevsphere/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connectedvmwarevsphere.NewVMInstanceGuestAgent(ctx, "vmInstanceGuestAgent", &connectedvmwarevsphere.VMInstanceGuestAgentArgs{
Credentials: &connectedvmwarevsphere.GuestCredentialArgs{
Password: pulumi.String("<password>"),
Username: pulumi.String("tempuser"),
},
HttpProxyConfig: &connectedvmwarevsphere.HttpProxyConfigurationArgs{
HttpsProxy: pulumi.String("http://192.1.2.3:8080"),
},
PrivateLinkScopeResourceId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName"),
ProvisioningAction: pulumi.String(connectedvmwarevsphere.ProvisioningActionInstall),
ResourceUri: pulumi.String("subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM"),
})
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.VMInstanceGuestAgent;
import com.pulumi.azurenative.connectedvmwarevsphere.VMInstanceGuestAgentArgs;
import com.pulumi.azurenative.connectedvmwarevsphere.inputs.GuestCredentialArgs;
import com.pulumi.azurenative.connectedvmwarevsphere.inputs.HttpProxyConfigurationArgs;
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 vmInstanceGuestAgent = new VMInstanceGuestAgent("vmInstanceGuestAgent", VMInstanceGuestAgentArgs.builder()
.credentials(GuestCredentialArgs.builder()
.password("<password>")
.username("tempuser")
.build())
.httpProxyConfig(HttpProxyConfigurationArgs.builder()
.httpsProxy("http://192.1.2.3:8080")
.build())
.privateLinkScopeResourceId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName")
.provisioningAction("install")
.resourceUri("subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM")
.build());
}
}

Import

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

$ pulumi import azure-native:connectedvmwarevsphere:VMInstanceGuestAgent default /{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/guestAgents/default

Constructors

Link copied to clipboard
constructor(credentials: Output<GuestCredentialArgs>? = null, httpProxyConfig: Output<HttpProxyConfigurationArgs>? = null, privateLinkScopeResourceId: Output<String>? = null, provisioningAction: Output<Either<String, ProvisioningAction>>? = null, resourceUri: 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 privateLinkScopeResourceId: Output<String>? = null

The resource id of the private link scope this machine is assigned to, if any.

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

Gets or sets the guest agent provisioning action.

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

The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.

Functions

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