-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tutorial-custom-images.md and change --managed-image
to --virtual-machine
parameter.
#49
base: main
Are you sure you want to change the base?
Conversation
--managed-image need to get replaced with --virtual-machine as it takes a Virtual Machine ID given in the steps above while --managed-image requires a manged image resource ID. Using managed-image parameter here will throw an error: The gallery image version source id: '/subscriptions/0000-0000-0000-0000/resourceGroups/myGalleryRG/providers/Microsoft.Compute/virtualMachines/myVM' must be specified in 'galleryImageVersion.properties.storageProfile.source.virtualMachineId'. Target: galleryImageVersion.properties.storageProfile.source
@Dxaz : Thanks for your contribution! The author(s) have been notified to review your proposed change. |
Learn Build status updates of commit ffd73c8: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
@mattmcinnes Important: When the changes are ready for publication, adding a #label:"aq-pr-triaged" |
--managed-image
to --virtual-machine
parameter.
Updating steps for accessing live logs and customization log
This pull request has been inactive for at least 14 days. If you are finished with your changes, don't forget to sign off. See the contributor guide for instructions. |
#sign-off |
Invalid command: '#sign-off'. Only the assigned author of one or more file in this PR can sign off. @mattmcinnes |
@mattmcinnes - nudge. this has been waiting a while... can you take a look ? thanks. |
Hey @mattmcinnes can I get you take a quick look, it'll take 10 minutes of time to look and test to verify the change. |
--managed-image need to get replaced with --virtual-machine as it takes a Virtual Machine ID given in the steps above while --managed-image requires a manged image resource ID.
Using managed-image parameter here will throw an error:
The gallery image version source id: '/subscriptions/0000-0000-0000-0000/resourceGroups/myGalleryRG/providers/Microsoft.Compute/virtualMachines/myVM' must be specified in 'galleryImageVersion.properties.storageProfile.source.virtualMachineId'.
Target: galleryImageVersion.properties.storageProfile.source
az sig image-version create states this in the documentation:
https://learn.microsoft.com/en-us/cli/azure/sig/image-version?view=azure-cli-latest#az-sig-image-version-create-optional-parameters
As well as the examples:
Add a new image version with encryption using a disk encryption set. Encryption is applied to each disk that is a part of the image version.
Azure CLI
Copy
Open Cloud Shell
az sig image-version create --resource-group MyResourceGroup
--gallery-name MyGallery --gallery-image-definition MyImage
--gallery-image-version 1.0.0
--virtual-machine /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/virtualMachines/MyVM
--target-regions westus=2=standard eastus
--target-region-encryption WestUSDiskEncryptionSet1,0,WestUSDiskEncryptionSet2
EastUSDiskEncryptionSet1,0,EastUSDiskEncryptionSet2