-
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
[linux|windows]_virtual_machine - Allow update of OS disk encryption settings #6230
Conversation
1f3c80a
to
0209f06
Compare
Updated tests to match changes in 3765f32 |
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.
LGTM - thanks for this @kazimierzbudzyk
@kazimierzbudzyk I've tested this in several Azure Regions but this doesn't appear to be possible at this point in time:
I know this functionality is coming at some point (a few months post GA was the last update I found), but do you happen to know which Azure Region this functionality is supported in? Thanks! |
@tombuildsstuff I don't have a full list, but tested it successfully in |
Tested in |
Looks like it's actually an API issue - I managed to reproduce in
But if I use the disk API (
|
Looks like I was missing changes to read logic, fixed in 09a21c4. |
@tombuildsstuff What do you think about handling the issue by wrapping |
@kazimierzbudzyk @tombuildsstuff I am the Azure PM for the feature. The feature is already available in all the public and Azure Government regions in GA. It will be available in rest of the Sovereign regions soon. Please see the documentation for the supported regions. https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disk-encryption#supported-regions |
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.
Hi @kazimierzbudzyk,
Thanks for the fixes, however it looks like the tests aren't passing:
Test Failed
------- Stdout: -------
=== RUN TestAccLinuxVirtualMachine_diskOSDiskEncryptionSetUpdate
=== PAUSE TestAccLinuxVirtualMachine_diskOSDiskEncryptionSetUpdate
=== CONT TestAccLinuxVirtualMachine_diskOSDiskEncryptionSetUpdate
--- FAIL: TestAccLinuxVirtualMachine_diskOSDiskEncryptionSetUpdate (283.09s)
testing.go:640: Step 0 error: errors during apply:
Error: Error validating Key Vault "acctestkv8xqyg" (Resource Group "acctestrg-200407214337778564") for Disk Encryption Set: Soft Delete must be enabled but it isn't!
on /opt/teamcity-agent/temp/buildTmp/tf-test525312821/main.tf line 90:
(source code not available)
I hope you don't mind but i'm going to update the test configs so they pass 🙂
Could we get this in 2.5.0 if possible. This is blocking us from picking up CMKs. |
This has been released in version 2.5.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.5.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Fixes: #6183
Inspired by how os_disk resizes have to be handled: https://github.com/kazimierzbudzyk/terraform-provider-azurerm/blob/master/azurerm/internal/services/compute/linux_virtual_machine_resource.go#L835