ProjectArgs

data class ProjectArgs(val accountName: Output<String>? = null, val identity: Output<IdentityArgs>? = null, val location: Output<String>? = null, val projectName: Output<String>? = null, val properties: Output<ProjectPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ProjectArgs>

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}

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, identity: Output<IdentityArgs>? = null, location: Output<String>? = null, projectName: Output<String>? = null, properties: Output<ProjectPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The name of Cognitive Services account.

Link copied to clipboard
val identity: Output<IdentityArgs>? = null

Identity for the resource.

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

The geo-location where the resource lives

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

The name of Cognitive Services account's project.

Link copied to clipboard
val properties: Output<ProjectPropertiesArgs>? = null

Properties of Cognitive Services project.

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 tags: Output<Map<String, String>>? = null

Resource tags.

Functions

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