Server Collector Args
data class ServerCollectorArgs(val eTag: Output<String>? = null, val projectName: Output<String>? = null, val properties: Output<CollectorPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val serverCollectorName: Output<String>? = null) : ConvertibleToJava<ServerCollectorArgs>
API Version: 2019-10-01.
Example Usage
ServerCollectors_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serverCollector = new AzureNative.Migrate.ServerCollector("serverCollector", new()
{
ETag = "\"00000606-0000-0d00-0000-605999bf0000\"",
ProjectName = "app11141project",
Properties = new AzureNative.Migrate.Inputs.CollectorPropertiesArgs
{
AgentProperties = new AzureNative.Migrate.Inputs.CollectorAgentPropertiesArgs
{
SpnDetails = new AzureNative.Migrate.Inputs.CollectorBodyAgentSpnPropertiesArgs
{
ApplicationId = "ad9f701a-cc08-4421-b51f-b5762d58e9ba",
Audience = "https://72f988bf-86f1-41af-91ab-2d7cd011db47/app23df4authandaccessaadapp",
Authority = "https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47",
ObjectId = "b4975e42-9248-4a36-b99f-37eca377ea00",
TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47",
},
},
DiscoverySiteId = "/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/pajindTest/providers/Microsoft.OffAzure/ServerSites/app21141site",
},
ResourceGroupName = "pajindtest",
ServerCollectorName = "app23df4collector",
});
});
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.migrate.ServerCollector;
import com.pulumi.azurenative.migrate.ServerCollectorArgs;
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 serverCollector = new ServerCollector("serverCollector", ServerCollectorArgs.builder()
.eTag("\"00000606-0000-0d00-0000-605999bf0000\"")
.projectName("app11141project")
.properties(Map.ofEntries(
Map.entry("agentProperties", Map.of("spnDetails", Map.ofEntries(
Map.entry("applicationId", "ad9f701a-cc08-4421-b51f-b5762d58e9ba"),
Map.entry("audience", "https://72f988bf-86f1-41af-91ab-2d7cd011db47/app23df4authandaccessaadapp"),
Map.entry("authority", "https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"),
Map.entry("objectId", "b4975e42-9248-4a36-b99f-37eca377ea00"),
Map.entry("tenantId", "72f988bf-86f1-41af-91ab-2d7cd011db47")
))),
Map.entry("discoverySiteId", "/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/pajindTest/providers/Microsoft.OffAzure/ServerSites/app21141site")
))
.resourceGroupName("pajindtest")
.serverCollectorName("app23df4collector")
.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:migrate:ServerCollector app23df4collector /subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/pajindtest/providers/Microsoft.Migrate/assessmentprojects/app11141project/servercollectors/app23df4collector
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(eTag: Output<String>? = null, projectName: Output<String>? = null, properties: Output<CollectorPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, serverCollectorName: Output<String>? = null)