You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
maintenance_configuration={
mc_sch = {
name ="maintenance-configuration"
region ="Southeast Asia"
resource_group = main-rg
scope ="InGuestPatch"
in_guest_user_patch_mode ="User"
window = {
start_date_time ="2024-05-12 00:00"// Adjust this date to a Saturday
duration ="02:00"
time_zone ="Romance Standard Time"
recur_every ="1Week"
}
install_patches = {
linux = {
classifications_to_include = ["Critical", "Security"]
}
reboot ="IfRequired"
}
}
}
maintenance_assignment_virtual_machine={
sch_mc = {
region ="Southeast Asia"
maintenance_configuration_key ="mc_sch"
virtual_machine = {
key ="main-vm2"
}
}
}
Expected Behaviour
The provided example does not work
Actual Behaviour
Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "maintenance_assignment_virtual_machine" but a value was found in file
│ "C:\Users\configuration.tfvars". If you meant to use this value, add a "variable" block to the
│ configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide certain "global" settings to all configurations in your organization. To reduce the verbosity of
│ these warnings, use the -compact-warnings option.
╵
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "maintenance_configuration" but a value was found in file
│ "C:\Users\configuration.tfvars". If you meant to use this value, add a "variable" block to the
│ configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide certain "global" settings to all configurations in your organization. To reduce the verbosity of
│ these warnings, use the -compact-warnings option.
Steps to Reproduce
No response
Important Factoids
na
References
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Community Note
Version of the module you are using
5.7.7
Rover Version
na
Terraform Version
v1.7.4 on windows_amd6
AzureRM Provider Version
3.75.0
Affected Resource(s)/Data Source(s)
maintenance_configuration , maintenance_assignment_virtual_machine
Terraform Configuration Files
Expected Behaviour
The provided example does not work
Actual Behaviour
Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "maintenance_assignment_virtual_machine" but a value was found in file
│ "C:\Users\configuration.tfvars". If you meant to use this value, add a "variable" block to the
│ configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide certain "global" settings to all configurations in your organization. To reduce the verbosity of
│ these warnings, use the -compact-warnings option.
╵
╷
│ Warning: Value for undeclared variable
│
│ The root module does not declare a variable named "maintenance_configuration" but a value was found in file
│ "C:\Users\configuration.tfvars". If you meant to use this value, add a "variable" block to the
│ configuration.
│
│ To silence these warnings, use TF_VAR_... environment variables to provide certain "global" settings to all configurations in your organization. To reduce the verbosity of
│ these warnings, use the -compact-warnings option.
Steps to Reproduce
No response
Important Factoids
na
References
No response
The text was updated successfully, but these errors were encountered: