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
OS disk can be added to encryption set for previously created VM.
Actual Behavior
OS disks encryption settings can't be modified outside of initial VM creation. Error:
*Error: **Error updating Linux Virtual Machine "cmk-test-vm" (Resource Group "zaz-resource-group"): compute.VirtualMachinesClient#Update: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="OperationNotAllowed" Message="Managed disk encryption set resource id change for disk 'cmk-os-disk' via Virtual Machine 'cmk-test-vm' is not allowed. Please update disk resource at /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ZAZ-RESOURCE-GROUP/providers/Microsoft.Compute/disks/cmk-os-disk." Target="diskEncryptionSets"*
KeyVault and encryption set are otherwise configured correctly (verified in UI).
VM was manually deallocated before attempting enabling CMK encryption.
The text was updated successfully, but these errors were encountered:
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!
ghost
locked and limited conversation to collaborators
May 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform (and AzureRM Provider) Version
terraform v0.12.20
provider.azurerm v2.0.0
Affected Resource(s)
azurerm_linux_virtual_machine
azurerm_disk_encryption_set
Terraform Configuration Files
Expected Behavior
OS disk can be added to encryption set for previously created VM.
Actual Behavior
OS disks encryption settings can't be modified outside of initial VM creation. Error:
Steps to Reproduce
terraform plan
terraform apply
# disk_encryption_set_id = azurerm_disk_encryption_set.cmk-disk-encryption-set.id
terraform plan
terraform apply
Important Factoids
KeyVault and encryption set are otherwise configured correctly (verified in UI).
VM was manually deallocated before attempting enabling CMK encryption.
The text was updated successfully, but these errors were encountered: