Project
Azure Migrate Project. 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
Projects_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var project = new AzureNative.Migrate.Project("project", new()
{
ETag = "",
Location = "West Europe",
ProjectName = "abGoyalProject2",
Properties = new AzureNative.Migrate.Inputs.ProjectPropertiesArgs
{
AssessmentSolutionId = "/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.migrate/migrateprojects/abgoyalweselfhost/Solutions/Servers-Assessment-ServerAssessment",
ProjectStatus = AzureNative.Migrate.ProjectStatus.Active,
},
ResourceGroupName = "abgoyal-westEurope",
Tags = null,
});
});
Content copied to clipboard
package main
import (
migrate "github.com/pulumi/pulumi-azure-native-sdk/migrate/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := migrate.NewProject(ctx, "project", &migrate.ProjectArgs{
ETag: pulumi.String(""),
Location: pulumi.String("West Europe"),
ProjectName: pulumi.String("abGoyalProject2"),
Properties: &migrate.ProjectPropertiesArgs{
AssessmentSolutionId: pulumi.String("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.migrate/migrateprojects/abgoyalweselfhost/Solutions/Servers-Assessment-ServerAssessment"),
ProjectStatus: pulumi.String(migrate.ProjectStatusActive),
},
ResourceGroupName: pulumi.String("abgoyal-westEurope"),
Tags: pulumi.Any(map[string]interface{}{}),
})
if err != nil {
return err
}
return nil
})
}
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.Project;
import com.pulumi.azurenative.migrate.ProjectArgs;
import com.pulumi.azurenative.migrate.inputs.ProjectPropertiesArgs;
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 project = new Project("project", ProjectArgs.builder()
.eTag("")
.location("West Europe")
.projectName("abGoyalProject2")
.properties(ProjectPropertiesArgs.builder()
.assessmentSolutionId("/subscriptions/6393a73f-8d55-47ef-b6dd-179b3e0c7910/resourcegroups/abgoyal-westeurope/providers/microsoft.migrate/migrateprojects/abgoyalweselfhost/Solutions/Servers-Assessment-ServerAssessment")
.projectStatus("Active")
.build())
.resourceGroupName("abgoyal-westEurope")
.tags(Map.ofEntries(
))
.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:Project abGoyalProject2 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}
Content copied to clipboard