Azure Machine Learning - Python SDK - Create Workspace with existing resources

JIren 1 Reputation point
2022-08-20T16:52:22.31+00:00

This article shows you how to create a workspace with the Python SDK
https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-workspace?tabs=python#create-a-workspace

For some reason the existing resources are added to the ServicePrincipalAuthentication, but I think this is a mistake and should be added to the Workspace.Create function.
But when I try to add the existing Azure resource IDs to the Create function I get a non descriptive error. Can someone show a working example of how to create a workspace (including a new resource group) programmatically with existing resources (in another resource group), like a Key Vault, Azure Container Registry and Storage Account?

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,728 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,731 Reputation points
    2022-08-22T17:50:51.913+00:00

    @JIren Thanks for the question. it's a duplicate of the following github question for creating workspace..
    https://github.com/MicrosoftDocs/azure-docs/issues/97360

    0 comments No comments