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 snapshot create
sets --copy-start true
by default
#20182
Comments
Compute |
Hi @cavemandaveman, this could happen because the source resource location you want to use is different from the location you want to create the snapshot in. CLI will auto-detect whether to use |
Hmm. I am not specifying the location. My resource group and source disk are in the same location. The command I have been using is: This has worked flawlessly, but now that I have upgraded to CLI 2.30.0, it fails with the error I posted earlier. |
@cavemandaveman Thanks for reporting! This is a bug for using same region resource group without specifying |
Great! Glad you were able to find the root cause. Do you think we well see this fix included in the next point release of CLI? |
…r `--copy-start` (#20190) * `az snapshot create`: Fix auto-detection bug for `--copy-start` * add test
I dont understand what i need change in my powershell script, if i use az snapshot create --resource-group {{ resource_group }} --name {{ snap_name }} --source {{ source_disk }} ?? |
Yes, definitely! |
If everything is going well, then noting need to be changed. If you fail with |
Azure CLI 2.30.0 introduces a breaking change where
--copy-start
needs to be set tofalse
for subscriptions which do not support CopyStart, otherwise you get this error:Please update the documentation to include a message that
--copy-start
is set totrue
by default, even if not specified.Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: