VMInstance Guest Agent Args
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-03-01-preview. Other available API versions: 2023-10-01, 2023-12-01.
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",
});
});
Content copied to clipboard
package main
import (
connectedvmwarevsphere "github.com/pulumi/pulumi-azure-native-sdk/connectedvmwarevsphere/v2"
"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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
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
Username / Password Credentials to provision guest agent.
Link copied to clipboard
HTTP Proxy configuration for the VM.
Link copied to clipboard
The resource id of the private link scope this machine is assigned to, if any.
Link copied to clipboard
Gets or sets the guest agent provisioning action.
Link copied to clipboard
The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.