Project

class Project : KotlinCustomResource

Cognitive Services project is an Azure resource representing the provisioned account's project, it's type, location and SKU. Uses Azure REST API version 2025-04-01-preview.

Example Usage

Create Project

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var project = new AzureNative.CognitiveServices.Project("project", new()
{
AccountName = "testCreate1",
Identity = new AzureNative.CognitiveServices.Inputs.IdentityArgs
{
Type = AzureNative.CognitiveServices.ResourceIdentityType.SystemAssigned,
},
Location = "West US",
ProjectName = "testProject1",
Properties = new AzureNative.CognitiveServices.Inputs.ProjectPropertiesArgs
{
Description = "Description of this project",
DisplayName = "p1",
},
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
cognitiveservices "github.com/pulumi/pulumi-azure-native-sdk/cognitiveservices/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cognitiveservices.NewProject(ctx, "project", &cognitiveservices.ProjectArgs{
AccountName: pulumi.String("testCreate1"),
Identity: &cognitiveservices.IdentityArgs{
Type: cognitiveservices.ResourceIdentityTypeSystemAssigned,
},
Location: pulumi.String("West US"),
ProjectName: pulumi.String("testProject1"),
Properties: &cognitiveservices.ProjectPropertiesArgs{
Description: pulumi.String("Description of this project"),
DisplayName: pulumi.String("p1"),
},
ResourceGroupName: pulumi.String("myResourceGroup"),
})
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.cognitiveservices.Project;
import com.pulumi.azurenative.cognitiveservices.ProjectArgs;
import com.pulumi.azurenative.cognitiveservices.inputs.IdentityArgs;
import com.pulumi.azurenative.cognitiveservices.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()
.accountName("testCreate1")
.identity(IdentityArgs.builder()
.type("SystemAssigned")
.build())
.location("West US")
.projectName("testProject1")
.properties(ProjectPropertiesArgs.builder()
.description("Description of this project")
.displayName("p1")
.build())
.resourceGroupName("myResourceGroup")
.build());
}
}

Create Project Min

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var project = new AzureNative.CognitiveServices.Project("project", new()
{
AccountName = "testCreate1",
Identity = new AzureNative.CognitiveServices.Inputs.IdentityArgs
{
Type = AzureNative.CognitiveServices.ResourceIdentityType.SystemAssigned,
},
Location = "West US",
ProjectName = "testProject1",
Properties = null,
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
cognitiveservices "github.com/pulumi/pulumi-azure-native-sdk/cognitiveservices/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cognitiveservices.NewProject(ctx, "project", &cognitiveservices.ProjectArgs{
AccountName: pulumi.String("testCreate1"),
Identity: &cognitiveservices.IdentityArgs{
Type: cognitiveservices.ResourceIdentityTypeSystemAssigned,
},
Location: pulumi.String("West US"),
ProjectName: pulumi.String("testProject1"),
Properties: &cognitiveservices.ProjectPropertiesArgs{},
ResourceGroupName: pulumi.String("myResourceGroup"),
})
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.cognitiveservices.Project;
import com.pulumi.azurenative.cognitiveservices.ProjectArgs;
import com.pulumi.azurenative.cognitiveservices.inputs.IdentityArgs;
import com.pulumi.azurenative.cognitiveservices.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()
.accountName("testCreate1")
.identity(IdentityArgs.builder()
.type("SystemAssigned")
.build())
.location("West US")
.projectName("testProject1")
.properties(ProjectPropertiesArgs.builder()
.build())
.resourceGroupName("myResourceGroup")
.build());
}
}

Import

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

$ pulumi import azure-native:cognitiveservices:Project testProject1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val etag: Output<String>

Resource Etag.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Identity for the resource.

Link copied to clipboard
val location: Output<String>?

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Properties of Cognitive Services project.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>