1. Packages
  2. Azure Native v1
  3. API Docs
  4. migrate
  5. HyperVCollector
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.migrate.HyperVCollector

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    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",
        });
    
    });
    

    Coming soon!

    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 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(Map.ofEntries(
                    Map.entry("agentProperties", Map.of("spnDetails", Map.ofEntries(
                        Map.entry("applicationId", "827f1053-44dc-439f-b832-05416dcce12b"),
                        Map.entry("audience", "https://72f988bf-86f1-41af-91ab-2d7cd011db47/migrateprojectce73agentauthaadapp"),
                        Map.entry("authority", "https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"),
                        Map.entry("objectId", "be75098e-c0fc-4ac4-98c7-282ebbcf8370"),
                        Map.entry("tenantId", "72f988bf-86f1-41af-91ab-2d7cd011db47")
                    ))),
                    Map.entry("discoverySiteId", "/subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/ContosoITHyperV/providers/Microsoft.OffAzure/HyperVSites/migrateprojectce73site")
                ))
                .resourceGroupName("contosoithyperv")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    hyper_v_collector = azure_native.migrate.HyperVCollector("hyperVCollector",
        e_tag="\"00000981-0000-0300-0000-5d74cd5f0000\"",
        hyper_v_collector_name="migrateprojectce73collector",
        project_name="migrateprojectce73project",
        properties=azure_native.migrate.CollectorPropertiesResponseArgs(
            agent_properties={
                "spnDetails": azure_native.migrate.CollectorBodyAgentSpnPropertiesArgs(
                    application_id="827f1053-44dc-439f-b832-05416dcce12b",
                    audience="https://72f988bf-86f1-41af-91ab-2d7cd011db47/migrateprojectce73agentauthaadapp",
                    authority="https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47",
                    object_id="be75098e-c0fc-4ac4-98c7-282ebbcf8370",
                    tenant_id="72f988bf-86f1-41af-91ab-2d7cd011db47",
                ),
            },
            discovery_site_id="/subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/ContosoITHyperV/providers/Microsoft.OffAzure/HyperVSites/migrateprojectce73site",
        ),
        resource_group_name="contosoithyperv")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const hyperVCollector = new azure_native.migrate.HyperVCollector("hyperVCollector", {
        eTag: "\"00000981-0000-0300-0000-5d74cd5f0000\"",
        hyperVCollectorName: "migrateprojectce73collector",
        projectName: "migrateprojectce73project",
        properties: {
            agentProperties: {
                spnDetails: {
                    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",
    });
    
    resources:
      hyperVCollector:
        type: azure-native:migrate:HyperVCollector
        properties:
          eTag: '"00000981-0000-0300-0000-5d74cd5f0000"'
          hyperVCollectorName: migrateprojectce73collector
          projectName: migrateprojectce73project
          properties:
            agentProperties:
              spnDetails:
                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
    

    Create HyperVCollector Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new HyperVCollector(name: string, args: HyperVCollectorArgs, opts?: CustomResourceOptions);
    @overload
    def HyperVCollector(resource_name: str,
                        args: HyperVCollectorArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def HyperVCollector(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        project_name: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        e_tag: Optional[str] = None,
                        hyper_v_collector_name: Optional[str] = None,
                        properties: Optional[CollectorPropertiesArgs] = None)
    func NewHyperVCollector(ctx *Context, name string, args HyperVCollectorArgs, opts ...ResourceOption) (*HyperVCollector, error)
    public HyperVCollector(string name, HyperVCollectorArgs args, CustomResourceOptions? opts = null)
    public HyperVCollector(String name, HyperVCollectorArgs args)
    public HyperVCollector(String name, HyperVCollectorArgs args, CustomResourceOptions options)
    
    type: azure-native:migrate:HyperVCollector
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args HyperVCollectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args HyperVCollectorArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args HyperVCollectorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HyperVCollectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HyperVCollectorArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var hyperVCollectorResource = new AzureNative.Migrate.HyperVCollector("hyperVCollectorResource", new()
    {
        ProjectName = "string",
        ResourceGroupName = "string",
        ETag = "string",
        HyperVCollectorName = "string",
        Properties = 
        {
            { "agentProperties", 
            {
                { "spnDetails", 
                {
                    { "applicationId", "string" },
                    { "audience", "string" },
                    { "authority", "string" },
                    { "objectId", "string" },
                    { "tenantId", "string" },
                } },
            } },
            { "discoverySiteId", "string" },
        },
    });
    
    example, err := migrate.NewHyperVCollector(ctx, "hyperVCollectorResource", &migrate.HyperVCollectorArgs{
    	ProjectName:         "string",
    	ResourceGroupName:   "string",
    	ETag:                "string",
    	HyperVCollectorName: "string",
    	Properties: map[string]interface{}{
    		"agentProperties": map[string]interface{}{
    			"spnDetails": map[string]interface{}{
    				"applicationId": "string",
    				"audience":      "string",
    				"authority":     "string",
    				"objectId":      "string",
    				"tenantId":      "string",
    			},
    		},
    		"discoverySiteId": "string",
    	},
    })
    
    var hyperVCollectorResource = new HyperVCollector("hyperVCollectorResource", HyperVCollectorArgs.builder()
        .projectName("string")
        .resourceGroupName("string")
        .eTag("string")
        .hyperVCollectorName("string")
        .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    hyper_v_collector_resource = azure_native.migrate.HyperVCollector("hyperVCollectorResource",
        project_name=string,
        resource_group_name=string,
        e_tag=string,
        hyper_v_collector_name=string,
        properties={
            agentProperties: {
                spnDetails: {
                    applicationId: string,
                    audience: string,
                    authority: string,
                    objectId: string,
                    tenantId: string,
                },
            },
            discoverySiteId: string,
        })
    
    const hyperVCollectorResource = new azure_native.migrate.HyperVCollector("hyperVCollectorResource", {
        projectName: "string",
        resourceGroupName: "string",
        eTag: "string",
        hyperVCollectorName: "string",
        properties: {
            agentProperties: {
                spnDetails: {
                    applicationId: "string",
                    audience: "string",
                    authority: "string",
                    objectId: "string",
                    tenantId: "string",
                },
            },
            discoverySiteId: "string",
        },
    });
    
    type: azure-native:migrate:HyperVCollector
    properties:
        eTag: string
        hyperVCollectorName: string
        projectName: string
        properties:
            agentProperties:
                spnDetails:
                    applicationId: string
                    audience: string
                    authority: string
                    objectId: string
                    tenantId: string
            discoverySiteId: string
        resourceGroupName: string
    

    HyperVCollector Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The HyperVCollector resource accepts the following input properties:

    ProjectName string
    Name of the Azure Migrate project.
    ResourceGroupName string
    Name of the Azure Resource Group that project is part of.
    ETag string
    HyperVCollectorName string
    Unique name of a Hyper-V collector within a project.
    Properties Pulumi.AzureNative.Migrate.Inputs.CollectorProperties
    ProjectName string
    Name of the Azure Migrate project.
    ResourceGroupName string
    Name of the Azure Resource Group that project is part of.
    ETag string
    HyperVCollectorName string
    Unique name of a Hyper-V collector within a project.
    Properties CollectorPropertiesArgs
    projectName String
    Name of the Azure Migrate project.
    resourceGroupName String
    Name of the Azure Resource Group that project is part of.
    eTag String
    hyperVCollectorName String
    Unique name of a Hyper-V collector within a project.
    properties CollectorProperties
    projectName string
    Name of the Azure Migrate project.
    resourceGroupName string
    Name of the Azure Resource Group that project is part of.
    eTag string
    hyperVCollectorName string
    Unique name of a Hyper-V collector within a project.
    properties CollectorProperties
    project_name str
    Name of the Azure Migrate project.
    resource_group_name str
    Name of the Azure Resource Group that project is part of.
    e_tag str
    hyper_v_collector_name str
    Unique name of a Hyper-V collector within a project.
    properties CollectorPropertiesArgs
    projectName String
    Name of the Azure Migrate project.
    resourceGroupName String
    Name of the Azure Resource Group that project is part of.
    eTag String
    hyperVCollectorName String
    Unique name of a Hyper-V collector within a project.
    properties Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the HyperVCollector resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Type string
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Type string
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    type String
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    type string
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    type str
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    type String

    Supporting Types

    CollectorAgentProperties, CollectorAgentPropertiesArgs

    CollectorAgentPropertiesResponse, CollectorAgentPropertiesResponseArgs

    CollectorBodyAgentSpnProperties, CollectorBodyAgentSpnPropertiesArgs

    ApplicationId string
    Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    Audience string
    Intended audience for the service principal.
    Authority string
    AAD Authority URL which was used to request the token for the service principal.
    ObjectId string
    Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    TenantId string
    Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    ApplicationId string
    Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    Audience string
    Intended audience for the service principal.
    Authority string
    AAD Authority URL which was used to request the token for the service principal.
    ObjectId string
    Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    TenantId string
    Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    applicationId String
    Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    audience String
    Intended audience for the service principal.
    authority String
    AAD Authority URL which was used to request the token for the service principal.
    objectId String
    Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    tenantId String
    Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    applicationId string
    Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    audience string
    Intended audience for the service principal.
    authority string
    AAD Authority URL which was used to request the token for the service principal.
    objectId string
    Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    tenantId string
    Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    application_id str
    Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    audience str
    Intended audience for the service principal.
    authority str
    AAD Authority URL which was used to request the token for the service principal.
    object_id str
    Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    tenant_id str
    Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    applicationId String
    Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    audience String
    Intended audience for the service principal.
    authority String
    AAD Authority URL which was used to request the token for the service principal.
    objectId String
    Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    tenantId String
    Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

    CollectorBodyAgentSpnPropertiesResponse, CollectorBodyAgentSpnPropertiesResponseArgs

    ApplicationId string
    Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    Audience string
    Intended audience for the service principal.
    Authority string
    AAD Authority URL which was used to request the token for the service principal.
    ObjectId string
    Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    TenantId string
    Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    ApplicationId string
    Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    Audience string
    Intended audience for the service principal.
    Authority string
    AAD Authority URL which was used to request the token for the service principal.
    ObjectId string
    Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    TenantId string
    Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    applicationId String
    Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    audience String
    Intended audience for the service principal.
    authority String
    AAD Authority URL which was used to request the token for the service principal.
    objectId String
    Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    tenantId String
    Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    applicationId string
    Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    audience string
    Intended audience for the service principal.
    authority string
    AAD Authority URL which was used to request the token for the service principal.
    objectId string
    Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    tenantId string
    Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    application_id str
    Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    audience str
    Intended audience for the service principal.
    authority str
    AAD Authority URL which was used to request the token for the service principal.
    object_id str
    Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    tenant_id str
    Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    applicationId String
    Application/client Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    audience String
    Intended audience for the service principal.
    authority String
    AAD Authority URL which was used to request the token for the service principal.
    objectId String
    Object Id of the service principal with which the on-premise management/data plane components would communicate with our Azure services.
    tenantId String
    Tenant Id for the service principal with which the on-premise management/data plane components would communicate with our Azure services.

    CollectorProperties, CollectorPropertiesArgs

    AgentProperties CollectorAgentProperties
    DiscoverySiteId string
    The ARM id of the discovery service site.
    agentProperties CollectorAgentProperties
    discoverySiteId String
    The ARM id of the discovery service site.
    agentProperties CollectorAgentProperties
    discoverySiteId string
    The ARM id of the discovery service site.
    agent_properties CollectorAgentProperties
    discovery_site_id str
    The ARM id of the discovery service site.
    agentProperties Property Map
    discoverySiteId String
    The ARM id of the discovery service site.

    CollectorPropertiesResponse, CollectorPropertiesResponseArgs

    CreatedTimestamp string
    Time when this collector was created. Date-Time represented in ISO-8601 format.
    UpdatedTimestamp string
    Time when this collector was updated. Date-Time represented in ISO-8601 format.
    AgentProperties Pulumi.AzureNative.Migrate.Inputs.CollectorAgentPropertiesResponse
    DiscoverySiteId string
    The ARM id of the discovery service site.
    CreatedTimestamp string
    Time when this collector was created. Date-Time represented in ISO-8601 format.
    UpdatedTimestamp string
    Time when this collector was updated. Date-Time represented in ISO-8601 format.
    AgentProperties CollectorAgentPropertiesResponse
    DiscoverySiteId string
    The ARM id of the discovery service site.
    createdTimestamp String
    Time when this collector was created. Date-Time represented in ISO-8601 format.
    updatedTimestamp String
    Time when this collector was updated. Date-Time represented in ISO-8601 format.
    agentProperties CollectorAgentPropertiesResponse
    discoverySiteId String
    The ARM id of the discovery service site.
    createdTimestamp string
    Time when this collector was created. Date-Time represented in ISO-8601 format.
    updatedTimestamp string
    Time when this collector was updated. Date-Time represented in ISO-8601 format.
    agentProperties CollectorAgentPropertiesResponse
    discoverySiteId string
    The ARM id of the discovery service site.
    created_timestamp str
    Time when this collector was created. Date-Time represented in ISO-8601 format.
    updated_timestamp str
    Time when this collector was updated. Date-Time represented in ISO-8601 format.
    agent_properties CollectorAgentPropertiesResponse
    discovery_site_id str
    The ARM id of the discovery service site.
    createdTimestamp String
    Time when this collector was created. Date-Time represented in ISO-8601 format.
    updatedTimestamp String
    Time when this collector was updated. Date-Time represented in ISO-8601 format.
    agentProperties Property Map
    discoverySiteId String
    The ARM id of the discovery service site.

    Import

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

    $ pulumi import azure-native:migrate:HyperVCollector migrateprojectce73collector /subscriptions/8c3c936a-c09b-4de3-830b-3f5f244d72e9/resourceGroups/contosoithyperv/providers/Microsoft.Migrate/assessmentprojects/migrateprojectce73project/hypervcollectors/migrateprojectce73collector 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi