-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
"az ml workspace create" fails to create Application Insights and Container Registry #28980
Comments
Thank you for opening this issue, we will look into it. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github. |
There is something fishy here guys, I am experiencing this issue as well, just as @Rubikalubi is. Previously it would create any resource automatically if it isn't specified. However, what we ended up trying to do is modify our creation script to first create an application insights resource (we already have a container registry, storage account, and key vault so it's not included in the creation script below) and then associate it using the following script: acr_arm_id=$(az acr show --name ***** --query id -o tsv)
insights_arm_id=$(az monitor app-insights component show --app ***** -g ***** --query "id" -o tsv)
az ml workspace create --resource-group **** --name ****** --storage-account **** --key-vault ****** --container-registry "$acr_arm_id" -a "$insights_arm_id" Considering the docs here I would expect this to work, however we are greeted with this
Looking at the AppInsights ID that is returned from the command directly we see it is compliant, or at least appears to be so given the above docs:
The name in this case is compliant with this doc so that shouldn't be an issue. Version info
|
+1 to @xec-abailey 's write up; I am experiencing a very similar issue. |
I am facing the same issue. I tried to create a managed online feature store from the SDK using the tutorial. I tried a lot of different things and checked the template and different deployments. The issue seems to have happened recently because a colleague could run the script without problem but now we do not manage to create it |
This breaking change / bug was definitely introduced in the version release of the Azure ML Extension when upgraded from 2.25 to 2.26. Downgrading and locking to ml v2.25 resolved the undesirable behavior in our application. |
We have the same issue. I noticed that the ARM template resulting from the az cli command has the following issue, namely that containerregistry variable is used for applicationinsights: |
Thanks for reporting the issue and providing the details. I am raising a PR to mitigate the issue. |
I a, experiencing the same issue as of today, |
Hoping to get it resolve soon. |
facing the same iossue htere |
When I try this solution I get the following messages: |
Thank you for reporting this issue. It seems indeed related to the Cloud Shell and not to the .setup.sh. We're investigating the issue to explore any fixes/workaround and will update when we have something. For now, manual creation of resources seems the only fix as the ML extension can't be updated/downgraded in Cloud Shell. |
ml extension 2.26.1 is released with the fix. |
Hello @achauhan-scc, I'm getting the following error when running "az extension update --name ml" in Cloud Shell:
And when trying "az extension update --name ml --allow-preview true" I get:
I'm stuck on 2.26.0:
|
Describe the bug
When trying to create a new ml workspace, our deployment pipeline on devops fails because the workspace create command only creates the Storage Account and Keyvault. Then it tries to create the workspace, which obviously fails, since no Container Registry and Application Insights exists. We always update the CLI and ml extension to the latest version in our pipeline before executing any commands. I ran the same Code with ml extension 2.24.0 two months ago and it worked without an issue.
Also running on my own machine with ml extension 2.22.0 the behaviour is as expected.
Related command
az ml workspace create
Errors
The deployment request ml*** was accepted. ARM deployment URI for reference:
URL REMOVED
Creating Storage Account: (ml***** ) ... Done (21s)
Creating Key Vault: (ml***** ) Done (18s)
ERROR: Code: ValidationError
Message: Missing dependent resources in workspace json
Target: workspace
Exception Details: (Invalid) Missing dependent resources in workspace json
Code: Invalid
Message: Missing dependent resources in workspace json
Target: workspace
##[error]Script failed with exit code: 1
/usr/bin/az account clear
This is the deployment on Azure Portal.
Issue script & Debug output
az ml workspace create --resource-group "${{ parameters.resourceGroup }}" --file $(Build.SourcesDirectory)/workspace/workspace.json
Contents of workspace.json
{
"$schema": "https://azuremlschemas.azureedge.net/latest/workspace.schema.json",
"name": "ml***",
"display_name": "ml***",
"description": "created workspace ml*** in resource groupe Res_Grp_*** on 2024-05-16T09:44:05",
"tags": {
"createdOn": "2024-05-16T09:44:05",
"createdBy": ""
},
"location": "westeurope",
"resource_group": "Res_Grp_",
"hbi_workspace": false,
}
I did not run the script with --debug because i would have to delete the ressources manually afterwards. If desired, please let me know.
Expected behavior
The command create all required ressources for a ml workspace (storage account, keyvault, container registry, appinsights) and then creates the workspace.
Environment Summary
/usr/bin/az --version
azure-cli 2.60.0
core 2.60.0
telemetry 1.1.0
Extensions:
azure-devops 1.0.0
ml 2.26.0
Dependencies:
msal 1.28.0
azure-mgmt-resource 23.1.0b2
Additional context
No response
The text was updated successfully, but these errors were encountered: