If you ever used the web based client for Azure Bastion service, you would have realized that you can't really limited on what you can do and is not the same as RDP (mstsc). There is a way to connect natively to Azure Bastion service if you used the Standard SKU. The official documentation is at https://learn.microsoft.com/en-us/azure/bastion/native-client#connect-windows. The PowerShell script that will come handy is below.
az login
az account set --subscription "<<your subscription id>>"
#Launch RDP
az network bastion rdp --name "<<name of your bastion resource>>" --resource-group "<<resource group name>>" --target-resource-id "/subscriptions/<<subscription id>>/resourceGroups/<<resource group name>>/providers/Microsoft.Compute/virtualMachines/<<Virtual machine name>>"
No comments:
Post a Comment
We welcome your comments.