-
Notifications
You must be signed in to change notification settings - Fork 337
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
azure_rm_virtualmachine enable_automatic_updates error when not specified #1332
Labels
has_pr
PR fixes have been made
medium_priority
Medium priority
question
Further information is requested
Comments
I am having the same issue with the following: Code tasks:
- name: "Gather info on VM and register into a variable"
azure.azcollection.azure_rm_virtualmachine_info:
resource_group: "{{ resource_group }}"
name: "{{ vm_name }}"
register: r_vm_info
ignore_errors: true
- name: "Apply tags to VM"
azure.azcollection.azure_rm_virtualmachine:
resource_group: "{{ resource_group }}"
name: "{{ vm_name }}"
started: "{% if r_vm_info.vms[0].power_state == 'running' %}true{% else %}false{% endif %}"
append_tags: true
tags:
StartStop: "{{ StartStop }}"
StartStop_ContactEmail: "{{ StartStop_ContactEmail }}"
StartStop_ShutdownDays: "{{ StartStop_ShutdownDays }}"
StartStop_StartupDays: "{{ StartStop_StartupDays }}"
StartStop_TimeZone: "{{ StartStop_TimeZone }}"
StartStop_ShutdownTime: "{{ StartStop_ShutdownTime }}"
StartStop_StartupTime: "{{ StartStop_StartupTime }}"
StartStop_SystemShutdown: "true" Execution result
System Info
|
@mdicerbo The 'enable_automatic_updates' attribute is not allowed to be updated. Is this attribute in your configuration different from the one you created earlier? Thank you! |
@mdicerbo I've tested this parameter locally, and whether the parameter is True or False, I can 'started', 'allocated' or add tags. Thank you! |
fixed by #1410 |
Thank you very for your support! i will test it as soon as possible.
Il Mer 17 Gen 2024, 10:03 Fred-sun ***@***.***> ha scritto:
… fixed by #1410 <#1410>
—
Reply to this email directly, view it on GitHub
<#1332 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEMAQGJTUAQA6D2BMLLT4OTYO5SULAVCNFSM6AAAAAA7I4C552VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUHE4TIMRSGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
has_pr
PR fixes have been made
medium_priority
Medium priority
question
Further information is requested
SUMMARY
when trying to change vm size of a windows vm with enableAutomaticUpdates set to false, resize fails with the following error (on Azure Portal)
Changing property 'windowsConfiguration.enableAutomaticUpdates' is not allowed.
property enable_automatic_updates is not specified on task
ISSUE TYPE
COMPONENT NAME
azure_rm_virtualmachine
ANSIBLE VERSION
ansible version 2.14.5
The text was updated successfully, but these errors were encountered: