-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Need better documentation on how Reimage works for VMss #6388
Comments
//CC: @gatneil |
It does the reimage on all VMs specified in the command; if none are specified, it does all |
Hi @gatneil. I am really trying understand how to build some basic scenarios around VMSS and am having a hard time coming up with some fundamentals, or Google is failing me on finding documentation.
A table of the three operations, along with rows like "update hw", "reset root disk", "reset disk attachments" etc, would go a long way to helping people build on top of these VMSS features. |
Hey @colemickens! Long time no see. I actually don't work in Azure anymore, but I agree that the information should get out there. For questions 1 and 2, I threw together a couple blog posts that cover the topics: Updating a scale set (including details around how POST APIs like reimage operate at the control plane): https://negatblog.wordpress.com/2018/06/05/updating-a-scale-set/ As for question 3: It depends on exact context, but I suspect "upgrade" refers to "manual upgrade" (a.k.a. "update instances"...sigh, there are too many ways to describe the same thing). When doing PUT/PATCH updates in manual upgrade mode, only the scale set model is modified; existing VMs are not. Doing a "manual upgrade" call then brings up each VM specified in the request up to date with the latest model (note: the "manual upgrade" call itself is a POST API, so it behaves as discussed in the first blog post; in particular, this means that the operation happens on all VMs specified at the same time; the upgrade policy is bypassed). "rolling-update" likely refers to the "rolling" upgrade mode. In this mode, PUT/PATCH updates are rolled out to VMs in the scale set automatically in batches. In this mode, "manual upgrade" calls are not necessary. Finally, "reimage" replaces the old, crusty OS disks of a specified set of VMs with new, shiny OS disks. (note: this is also a POST API, so it has the same behavior described above). Hope this helps! Let me know if you have follow-up questions :) |
@gatneil 👋 This is really great, I can't thank you enough. The PUT/PATCH/POST is a great resource too, especially including knowing how to know the request type from the docs. Thank you very much. I think I only have one more question that you might know, and if not, I can experiment.
Does the new OS disk come back as |
@colemickens, glad the blog posts were helpful. Let me know if you have other questions that come up. For this particular question, the new OS disk will come back as bar.vhd :) |
@rloutlaw, I don't think the information provided should get to the CLI's help file, rather we need a document which can bring in good information from the following sources:
I am closing this, as it is not actionable for CLI team |
I'm sorry to comment on this closed ticket, however, @colemickens I happened to stumble across this issue while investigating a similar question I had, and was wondering if you were ever able to arrive at a definitive answer as to whether, in your example, you would end up with @gatneil, in your blog post, you mention:
This logic does not seem to apply to the referenced image itself. Is this consistent with what you would expect? Does anyone know why there might be a discrepancy? |
I also came across this thread from Google on what "Reimaging" does, and the blog article (thanks Neil!) answered my question - reimaging does re-execute the Extension scripts on the VMs. This should be documented better on Microsoft Docs because I could not find it by searching. |
During my testing, if the scale set is configured to use the latest image by setting the image ID without specifying a version, using the reimage instance option from the portal will update the selected instances to the latest image. Example image id: |
Hi,
Need a better documentation on the reimage works.
In a VMss lets say I have 10 VMs and I want to do reimage of all the VMs. How does it work. does it do on by one with zero downtime or does it do all at once?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: