Hi Tatiana Racheva,
Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer. They can only accept answers by others, Summarized and posted the solution that you shared, request you to Accept the answer, it will benefit the community find the answers quickly.
Scenario: InvalidResourceName
error when trying to deploy a model via the CLI to an existing resource.
Issue: The deployment command fails with an InvalidResourceName
error, despite the resource name being correct.
Things Tried: Running the command without the --deployment-name
parameter.
Solution shared by @Tatiana Racheva
Resolution: This worked: Adding the --deployment-name
parameter to the command. This parameter is required to specify the name of the deployment.