ServerCollectorsOperationArgs

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

Physical server 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

ServerCollectorsOperations_Create_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serverCollectorsOperation = new AzureNative.Migrate.ServerCollectorsOperation("serverCollectorsOperation", new()
{
AgentProperties = new AzureNative.Migrate.Inputs.CollectorAgentPropertiesBaseArgs
{
Id = "498e4965-bbb1-47c2-8613-345baff9c509",
SpnDetails = new AzureNative.Migrate.Inputs.CollectorAgentSpnPropertiesBaseArgs
{
ApplicationId = "65153d2f-9afb-44e8-b3ca-1369150b7354",
Audience = "65153d2f-9afb-44e8-b3ca-1369150b7354",
Authority = "https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47",
ObjectId = "ddde6f96-87c8-420b-9d4d-f16a5090519e",
TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47",
},
},
DiscoverySiteId = "/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/ayagrawRG/providers/Microsoft.OffAzure/ServerSites/walter7155site",
ProjectName = "app18700project",
ProvisioningState = AzureNative.Migrate.ProvisioningState.Succeeded,
ResourceGroupName = "ayagrawRG",
ServerCollectorName = "walter389fcollector",
});
});
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.NewServerCollectorsOperation(ctx, "serverCollectorsOperation", &migrate.ServerCollectorsOperationArgs{
AgentProperties: &migrate.CollectorAgentPropertiesBaseArgs{
Id: pulumi.String("498e4965-bbb1-47c2-8613-345baff9c509"),
SpnDetails: &migrate.CollectorAgentSpnPropertiesBaseArgs{
ApplicationId: pulumi.String("65153d2f-9afb-44e8-b3ca-1369150b7354"),
Audience: pulumi.String("65153d2f-9afb-44e8-b3ca-1369150b7354"),
Authority: pulumi.String("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"),
ObjectId: pulumi.String("ddde6f96-87c8-420b-9d4d-f16a5090519e"),
TenantId: pulumi.String("72f988bf-86f1-41af-91ab-2d7cd011db47"),
},
},
DiscoverySiteId: pulumi.String("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/ayagrawRG/providers/Microsoft.OffAzure/ServerSites/walter7155site"),
ProjectName: pulumi.String("app18700project"),
ProvisioningState: pulumi.String(migrate.ProvisioningStateSucceeded),
ResourceGroupName: pulumi.String("ayagrawRG"),
ServerCollectorName: pulumi.String("walter389fcollector"),
})
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.ServerCollectorsOperation;
import com.pulumi.azurenative.migrate.ServerCollectorsOperationArgs;
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 serverCollectorsOperation = new ServerCollectorsOperation("serverCollectorsOperation", ServerCollectorsOperationArgs.builder()
.agentProperties(CollectorAgentPropertiesBaseArgs.builder()
.id("498e4965-bbb1-47c2-8613-345baff9c509")
.spnDetails(CollectorAgentSpnPropertiesBaseArgs.builder()
.applicationId("65153d2f-9afb-44e8-b3ca-1369150b7354")
.audience("65153d2f-9afb-44e8-b3ca-1369150b7354")
.authority("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47")
.objectId("ddde6f96-87c8-420b-9d4d-f16a5090519e")
.tenantId("72f988bf-86f1-41af-91ab-2d7cd011db47")
.build())
.build())
.discoverySiteId("/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/ayagrawRG/providers/Microsoft.OffAzure/ServerSites/walter7155site")
.projectName("app18700project")
.provisioningState("Succeeded")
.resourceGroupName("ayagrawRG")
.serverCollectorName("walter389fcollector")
.build());
}
}

Import

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

$ pulumi import azure-native:migrate:ServerCollectorsOperation walter389fcollector /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/servercollectors/{serverCollectorName}

Constructors

Link copied to clipboard
constructor(agentProperties: Output<CollectorAgentPropertiesBaseArgs>? = null, discoverySiteId: Output<String>? = null, projectName: Output<String>? = null, provisioningState: Output<Either<String, ProvisioningState>>? = null, resourceGroupName: Output<String>? = null, serverCollectorName: 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 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.

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

Physical server collector ARM name

Functions

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