Skip to content

Fix CNF image copy to work cross subscription#98

Closed
sunnycarter wants to merge 1 commit intoadd-aosm-extensionfrom
sunny/fix-cnf-image-copy
Closed

Fix CNF image copy to work cross subscription#98
sunnycarter wants to merge 1 commit intoadd-aosm-extensionfrom
sunny/fix-cnf-image-copy

Conversation

@sunnycarter
Copy link
Copy Markdown
Collaborator

@sunnycarter sunnycarter commented Sep 28, 2023

CLOSING THIS PR because decided to do it a different way.

#72 introduced a bug for CNF image copy, where it only worked if the source and target ACR were in the same subscription.

https://learn.microsoft.com/en-us/azure/container-registry/container-registry-import-images?tabs=azure-cli#import-from-a-registry-in-a-different-subscription explains the syntax for az acr import cross subscription and explains that this also works in the same subscription.

This fixes that by using --registry in the command and having the image name as just repo/image:tag rather than containing the registry name as well.

Tested cross subscription with all three ways of image tranfser:

  • copy
  • docker pull and push
  • docker push from local image

@sunnycarter sunnycarter closed this Oct 2, 2023
@sunnycarter
Copy link
Copy Markdown
Collaborator Author

Decided to do this a different way that didn't change input.json and changed less code.

@sunnycarter sunnycarter mentioned this pull request Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant