An Azure service that is used to provision Windows and Linux virtual machines.
Hi @sns ,
Thanks for contacting Microsoft Q&A platform.
System variables typically affect the entire operating system and all users. If you've modified a system variable, those changes should be captured when you create a new image from the VM. When you create a new VM from the custom image, it should inherit the state of the original VM at the time of capture, including the modifications made to system variables.
Environment variables are often specific to a user session or a particular process. If you have modified environment variables, they might not be captured at the system level in the same way as system variables.
Hope this helps.