HypervCollectorsOperationArgs

data class HypervCollectorsOperationArgs(val agentProperties: Output<CollectorAgentPropertiesBaseArgs>? = null, val discoverySiteId: Output<String>? = null, val hypervCollectorName: Output<String>? = null, val projectName: Output<String>? = null, val provisioningState: Output<Either<String, ProvisioningState>>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<HypervCollectorsOperationArgs>

Hyper-V collector resource. Uses Azure REST API version 2024-01-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-03-15. Other available API versions: 2023-03-15, 2023-04-01-preview, 2023-05-01-preview, 2023-09-09-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native migrate [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

HypervCollectorsOperations_Create_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var hypervCollectorsOperation = new AzureNative.Migrate.HypervCollectorsOperation("hypervCollectorsOperation", new()
{
AgentProperties = new AzureNative.Migrate.Inputs.CollectorAgentPropertiesBaseArgs
{
Id = "12f1d90f-b3fa-4926-8893-e56803a09af0",
LastHeartbeatUtc = "2022-07-07T14:25:35.708325Z",
SpnDetails = new AzureNative.Migrate.Inputs.CollectorAgentSpnPropertiesBaseArgs
{
ApplicationId = "e3bd6eaa-980b-40ae-a30e-2a5069ba097c",
Audience = "e3bd6eaa-980b-40ae-a30e-2a5069ba097c",
Authority = "https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47",
ObjectId = "01b9f9e2-2d82-414c-adaa-09ce259b6b44",
TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47",
},
Version = "2.0.1993.19",
},
DiscoverySiteId = "/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/ayagrawRG/providers/Microsoft.OffAzure/HyperVSites/test-60527site",
HypervCollectorName = "test-697cecollector",
ProjectName = "app18700project",
ProvisioningState = AzureNative.Migrate.ProvisioningState.Succeeded,
ResourceGroupName = "ayagrawRG",
});
});
package main
import (
migrate "github.com/pulumi/pulumi-azure-native-sdk/migrate/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := migrate.NewHypervCollectorsOperation(ctx, "hypervCollectorsOperation", &migrate.HypervCollectorsOperationArgs{
AgentProperties: &migrate.CollectorAgentPropertiesBaseArgs{
Id: pulumi.String("12f1d90f-b3fa-4926-8893-e56803a09af0"),
LastHeartbeatUtc: pulumi.String("2022-07-07T14:25:35.708325Z"),
SpnDetails: &migrate.CollectorAgentSpnPropertiesBaseArgs{
ApplicationId: pulumi.String("e3bd6eaa-980b-40ae-a30e-2a5069ba097c"),
Audience: pulumi.String("e3bd6eaa-980b-40ae-a30e-2a5069ba097c"),
Authority: pulumi.String("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"),
ObjectId: pulumi.String("01b9f9e2-2d82-414c-adaa-09ce259b6b44"),
TenantId: pulumi.String("72f988bf-86f1-41af-91ab-2d7cd011db47"),
},
Version: pulumi.String("2.0.1993.19"),
},
DiscoverySiteId: pulumi.String("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/ayagrawRG/providers/Microsoft.OffAzure/HyperVSites/test-60527site"),
HypervCollectorName: pulumi.String("test-697cecollector"),
ProjectName: pulumi.String("app18700project"),
ProvisioningState: pulumi.String(migrate.ProvisioningStateSucceeded),
ResourceGroupName: pulumi.String("ayagrawRG"),
})
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.migrate.HypervCollectorsOperation;
import com.pulumi.azurenative.migrate.HypervCollectorsOperationArgs;
import com.pulumi.azurenative.migrate.inputs.CollectorAgentPropertiesBaseArgs;
import com.pulumi.azurenative.migrate.inputs.CollectorAgentSpnPropertiesBaseArgs;
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 hypervCollectorsOperation = new HypervCollectorsOperation("hypervCollectorsOperation", HypervCollectorsOperationArgs.builder()
.agentProperties(CollectorAgentPropertiesBaseArgs.builder()
.id("12f1d90f-b3fa-4926-8893-e56803a09af0")
.lastHeartbeatUtc("2022-07-07T14:25:35.708325Z")
.spnDetails(CollectorAgentSpnPropertiesBaseArgs.builder()
.applicationId("e3bd6eaa-980b-40ae-a30e-2a5069ba097c")
.audience("e3bd6eaa-980b-40ae-a30e-2a5069ba097c")
.authority("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47")
.objectId("01b9f9e2-2d82-414c-adaa-09ce259b6b44")
.tenantId("72f988bf-86f1-41af-91ab-2d7cd011db47")
.build())
.version("2.0.1993.19")
.build())
.discoverySiteId("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/ayagrawRG/providers/Microsoft.OffAzure/HyperVSites/test-60527site")
.hypervCollectorName("test-697cecollector")
.projectName("app18700project")
.provisioningState("Succeeded")
.resourceGroupName("ayagrawRG")
.build());
}
}

Import

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

$ pulumi import azure-native:migrate:HypervCollectorsOperation test-697cecollector /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/hypervcollectors/{hypervCollectorName}

Constructors

Link copied to clipboard
constructor(agentProperties: Output<CollectorAgentPropertiesBaseArgs>? = null, discoverySiteId: Output<String>? = null, hypervCollectorName: Output<String>? = null, projectName: Output<String>? = null, provisioningState: Output<Either<String, ProvisioningState>>? = null, resourceGroupName: Output<String>? = null)

Properties

Link copied to clipboard

Gets or sets the collector agent properties.

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

Gets the discovery site id.

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

Hyper-V collector ARM name

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

Assessment Project Name

Link copied to clipboard
val provisioningState: Output<Either<String, ProvisioningState>>? = null

The status of the last operation.

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

The name of the resource group. The name is case insensitive.

Functions

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