Conversation
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
…o Add-AzVMDataDisk for confidential VM data disk encryption Co-authored-by: haagha <64601174+haagha@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Powershell support for confidential data disk encryption
Add SecurityEncryptionType and SecureVMDiskEncryptionSet to Add-AzVMDataDisk for Confidential VM data disk encryption
Mar 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Confidential VMs (CVMs) already support confidential encryption for OS disks, but data disks lacked equivalent support — leaving data disk contents accessible outside the trusted execution environment. This PR closes that gap by enabling Confidential Disk Encryption (CDDE) for data disks via
Add-AzVMDataDisk.Changes
AddAzureVMDataDiskCommand.cs-SecurityEncryptionType(values:DiskWithVMGuestState,VMGuestStateOnly,NonPersistedTPM) scoped toVmManagedDiskParameterSet-SecureVMDiskEncryptionSet(ARM resource ID of a DES withConfidentialVmEncryptedWithCustomerKeyencryption type) scoped toVmManagedDiskParameterSetManagedDisk.SecurityProfilewhen either parameter is bound, consistent with howSet-AzVMOSDiskhandles the same properties for OS disksHelp / Docs
Add-AzVMDataDisk.mdsyntax block, added parameter entries, and new Example 6 demonstrating CVM data disk creationTests
Test-AddAzVMDataDiskWithSecurityEncryptionPS function covering:SecurityEncryptionType-only, and combinedSecurityEncryptionType+SecureVMDiskEncryptionSetscenarios[Fact]inVirtualMachineProfileTests.csExample
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
1n8vsblobprodwus2184.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)40vvsblobprodwus2135.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)6yfvsblobprodwus2121.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)7q7vsblobprodwus2144.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)84hvsblobprodwus2148.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)8wdvsblobprodwus2137.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)b53vsblobprodwus2154.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)ba0vsblobprodwus2130.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)balvsblobprodwus2129.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)cffvsblobprodwus218.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)d94vsblobprodwus2119.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)ezcvsblobprodwus2170.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)faxvsblobprodwus2122.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)g3xvsblobprodwus2151.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)i01vsblobprodwus216.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)jhgvsblobprodwus2167.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)k4pvsblobprodwus2140.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)ldhvsblobprodwus2153.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)mt2vsblobprodwus2110.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)nudvsblobprodwus214.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)p2tvsblobprodwus2189.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)tn2vsblobprodwus2124.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)wlnvsblobprodwus2188.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)y5lvsblobprodwus2179.vsblob.vsassets.io/usr/bin/dotnet dotnet build src/Compute/Compute/Compute.csproj(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.