Azure / azure-cli

Azure Command-Line Interface
MIT License
4.02k stars 2.99k forks source link

`az ml workspace create` does not create an ACR #27336

Open yavorivanov-cw opened 1 year ago

yavorivanov-cw commented 1 year ago

Describe the bug

Creating new AML workspace with az ml workspace create does not create any ACR. The ACR is created once we have a job running and the ACR is named with a random name which is the major issue for us. The command deploys an arm deployment in our resource group and there we can see that AML, Application Insights, Storage Account, Key Vault and Log Analytics workspace are successfully created. When looking at the Inputs of the deployment we can see that the containerRegistryOption is set of none.

Related command

az ml workspace create -g $(azure.resourceGroup) -n $(azureml.workspaceName) -l $(azure.location)

Errors

to much client information, nothing about acr. If really needed will try to provide some of it.

Issue script & Debug output

none

Expected behavior

Creating an ACR as described here: https://learn.microsoft.com/en-us/cli/azure/ml/workspace?view=azure-cli-latest#az-ml-workspace-create

Environment Summary

azure-cli 2.51.0 *

core 2.51.0 * telemetry 1.1.0

Extensions: ad 0.1.0 azure-devops 0.26.0 ml 2.19.1

Dependencies: msal 1.24.0b1 azure-mgmt-resource 23.1.0b2

Additional context

We use the command in DevOps pipeline.

azure-client-tools-bot-prd[bot] commented 1 year ago

Hi @yavorivanov-cw,

2.51.0 is not the latest Azure CLI(2.52.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

yonzhan commented 1 year ago

Thank you for opening this issue, we will look into it.

microsoft-github-policy-service[bot] commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github.