question

v-mazayt avatar image
0 Votes"
v-mazayt asked ·

Disable Auto Updates on VMs created from custom images

How can I disable auto updates on VMs created from custom images

I've tried to configure image with

 Set-ItemProperty -Path "HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"  -Name NoAutoUpdate -Value 1

But after deployment is complete, NoAutoUpdate key is set to 0

What is the right approach here?

azure-virtual-machinesazure-devtestlabsazure-dtl-base-images
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Is there any update?

Please "Accept as answer" wherever the information provided helps you to help others in the community.

0 Votes 0 · ·

1 Answer

jakaruna-MSFT avatar image
0 Votes"
jakaruna-MSFT answered ·

Can you set that VM's "enableAutomaticUpdates" to false as shown below and try again.

"osProfile.windowsConfiguration.enableAutomaticUpdates" Set this property to false Then rebbot and check for the registry key.

By default that value is set to true.

You can change that value through powershell or rest api. In powershell just get the vm though get-azvm and change that value and set with set-azvm.

Try this out and let me know

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.