Skip to content

Add PlatformDiskId to VirtualHardDisk - #400

Merged
YuanZh (YuanMSFT) merged 16 commits into
microsoft:mainfrom
YuanMSFT:user/yuanzh/1008
Oct 22, 2025
Merged

Add PlatformDiskId to VirtualHardDisk#400
YuanZh (YuanMSFT) merged 16 commits into
microsoft:mainfrom
YuanMSFT:user/yuanzh/1008

Conversation

@YuanMSFT

@YuanMSFT YuanZh (YuanMSFT) commented Oct 9, 2025

Copy link
Copy Markdown
Contributor

Add the PlatformDiskId which will be calculated from the virtual disk ID to VirtualHardDisk, which will be used by azstackhci-operator and stored in the ARM resource later as UniqueID.

This will help customers use the UniqueID to map the ARM resource to an attached disk. Customers can use the Get-Disk or Get-PhysicalDisk PowerShell cmdlets to retrieve the unique ID of the attached disk inside a Windows guest VM and use it to identify the corresponding ARM resource. For Linux VMs, customers can use lsblk to retrieve the serial number of the attached disk and use it to identify the matching ARM resource by comparing it with the unique ID value in the ARM resource.

For example, a partner building a VM migration solution without a dependency on Active Directory will need to consume this.

@YuanMSFT YuanZh (YuanMSFT) changed the title Add virtualDiskId to VirtualHardDisk Add uniqueId to VirtualHardDisk Oct 10, 2025

@blairurish Blair Urish (blairurish) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also check in the auto generated changes to the .pb.go files?

Comment thread rpc/cloudagent/storage/moc_cloudagent_virtualharddisk_test.go Outdated
@YuanMSFT

Copy link
Copy Markdown
Contributor Author

Could we also check in the auto generated changes to the .pb.go files?

Done

@YuanMSFT YuanZh (YuanMSFT) changed the title Add uniqueId to VirtualHardDisk Add PlatformDiskId to VirtualHardDisk Oct 14, 2025
Comment thread go.mod Outdated
@YuanMSFT

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@YuanMSFT

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@YuanMSFT
YuanZh (YuanMSFT) merged commit 1cb890e into microsoft:main Oct 22, 2025
7 checks passed
@YuanMSFT
YuanZh (YuanMSFT) deleted the user/yuanzh/1008 branch October 22, 2025 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants