Azure / Azure/azure-cli-extensions

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

Open
#2,939 2 comments 0 reactions 1 assignee Claimed by @qwordy View on GitHub
extension/image-copy OKR3.2 Candidate question
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### **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.

- _Put any pre-requisite steps here..._
- `az image copy --source-resource-group {} --source-object-name {} --target-location {} --target-resource-group {} --cleanup`

## 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.