import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Microsoft Foundry Hub (classic) resource. * * > **Note:** Hub‑based projects are considered legacy and are not compatible with the new Foundry experience. Microsoft recommends using the new Microsoft Foundry resource, which should be provisioned using * `azure.cognitive.Account`. * * ## 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 test = new azure.keyvault.AccessPolicy("test", { * 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", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.MachineLearningServices` - 2025-06-01 * * ## Import * * AI Foundry Hubs can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:aifoundry/hub:Hub example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.MachineLearningServices/workspaces/hub1 * ``` */ export declare class Hub extends pulumi.CustomResource { /** * Get an existing Hub 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?: HubState, opts?: pulumi.CustomResourceOptions): Hub; /** * Returns true if the given object is an instance of Hub. 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 Hub; /** * The Application Insights ID that should be used by this AI Foundry Hub. */ readonly applicationInsightsId: pulumi.Output; /** * The Container Registry ID that should be used by this AI Foundry Hub. */ readonly containerRegistryId: pulumi.Output; /** * The description of this AI Foundry Hub. */ readonly description: pulumi.Output; /** * The URL for the discovery service to identify regional endpoints for AI Foundry Hub services. */ readonly discoveryUrl: pulumi.Output; /** * An `encryption` block as defined below. Changing this forces a new AI Foundry Hub to be created. */ readonly encryption: pulumi.Output; /** * The display name of this AI Foundry Hub. */ 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 Hub to be created. Defaults to `false`. * * > **Note:** `highBusinessImpactEnabled` will be enabled by default when creating an AI Foundry Hub with `encryption` enabled. */ readonly highBusinessImpactEnabled: pulumi.Output; /** * A `identity` block as defined below. */ readonly identity: pulumi.Output; /** * The Key Vault ID that should be used by this AI Foundry Hub. Changing this forces a new AI Foundry Hub to be created. */ readonly keyVaultId: pulumi.Output; /** * The Azure Region where the AI Foundry Hub should exist. Changing this forces a new AI Foundry Hub to be created. */ readonly location: pulumi.Output; /** * A `managedNetwork` block as defined below. */ readonly managedNetwork: pulumi.Output; /** * The name which should be used for this AI Foundry Hub. Changing this forces a new AI Foundry Hub 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; /** * Whether public network access for this AI Service Hub should be enabled. Possible values include `Enabled` and `Disabled`. Defaults to `Enabled`. */ readonly publicNetworkAccess: pulumi.Output; /** * The name of the Resource Group where the AI Foundry Hub should exist. Changing this forces a new AI Foundry Hub to be created. */ readonly resourceGroupName: pulumi.Output; /** * The Storage Account ID that should be used by this AI Foundry Hub. Changing this forces a new AI Foundry Hub to be created. */ readonly storageAccountId: pulumi.Output; /** * A mapping of tags which should be assigned to the AI Foundry Hub. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The immutable ID associated with this AI Foundry Hub. */ readonly workspaceId: pulumi.Output; /** * Create a Hub 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: HubArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Hub resources. */ export interface HubState { /** * The Application Insights ID that should be used by this AI Foundry Hub. */ applicationInsightsId?: pulumi.Input; /** * The Container Registry ID that should be used by this AI Foundry Hub. */ containerRegistryId?: pulumi.Input; /** * The description of this AI Foundry Hub. */ description?: pulumi.Input; /** * The URL for the discovery service to identify regional endpoints for AI Foundry Hub services. */ discoveryUrl?: pulumi.Input; /** * An `encryption` block as defined below. Changing this forces a new AI Foundry Hub to be created. */ encryption?: pulumi.Input; /** * The display name of this AI Foundry Hub. */ 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 Hub to be created. Defaults to `false`. * * > **Note:** `highBusinessImpactEnabled` will be enabled by default when creating an AI Foundry Hub with `encryption` enabled. */ highBusinessImpactEnabled?: pulumi.Input; /** * A `identity` block as defined below. */ identity?: pulumi.Input; /** * The Key Vault ID that should be used by this AI Foundry Hub. Changing this forces a new AI Foundry Hub to be created. */ keyVaultId?: pulumi.Input; /** * The Azure Region where the AI Foundry Hub should exist. Changing this forces a new AI Foundry Hub to be created. */ location?: pulumi.Input; /** * A `managedNetwork` block as defined below. */ managedNetwork?: pulumi.Input; /** * The name which should be used for this AI Foundry Hub. Changing this forces a new AI Foundry Hub 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; /** * Whether public network access for this AI Service Hub should be enabled. Possible values include `Enabled` and `Disabled`. Defaults to `Enabled`. */ publicNetworkAccess?: pulumi.Input; /** * The name of the Resource Group where the AI Foundry Hub should exist. Changing this forces a new AI Foundry Hub to be created. */ resourceGroupName?: pulumi.Input; /** * The Storage Account ID that should be used by this AI Foundry Hub. Changing this forces a new AI Foundry Hub to be created. */ storageAccountId?: pulumi.Input; /** * A mapping of tags which should be assigned to the AI Foundry Hub. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The immutable ID associated with this AI Foundry Hub. */ workspaceId?: pulumi.Input; } /** * The set of arguments for constructing a Hub resource. */ export interface HubArgs { /** * The Application Insights ID that should be used by this AI Foundry Hub. */ applicationInsightsId?: pulumi.Input; /** * The Container Registry ID that should be used by this AI Foundry Hub. */ containerRegistryId?: pulumi.Input; /** * The description of this AI Foundry Hub. */ description?: pulumi.Input; /** * An `encryption` block as defined below. Changing this forces a new AI Foundry Hub to be created. */ encryption?: pulumi.Input; /** * The display name of this AI Foundry Hub. */ 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 Hub to be created. Defaults to `false`. * * > **Note:** `highBusinessImpactEnabled` will be enabled by default when creating an AI Foundry Hub with `encryption` enabled. */ highBusinessImpactEnabled?: pulumi.Input; /** * A `identity` block as defined below. */ identity: pulumi.Input; /** * The Key Vault ID that should be used by this AI Foundry Hub. Changing this forces a new AI Foundry Hub to be created. */ keyVaultId: pulumi.Input; /** * The Azure Region where the AI Foundry Hub should exist. Changing this forces a new AI Foundry Hub to be created. */ location?: pulumi.Input; /** * A `managedNetwork` block as defined below. */ managedNetwork?: pulumi.Input; /** * The name which should be used for this AI Foundry Hub. Changing this forces a new AI Foundry Hub 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; /** * Whether public network access for this AI Service Hub should be enabled. Possible values include `Enabled` and `Disabled`. Defaults to `Enabled`. */ publicNetworkAccess?: pulumi.Input; /** * The name of the Resource Group where the AI Foundry Hub should exist. Changing this forces a new AI Foundry Hub to be created. */ resourceGroupName: pulumi.Input; /** * The Storage Account ID that should be used by this AI Foundry Hub. Changing this forces a new AI Foundry Hub to be created. */ storageAccountId: pulumi.Input; /** * A mapping of tags which should be assigned to the AI Foundry Hub. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }