azure-cli-extensions icon indicating copy to clipboard operation
azure-cli-extensions copied to clipboard

AZ Copy Image - Cannot Find Target Subscription

Open sbwashburne opened this issue 2 years ago • 2 comments

  • If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at Azure/azure-cli

Related command

az image copy --source-resource-group rg-xxxxx --source-object-name vmxxxxxx output -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?

sbwashburne avatar May 10 '22 23:05 sbwashburne

Compute

yonzhan avatar May 10 '22 23:05 yonzhan

Hi @sbwashburne , would it reproduce? Could you share debug log by adding --debug to the command?

cxznmhdcxz avatar May 13 '22 01:05 cxznmhdcxz