@Neil McAlister Thanks for the feedback. We have created a backlog item to update the document for online deployment.
azure cli ml commands should be idempotent
![](https://techprofile.blob.core.windows.net/images/0c3d8b697580457db18eb590363af435.png)
Neil McAlister
266
Reputation points
Commands run from the Azure CLI ML extension should really be idempotent where required.
For example this command when run twice...
az ml online-endpoint create -n my-endpoint -f .\my-endpoint.yml --resource-group my-rg --workspace-name my-aml
...second time of asking...
(UserError) An endpoint with this name already exists. If you are trying to create a new endpoint, use a
different name. If you are trying to update an existing endpoint, use `az ml online-endpoint update` instead.
Creating CI/CD pipelines for this is hard - constantly writing scaffolding scripts around enumerating though what already exists and working around the issue it isn't really the done thing now. Please consider changing some of these ML cmdlets with this in mind please - Thanks