Project
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Properties
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
Identity for the resource.
Link copied to clipboard
Properties of Cognitive Services project.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Metadata pertaining to creation and last modification of the resource.