Data Science & Analytics

Foresight from Insight

So, you are trying to connect to your VM in Azure to quickly update a setting or restart the webserver and you are stuck as currently you only have portal access. You tried to connect to VM via Bastion and see the error that it’s in failed state.

There is a quick way to resolve the issue by using following command over Cloud Shell.

$bastion = Get-AzBastion -Name “Name of the Bastion” -ResourceGroupName “Name of the RG

Set-AzBastion -InputObject $bastion

Leave a Reply

Your email address will not be published. Required fields are marked *