-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Set-AzVMOperatingSystem won't work for existing VMs #16711
Comments
Thanks for reporting. We believe this inconsistency should be resolve by service side. I reply team member to look into it further. |
@KMoraz Thanks for your feedback. You are correct, and the cmdlet |
@KMoraz I have got the confirmation and this command is intended to be used on local VM objects to update OS properties before VM creation. This is by design and we cannot modify OS properties after the creation of the VM using this command. |
@SaurabhSharma-MSFT I assumed that was the case, which is why I indicated that it was probably a documentation error. Subtitle should be: Sets operating system properties during creation of a new virtual machine. |
@KMoraz Thanks for your suggestions. I have submitted PR to update the documentation and it will be merged once approved by the reviewers. |
Description
This might be a documentation error, as official docs doesn't explicitly specify that
Set-AzVMOperatingSystem
cmdlet intended for new VMs and won't work for existing ones. The examples also target new VMs.Issue script & Debug output
Environment data
Module versions
Error output
No response
The text was updated successfully, but these errors were encountered: