-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update operation fails for AI Studio Project #564
Comments
Hi @marvinbuss , Thank you for taking time to report this issue. Would you please also share the complete config to help investigate? Thanks. |
Thanks @marvinbuss , I believe this is an upstream API issue, that the managed network is enabled by default, and in the following requests, the managed network must be specified. Please check whether below config could solve the issue: body = {
kind = "Project"
properties = {
description = "AI Studio Project - ${var.ai_studio_project_name}"
friendlyName = title(replace(var.ai_studio_project_name, "-", " "))
hubResourceId = var.ai_studio_hub_id
managedNetwork = {
status = {
status = "Active"
}
}
}
} |
Let me give this a try and report back. Thanks for your prompt response. |
I tried the following configs: Option 1: (like you suggested) resource "azapi_resource" "ai_studio_project" {
type = "Microsoft.MachineLearningServices/workspaces@2024-04-01"
name = var.ai_studio_project_name
location = var.location
parent_id = "/subscriptions/${data.azurerm_client_config.current.subscription_id}/resourceGroups/${var.resource_group_name}"
tags = var.tags
identity {
type = "SystemAssigned"
identity_ids = []
}
body = {
kind = "Project"
properties = {
description = "AI Studio Project - ${var.ai_studio_project_name}"
friendlyName = title(replace(var.ai_studio_project_name, "-", " "))
hubResourceId = var.ai_studio_hub_id
managedNetwork = {
status = {
status = "Active"
}
}
}
}
response_export_values = []
schema_validation_enabled = false # Can be reverted once this is closed: https://github.com/Azure/terraform-provider-azapi/issues/524
locks = []
ignore_casing = false
ignore_missing_property = true
} Option 2: resource "azapi_resource" "ai_studio_project" {
type = "Microsoft.MachineLearningServices/workspaces@2024-04-01"
name = var.ai_studio_project_name
location = var.location
parent_id = "/subscriptions/${data.azurerm_client_config.current.subscription_id}/resourceGroups/${var.resource_group_name}"
tags = var.tags
identity {
type = "SystemAssigned"
identity_ids = []
}
body = {
kind = "Project"
properties = {
description = "AI Studio Project - ${var.ai_studio_project_name}"
friendlyName = title(replace(var.ai_studio_project_name, "-", " "))
hubResourceId = var.ai_studio_hub_id
managedNetwork = {
status = {
status = "Active"
sparkReady = true
}
}
}
}
response_export_values = []
schema_validation_enabled = false # Can be reverted once this is closed: https://github.com/Azure/terraform-provider-azapi/issues/524
locks = []
ignore_casing = false
ignore_missing_property = true
} Option 3: resource "azapi_resource" "ai_studio_project" {
type = "Microsoft.MachineLearningServices/workspaces@2024-04-01"
name = var.ai_studio_project_name
location = var.location
parent_id = "/subscriptions/${data.azurerm_client_config.current.subscription_id}/resourceGroups/${var.resource_group_name}"
tags = var.tags
identity {
type = "SystemAssigned"
identity_ids = []
}
body = {
kind = "Project"
properties = {
description = "AI Studio Project - ${var.ai_studio_project_name}"
friendlyName = title(replace(var.ai_studio_project_name, "-", " "))
hubResourceId = var.ai_studio_hub_id
managedNetwork = {
isolationMode = "AllowOnlyApprovedOutbound"
status = {
status = "Active"
sparkReady = true
}
}
}
}
response_export_values = []
schema_validation_enabled = false # Can be reverted once this is closed: https://github.com/Azure/terraform-provider-azapi/issues/524
locks = []
ignore_casing = false
ignore_missing_property = true
} Looks like we are blocked. |
@ms-henglu and other ideas what could be wrong? |
Short update from my side:
Will follow-up once I have any updates. |
just sharing, it's happening the same to me, but using Azure Bicep... |
Thanks for sharing @aldodfm. Let me follow-up internally. |
Hi @marvinbuss - About |
For |
Today, another error message started showing up even though nothing has changed on the TF module: │ {
│ "error": {
│ "code": "ValidationError",
│ "severity": null,
│ "message": "Project workspace shouldn't have it's own Key Vault",
│ "messageFormat": null,
│ "messageParameters": null,
│ "referenceCode": null,
│ "detailsUri": null,
│ "target": null,
│ "details": [],
│ "innerError": null,
│ "debugInfo": null,
│ "additionalInfo": null
│ },
│ "correlation": {
│ "operation": "",
│ "request": ""
│ },
│ "environment": "westeurope",
│ "location": "westeurope",
│ "time": "2024-08-02T07:42:06.4382655+00:00",
│ "componentName": "account-rp",
│ "statusCode": 400
│ } Is anyone seeing the same error when updating a project? |
With the latest
v1.14.0
I am able to deploy Azure AI Studio resources (hub and project) just fine.Update operations on the project fail though. Every update causes the following validation error:
My property bag does not include any managed vnet references:
The same terraform resource definition is used for initial creation and for updates. Not sure what causes the issue.
Is anyone experiencing the same issues?
Two assumptions:
kind
property as part of the update operation.The text was updated successfully, but these errors were encountered: