-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_windows_virtual_machine_scale_set
/azurerm_linux_virtual_machine_scale_set
/azurerm_orchestrated_virtual_machine_scale_set
/azurerm_linux_virtual_machine
/azurerm_windows_virtual_machine
- Add support for missing fields
#17571
Conversation
azurerm_windows_virtual_machine_scale_set
/azurerm_linux_virtual_machine_scale_set
/azurerm_orchestrated_virtual_machine_scale_set
- Add support for missing fieldsazurerm_windows_virtual_machine_scale_set
/azurerm_linux_virtual_machine_scale_set
/azurerm_orchestrated_virtual_machine_scale_set
/azurerm_linux_virtual_machine
/azurerm_windows_virtual_machine
- Add support for missing fields
NOTE: This PR is now code complete and we are now just adding test coverage for all of the new fields. |
azurerm_windows_virtual_machine_scale_set
/azurerm_linux_virtual_machine_scale_set
/azurerm_orchestrated_virtual_machine_scale_set
/azurerm_linux_virtual_machine
/azurerm_windows_virtual_machine
- Add support for missing fieldsazurerm_windows_virtual_machine_scale_set
/azurerm_linux_virtual_machine_scale_set
/azurerm_orchestrated_virtual_machine_scale_set
/azurerm_linux_virtual_machine
/azurerm_windows_virtual_machine
- Add support for missing fields
* Remove `fpga_enabled` * Remove `protected_settings_from_key_vault` * Remove `hardware_profile` * Remove `hibernation_enabled` * Fix flattenVirtualMachineScaleSetGalleryApplications * Fix `gallery_applications` tests * Fix TestAccOrchestratedVirtualMachineScaleSet_otherUltraSsd * Remove orchestrated `single_placement_group` * Fix TestAccOrchestratedVirtualMachineScaleSet_publicIPSkuName * Fix setting `extension_operations_enabled` * Remove error HealthExtension in orchestrated vmss tests * fmt * Fix `host_group_id` test * Fix `rolling_upgrade_policy` tests * Make `spot_restore` `Computed` and add default test * Fix ipv6 tests * Remove `automatic_instance_repair.repair_action` * Fix `host_group_id` * Fix legacy orchestrated vmss extension * Fix `extension_operations_enabled` when `provision_vm_agent` is disbled * mark public ip `version` as `ForceNew` due to no payload in update body * Fix `TestAccWindowsVirtualMachineScaleSet_networkIPv6` * Add missing `spot_restore` get/set in windows * Add HealthExtension back with updated instance count * Fix ultra_ssd test * Fix orchestrated linuxConfig `patch_assessment_mode` update * Fix disk caching test * Fix extension disable test * patch_assessment_mode update test removal * Fix `TestAccOrchestratedVirtualMachineScaleSet_disksOSDiskCaching` * Fix `TestAccWindowsVirtualMachineScaleSet_networkIPv6` * Add `single_placement_group` back without test * Add `single_placement_group` test back with skipping message * Skipping ipv6 test before api version 2022-03-01
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks jeffery, aside from a few minor comments this looks good
@@ -90,8 +90,6 @@ resource "azurerm_linux_virtual_machine_scale_set" "example" { | |||
|
|||
## Argument Reference | |||
|
|||
The following arguments are supported: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we shouldn't be removing this?
|
||
--- | ||
|
||
* `additional_capabilities` - (Optional) A `additional_capabilities` block as defined below. | ||
|
||
* `admin_password` - (Optional) The Password which should be used for the local-administrator on this Virtual Machine. Changing this forces a new resource to be created. | ||
|
||
-> **NOTE:** When an `admin_password` is specified `disable_password_authentication` must be set to `false`. | ||
-> **NOTE:** When a `admin_password` is specified `disable_password_authentication` must be set to `false`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an is the correct article to use here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, if the first letter makes a vowel-type sound, you use "an"; if the first letter would make a consonant-type sound, you use "a." However, there are some exceptions to these rules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@@ -150,7 +148,7 @@ The following arguments are supported: | |||
|
|||
-> In general we'd recommend using SSH Keys for authentication rather than Passwords - but there's tradeoff's to each - please [see this thread for more information](https://security.stackexchange.com/questions/69407/why-is-using-an-ssh-key-more-secure-than-using-passwords). | |||
|
|||
-> **NOTE:** When an `admin_password` is specified `disable_password_authentication` must be set to `false`. | |||
-> **NOTE:** When a `admin_password` is specified `disable_password_authentication` must be set to `false`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@@ -318,7 +328,7 @@ A `diff_disk_settings` block supports the following: | |||
|
|||
--- | |||
|
|||
An `extension` block supports the following: | |||
A `extension` block supports the following: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here?
A `extension` block supports the following: | |
An `extension` block supports the following: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
* `identity` - An `identity` block as defined below. | ||
* `identity` - A `identity` block as defined below. | ||
|
||
* `unique_id` - The Unique ID for this Linux Virtual Machine Scale Set. | ||
|
||
--- | ||
|
||
An `identity` block exports the following: | ||
A `identity` block exports the following: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we please fix all these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
* `identity` - (Optional) An `identity` block as defined below. | ||
* `host_group_id` - (Optional) Specifies the ID of the dedicated host group that the virtual machine scale set resides in. Changing this forces a new resource to be created. | ||
|
||
* `identity` - (Optional) A `identity` block as defined below. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* `identity` - (Optional) A `identity` block as defined below. | |
* `identity` - (Optional) An `identity` block as defined below. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
|
||
* `public_ip_address` - (Optional) A `public_ip_address` block as defined below. | ||
|
||
* `subnet_id` - (Optional) The ID of the Subnet which this IP Configuration should be connected to. | ||
|
||
~> **NOTE:** `subnet_id` is required if version is set to `IPv4`. | ||
-> **NOTE:** `subnet_id` is required if version is set to `IPv4`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-> **NOTE:** `subnet_id` is required if version is set to `IPv4`. | |
-> **NOTE:** `subnet_id` is required if version is set to `IPv4`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
# Orchestrated VMSS allocation will timeout at service side due to extension, set instances to 0 to avoid the timeout | ||
instances = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds like a bug as it timesout not errors 0- can we open an issue on the rest specs and link it here. Then add a note to the docs and maybe add a check in code to throw an error if the user doesn't correctly do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This appears to be a known issue and has been documented as being the extensions issue.
This functionality has been released in v3.21.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Any change of implementing also #6117? It's the 4th most voted open issue. |
LinuxVM(azurerm_linux_virtual_machine) and WindowsVM(azurerm_windows_virtual_machine) also need assessment_modelinux_configuration:
windows_configuration:
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Adding coverage for the below missing fields which are currently exposed in the new version of the API:
Orchestrated VMSS:
extension:
protected_settings_from_key_vaultadditional_capabilities:
automatic_instance_repair:
repair_actionnetwork_interface:
fpga_enabledpublic_ip_address:
linux_configuration:
windows_configuration:
source_image_id:
Linux VMSS:
data_disk:
scale_in [NEW CODE BLOCK]:
additional_capabilities:
hibernation_enabledhardware_profile [
NEW CODE BLOCK]:virtual_cpus_availablevirtual_cpus_per_corerolling_upgrade_policy:
automatic_instance_repair:
repair_actionspot_restore [NEW CODE BLOCK]:
network_interface:
delete_actionfpga_enabledpublic_ip_address:
delete_actionsource_image_id:
gallery_applications [NEW CODE BLOCK]:
Deprecated:
scale_in
code blockWindows VMSS:
data_disk:
scale_in [NEW CODE BLOCK]:
additional_capabilities:
hibernation_enabledhardware_profile [
NEW CODE BLOCK]:virtual_cpus_availablevirtual_cpus_per_corerolling_upgrade_policy:
automatic_instance_repair:
repair_actionspot_restore [NEW CODE BLOCK]:
network_interface:
delete_actionfpga_enabledpublic_ip_address:
delete_actionsource_image_id:
gallery_applications [NEW CODE BLOCK]:
Deprecated:
scale_in
code blockLinux VM:
source_image_id:
Windows VM:
source_image_id:
(fixes #14820)