Add examples for confidential VM, VMSS and OS Disk
This commit is contained in:
24
quickstart/201-confidential-os-disk/main.tf
Normal file
24
quickstart/201-confidential-os-disk/main.tf
Normal file
@ -0,0 +1,24 @@
|
||||
data "azurerm_platform_image" "example" {
|
||||
location = var.location
|
||||
publisher = "MicrosoftWindowsServer"
|
||||
offer = "windows-cvm"
|
||||
sku = "2022-datacenter-cvm"
|
||||
}
|
||||
|
||||
resource "azurerm_resource_group" "example" {
|
||||
name = "${var.name_prefix}-rg"
|
||||
location = var.location
|
||||
}
|
||||
|
||||
resource "azurerm_managed_disk" "example" {
|
||||
name = "${var.name_prefix}-disk"
|
||||
location = azurerm_resource_group.example.location
|
||||
resource_group_name = azurerm_resource_group.example.name
|
||||
storage_account_type = "Standard_LRS"
|
||||
create_option = "FromImage"
|
||||
image_reference_id = data.azurerm_platform_image.example.id
|
||||
os_type = "Windows"
|
||||
hyper_v_generation = "V2"
|
||||
|
||||
security_type = "ConfidentialVM_DiskEncryptedWithPlatformKey"
|
||||
}
|
Reference in New Issue
Block a user