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
azurerm_machine_learning_workspace - Update Validation to allow Hub and Project #25728
Conversation
Adding support for new Kinds of Machine Learning Workspace. - Hub - Project As per resource documentation for AI Studio: https://learn.microsoft.com/en-us/azure/ai-studio/concepts/ai-resources
Adding documentation for new Workspace Kinds to include additional values now supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR @JonDunnDAFF.
Similar to #25729 I think these would want to be added as separate resources.
Looking at how the resources relate to one another in the portal, an AI Hub Project can be created within an AI Hub. Adding these as values to kind
means the corresponding configuration in Terraform would have an azurerm_machine_learning_workspace
referencing a parent or child azurerm_machine_learning_workspace
, which to me seems odd and has the potential to cause confusion about the relationship and hierarchy of these resources.
Although the AI Hub and Project resources are created using the same API for the AML Workspace and have similar configuration parameters, there is the possibility for these to diverge over time.
With the above in mind I think these need to be added as separate resources instead of extending the values for kind
. Is that something you would be able to look into?
Would you recommend adding these as individual resources e.g. |
@JonDunnDAFF we usually follow the brand/commercial name of the service or product, so in this case I think In case it's your first time adding new resources to the provider might I suggest looking through our contributor documentation and ensuring that the new resources added are using the Typed SDK. |
Thanks @stephybun, I will have a crack at the problem based on your solution and following the documentation as described. I will close this Pull Request and create a new one once I have a working implementation of the new resources. |
Adding support for new Kinds of Machine Learning Workspace.
As per resource documentation for AI Studio: https://learn.microsoft.com/en-us/azure/ai-studio/concepts/ai-resources
Providing template.json from Azure Portal export of resource as evidence of supported Kinds due to lack of information specified in Azure API documentation for resource.
template.json
Community Note
Description
Azure Machine Learning has been integrated into a new interface referred to as Azure AI Studio. This interface surfaces two new 'Kinds' of ML Workspace as defined in the reference documentation for AI Studio: https://learn.microsoft.com/en-us/azure/ai-studio/concepts/ai-resources
This Pull Request is to update the validation rules for the Machine Learning workspace Kind to allow these new values of Hub and Project.
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_machine_learning_workspace
- Update Validation to allow Hub and ProjectThis is a (please select all that apply):
Related Issue(s)
Fixes #24454
Note
If this PR changes meaningfully during the course of review please update the title and description as required.