Skip to content
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

Docs - azure disk encryption during deployment #26

Open
JeffGiroux opened this issue Feb 15, 2022 · 1 comment
Open

Docs - azure disk encryption during deployment #26

JeffGiroux opened this issue Feb 15, 2022 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@JeffGiroux
Copy link
Owner

User requires that the BIG-IP in Azure deploy with an encrypted disk at instance boot up and that this is encrypted with the customer managed key.

  1. Update README
  2. Add steps for encryption process
@JeffGiroux
Copy link
Owner Author

JeffGiroux commented Feb 15, 2022

The os_disk block has an optional encryption parameter. It requires an existing Disk Encryption Set ID. Alternatively, add code block to create a new Disk Encryption Set...but that is out of scope. Here are high level steps to encrypt a disk.

linux_virtual_machine terraform docs - https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/linux_virtual_machine#os_disk
disk_encryption_set - https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/disk_encryption_set

Steps

  1. create Azure keyvault
  2. create Azure key
  3. create Azure Disk Encryption Set and copy ID for later
  4. Locate os_disk block in bigip.tf (standalone example) https://github.com/JeffGiroux/f5_terraform/blob/main/Azure/Standalone/bigip.tf
  5. Add disk encryption parameter

current

  os_disk {
    name                 = "${var.prefix}vm01-osdisk"
    caching              = "ReadWrite"
    storage_account_type = "Standard_LRS"
  }

after

  os_disk {
    name                   = "${var.prefix}vm01-osdisk"
    caching                = "ReadWrite"
    storage_account_type   = "Standard_LRS"
    disk_encryption_set_id = "/subscriptions/xxxx/resourceGroups/myRg123/providers/Microsoft.Compute/diskEncryptionSets/myDiskEncryptSet123"

  }

@JeffGiroux JeffGiroux changed the title azure disk encryption during deployment Docs - azure disk encryption during deployment Feb 15, 2022
@JeffGiroux JeffGiroux self-assigned this Feb 15, 2022
@JeffGiroux JeffGiroux added the documentation Improvements or additions to documentation label Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant