Ever got this error while trying to do something in Powershell? I got a few ones this week, especially when dealing with Azure ARM cmdlets that basically stacks other cmdlets.
In addition to creating a site to site connection in Azure, you can also use the same gateway to configure a Point-to-site connection. Point-to-site configuration allows a secure connection from a client computer, individually, to the virtual network in Azure. It’s a very good solution when you need to work remotely or when you need to give temporary access to a customer to connect to a virtual network.
Just a quick tip for today. If you need to reset the administrative credentials of your Virtual Machine running ARM (IaaS v2), use one of the two solutions below:
Using Powershell cmdlets:
Download from: http://aka.ms/webpi-azps
PS C:\> Login-AzureRmAccount PS C:\> Set-AzureRmVMAccessExtension -ResourceGroupName RESOURCE_GROUP_NAME -Name HOSTNAME -VMName VM_NAME -UserName USER -Password PASSWORD
Using the CLI:
> azure login > azure config mode arm > azure vm reset-access -g RESORCE_GROUP_NAME -n VM_NAME -u USER -p PASSWORD
That’s it! You should be able to login to your VM now.