Azure / Azure/azure-cli-extensions

AZ Copy Image - Cannot Find Target Subscription

Open
#4,797 2 comments 0 reactions 2 assignees Claimed by @cxznmhdcxz View on GitHub
Auto-Assign Compute customer-reported feature-request
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)

### Related command
az image copy --source-resource-group rg-xxxxx --source-object-name vmxxxxxx
![output](https://user-images.githubusercontent.com/41348859/167742473-2c119984-9889-4d16-917a-e28bba164314.PNG)
-image --target-location usxxxxxx--target-subscription "3abbd37a-xxxx-xxxx-xxxxxxxxxx" --target-resource-group "rg-xxxxx" --cleanup --verbose

### Extension name (the extension in question)
az copy image

### Description of issue (in as much detail as possible)

*I am not providing the exact subscription details for privacy reasons*

"I am trying to run this extension but continue to get a output: WARNING: Subscription '3abbd37a-xxx-xxx-xxxxxxxx' not recognized.
ERROR: Subscription '3abbd37a-xxxx-xxxx-xxxxxx' not found. Check the spelling and casing and try again."

The user running the command is a contributor at the subscription level on both the source and target. What is the problem?
-----

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.