Azure / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
380 stars 1.19k forks source link

az image copy failed when copying the image from same resource group in different region #2939

Open infa-sapatil opened 3 years ago

infa-sapatil commented 3 years ago

This is autogenerated. Please review and update as needed.

Describe the bug

az image copy failed when copying the image from same resource group in different region

Can we copy the image to same resource group in different region? Command Name az image copy Extension Name: image-copy-extension. Version: 0.2.8.

Errors:

Command '['/usr/local/Cellar/azure-cli/2.0.81/libexec/bin/python', '-m', 'azure.cli', 'group', 'exists', '-n', 'image-copy-rg', '--output', 'tsv']' returned non-zero exit status 1.
Traceback (most recent call last):
python3.8/site-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 608, in execute
    raise ex
...
3.8/lib/python3.8/subprocess.py, ln 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/local/Cellar/azure-cli/2.0.81/libexec/bin/python', '-m', 'azure.cli', 'group', 'exists', '-n', 'image-copy-rg', '--output', 'tsv']' returned non-zero exit status 1.

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Expected Behavior

Environment Summary

macOS-10.15.7-x86_64-i386-64bit
Python 3.8.1
Shell: bash

azure-cli 2.0.81

Extensions:
image-copy-extension 0.2.8

Additional Context

yungezz commented 3 years ago

hi @qwordy could you pls help to have a look? thanks

qwordy commented 3 years ago

Hi @infa-sapatil, thank you for reporting this issue. We will open an investigation into it. You can also try https://docs.microsoft.com/en-us/azure/virtual-machines/shared-image-galleries.