import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Microsoft Foundry Hub (classic) Project resource. * * > **Note:** Hub‑based projects are considered legacy and are not compatible with the new Foundry experience. Microsoft recommends using the new Microsoft Foundry project resource, which should be provisioned using * `azure.cognitive.Account` and `azure.cognitive.AccountProject`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const current = azure.core.getClientConfig({}); * const example = new azure.core.ResourceGroup("example", { * name: "example", * location: "westeurope", * }); * const exampleKeyVault = new azure.keyvault.KeyVault("example", { * name: "examplekv", * location: example.location, * resourceGroupName: example.name, * tenantId: current.then(current => current.tenantId), * skuName: "standard", * purgeProtectionEnabled: true, * }); * const exampleAccessPolicy = new azure.keyvault.AccessPolicy("example", { * keyVaultId: exampleKeyVault.id, * tenantId: current.then(current => current.tenantId), * objectId: current.then(current => current.objectId), * keyPermissions: [ * "Create", * "Get", * "Delete", * "Purge", * "GetRotationPolicy", * ], * }); * const exampleAccount = new azure.storage.Account("example", { * name: "examplesa", * location: example.location, * resourceGroupName: example.name, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleAIServices = new azure.cognitive.AIServices("example", { * name: "exampleaiservices", * location: example.location, * resourceGroupName: example.name, * skuName: "S0", * }); * const exampleHub = new azure.aifoundry.Hub("example", { * name: "exampleaihub", * location: exampleAIServices.location, * resourceGroupName: example.name, * storageAccountId: exampleAccount.id, * keyVaultId: exampleKeyVault.id, * identity: { * type: "SystemAssigned", * }, * }); * const exampleProject = new azure.aifoundry.Project("example", { * name: "example", * location: exampleHub.location, * aiServicesHubId: exampleHub.id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.MachineLearningServices` - 2025-06-01 * * ## Import * * AI Foundry Projects can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:aifoundry/project:Project example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.MachineLearningServices/workspaces/project1 * ``` */ export declare class Project extends pulumi.CustomResource { /** * Get an existing Project resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ProjectState, opts?: pulumi.CustomResourceOptions): Project; /** * Returns true if the given object is an instance of Project. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Project; /** * The AI Foundry ID under which this Project should be created. Changing this forces a new AI Foundry Project to be created. */ readonly aiServicesHubId: pulumi.Output; /** * The description of this AI Foundry Project. */ readonly description: pulumi.Output; /** * The display name of this AI Foundry Project. */ readonly friendlyName: pulumi.Output; /** * Whether High Business Impact (HBI) should be enabled or not. Enabling this setting will reduce diagnostic data collected by the service. Changing this forces a new AI Foundry Project to be created. Defaults to `false`. */ readonly highBusinessImpactEnabled: pulumi.Output; /** * A `identity` block as defined below. */ readonly identity: pulumi.Output; /** * The Azure Region where the AI Foundry Project should exist. Changing this forces a new AI Foundry Project to be created. */ readonly location: pulumi.Output; /** * The name which should be used for this AI Foundry Project. Changing this forces a new AI Foundry Project to be created. */ readonly name: pulumi.Output; /** * The user assigned identity ID that represents the AI Foundry Hub identity. This must be set when enabling encryption with a user assigned identity. */ readonly primaryUserAssignedIdentity: pulumi.Output; /** * The immutable project ID associated with this AI Foundry Project. */ readonly projectId: pulumi.Output; /** * A mapping of tags which should be assigned to the AI Foundry Project. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a Project resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ProjectArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Project resources. */ export interface ProjectState { /** * The AI Foundry ID under which this Project should be created. Changing this forces a new AI Foundry Project to be created. */ aiServicesHubId?: pulumi.Input; /** * The description of this AI Foundry Project. */ description?: pulumi.Input; /** * The display name of this AI Foundry Project. */ friendlyName?: pulumi.Input; /** * Whether High Business Impact (HBI) should be enabled or not. Enabling this setting will reduce diagnostic data collected by the service. Changing this forces a new AI Foundry Project to be created. Defaults to `false`. */ highBusinessImpactEnabled?: pulumi.Input; /** * A `identity` block as defined below. */ identity?: pulumi.Input; /** * The Azure Region where the AI Foundry Project should exist. Changing this forces a new AI Foundry Project to be created. */ location?: pulumi.Input; /** * The name which should be used for this AI Foundry Project. Changing this forces a new AI Foundry Project to be created. */ name?: pulumi.Input; /** * The user assigned identity ID that represents the AI Foundry Hub identity. This must be set when enabling encryption with a user assigned identity. */ primaryUserAssignedIdentity?: pulumi.Input; /** * The immutable project ID associated with this AI Foundry Project. */ projectId?: pulumi.Input; /** * A mapping of tags which should be assigned to the AI Foundry Project. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a Project resource. */ export interface ProjectArgs { /** * The AI Foundry ID under which this Project should be created. Changing this forces a new AI Foundry Project to be created. */ aiServicesHubId: pulumi.Input; /** * The description of this AI Foundry Project. */ description?: pulumi.Input; /** * The display name of this AI Foundry Project. */ friendlyName?: pulumi.Input; /** * Whether High Business Impact (HBI) should be enabled or not. Enabling this setting will reduce diagnostic data collected by the service. Changing this forces a new AI Foundry Project to be created. Defaults to `false`. */ highBusinessImpactEnabled?: pulumi.Input; /** * A `identity` block as defined below. */ identity?: pulumi.Input; /** * The Azure Region where the AI Foundry Project should exist. Changing this forces a new AI Foundry Project to be created. */ location?: pulumi.Input; /** * The name which should be used for this AI Foundry Project. Changing this forces a new AI Foundry Project to be created. */ name?: pulumi.Input; /** * The user assigned identity ID that represents the AI Foundry Hub identity. This must be set when enabling encryption with a user assigned identity. */ primaryUserAssignedIdentity?: pulumi.Input; /** * A mapping of tags which should be assigned to the AI Foundry Project. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }