Created
December 19, 2022 20:24
-
-
Save besteban1989/60caeb1c0e083b7486c6b2aaea5d846c to your computer and use it in GitHub Desktop.
Connect to VM using Bastion AZ CLI
This file contains 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
# Connect using Azure Bastion with Native Client | |
az login | |
az account set --subscription "<your-subscription>" | |
az network bastion rdp --name "<bastion-name>" --resource-group "<bastion-rg>" --target-resource-id "<resource-id-of-vm>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment