Forum Discussion
svhelden
Oct 31, 2023Brass Contributor
How to get the REAL hostname with Powershell (or Graph API)
Not sure if this question belongs here. I want to retrieve a list of Azure VMs and their real host name (not the VM name). Azure portal shows this name just fine: Per documentation, I sh...
- Nov 03, 2023
svhelden
Nov 02, 2023Brass Contributor
Looks like it would work, but isn't that a bit overkill effort? Wondering where Azure portal takes the hostname from ...
samy_vanderspikken
Nov 03, 2023Brass Contributor
Hi svhelden,
Communication to VM's in the Cloud Shell only happens to the Azure VM resource itself and unfortunately not within the VM unless u use a command that invokes a script within the VM.
I hope you can go further with this info!
Communication to VM's in the Cloud Shell only happens to the Azure VM resource itself and unfortunately not within the VM unless u use a command that invokes a script within the VM.
I hope you can go further with this info!
- svheldenNov 03, 2023Brass Contributor
- samy_vanderspikkenNov 03, 2023Brass ContributorPerfect, thanks for the info!!