Hi,
Did you tried the examples or this command to extract the IP address? vm
az vm list-ip-addresses -g MyResourceGroup -n MyVm
Hope this helps.
JS
==
Please Accept the answer if the information helped you. This will help us and others in the community as well.