HyperVCollectorArgs

data class HyperVCollectorArgs(val eTag: Output<String>? = null, val hyperVCollectorName: Output<String>? = null, val projectName: Output<String>? = null, val properties: Output<CollectorPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<HyperVCollectorArgs>

Uses Azure REST API version 2019-10-01. In version 2.x of the Azure Native provider, it used API version 2019-10-01.

Example Usage

HyperVCollectors_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var hyperVCollector = new AzureNative.Migrate.HyperVCollector("hyperVCollector", new()
{
ETag = "\"00000981-0000-0300-0000-5d74cd5f0000\"",
HyperVCollectorName = "migrateprojectce73collector",
ProjectName = "migrateprojectce73project",
Properties = new AzureNative.Migrate.Inputs.CollectorPropertiesArgs
{
AgentProperties = new AzureNative.Migrate.Inputs.CollectorAgentPropertiesArgs
{
SpnDetails = new AzureNative.Migrate.Inputs.CollectorBodyAgentSpnPropertiesArgs
{
ApplicationId = "827f1053-44dc-439f-b832-05416dcce12b",
Audience = "https://72f988bf-86f1-41af-91ab-2d7cd011db47/migrateprojectce73agentauthaadapp",
Authority = "https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47",
ObjectId = "be75098e-c0fc-4ac4-98c7-282ebbcf8370",
TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47",
},
},
DiscoverySiteId = "/subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/ContosoITHyperV/providers/Microsoft.OffAzure/HyperVSites/migrateprojectce73site",
},
ResourceGroupName = "contosoithyperv",
});
});
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.NewHyperVCollector(ctx, "hyperVCollector", &migrate.HyperVCollectorArgs{
ETag: pulumi.String("\"00000981-0000-0300-0000-5d74cd5f0000\""),
HyperVCollectorName: pulumi.String("migrateprojectce73collector"),
ProjectName: pulumi.String("migrateprojectce73project"),
Properties: &migrate.CollectorPropertiesArgs{
AgentProperties: &migrate.CollectorAgentPropertiesArgs{
SpnDetails: &migrate.CollectorBodyAgentSpnPropertiesArgs{
ApplicationId: pulumi.String("827f1053-44dc-439f-b832-05416dcce12b"),
Audience: pulumi.String("https://72f988bf-86f1-41af-91ab-2d7cd011db47/migrateprojectce73agentauthaadapp"),
Authority: pulumi.String("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"),
ObjectId: pulumi.String("be75098e-c0fc-4ac4-98c7-282ebbcf8370"),
TenantId: pulumi.String("72f988bf-86f1-41af-91ab-2d7cd011db47"),
},
},
DiscoverySiteId: pulumi.String("/subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/ContosoITHyperV/providers/Microsoft.OffAzure/HyperVSites/migrateprojectce73site"),
},
ResourceGroupName: pulumi.String("contosoithyperv"),
})
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.HyperVCollector;
import com.pulumi.azurenative.migrate.HyperVCollectorArgs;
import com.pulumi.azurenative.migrate.inputs.CollectorPropertiesArgs;
import com.pulumi.azurenative.migrate.inputs.CollectorAgentPropertiesArgs;
import com.pulumi.azurenative.migrate.inputs.CollectorBodyAgentSpnPropertiesArgs;
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 hyperVCollector = new HyperVCollector("hyperVCollector", HyperVCollectorArgs.builder()
.eTag("\"00000981-0000-0300-0000-5d74cd5f0000\"")
.hyperVCollectorName("migrateprojectce73collector")
.projectName("migrateprojectce73project")
.properties(CollectorPropertiesArgs.builder()
.agentProperties(CollectorAgentPropertiesArgs.builder()
.spnDetails(CollectorBodyAgentSpnPropertiesArgs.builder()
.applicationId("827f1053-44dc-439f-b832-05416dcce12b")
.audience("https://72f988bf-86f1-41af-91ab-2d7cd011db47/migrateprojectce73agentauthaadapp")
.authority("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47")
.objectId("be75098e-c0fc-4ac4-98c7-282ebbcf8370")
.tenantId("72f988bf-86f1-41af-91ab-2d7cd011db47")
.build())
.build())
.discoverySiteId("/subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/ContosoITHyperV/providers/Microsoft.OffAzure/HyperVSites/migrateprojectce73site")
.build())
.resourceGroupName("contosoithyperv")
.build());
}
}

Import

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

$ pulumi import azure-native:migrate:HyperVCollector migrateprojectce73collector /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/hypervcollectors/{hyperVCollectorName}

Constructors

Link copied to clipboard
constructor(eTag: Output<String>? = null, hyperVCollectorName: Output<String>? = null, projectName: Output<String>? = null, properties: Output<CollectorPropertiesArgs>? = null, resourceGroupName: Output<String>? = null)

Properties

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

Unique name of a Hyper-V collector within a project.

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

Name of the Azure Migrate project.

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

Name of the Azure Resource Group that project is part of.

Functions

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