github-actions[bot] 097321f7d5 added files
2024-06-26 08:09:22 +08:00

26 lines
801 B
HCL

resource "azapi_resource" "hub" {
type = "Microsoft.MachineLearningServices/workspaces@2024-04-01"
name = "my-ai-hub"
location = azurerm_resource_group.default.location
parent_id = azurerm_resource_group.default.id
identity {
type = "SystemAssigned"
}
body = jsonencode({
properties = {
description = "This is my Azure AI hub"
friendlyName = "My Hub"
storageAccount = azurerm_storage_account.default.id
keyVault = azurerm_key_vault.default.id
/* Optional: To enable these field, the corresponding dependent resources need to be uncommented.
applicationInsight = azurerm_application_insights.default.id
containerRegistry = azurerm_container_registry.default.id
*/
}
kind = "hub"
})
schema_validation_enabled = false
}