Managing your Azure Hybrid Connection with PowerShell

When you have a Azure Hybrid Connection setup the wrong way, you can delete the connection trough the UI but then the Hybrid Connection Manager still knows the connection.

If you for example are moving things around and you would like to keep the connection within the UI you will have to use PowerShell to alter the connections.

All connection strings needed can be found within the Azure Portal

Adding a Connection to the Hybrid Connection Manager

Add-HybridConnection -ConnectionString [ConnectionString]

Get all configured connections

Get-HybridConnection

image

or with specific properties

Get-HybridConnection | select -Property Uri

image

Get a specific connection

Get-HybridConnection -Uri [URI]

or

Get-HybridConnection -ConnectionString [ConnectionString]

image

 

Remove a specific connection

Remove-HybridConnection -Uri [URI]

or

Remove-HybridConnection -ConnectionString [ConnectionString]

Update connection string

Update-HybridConnection -ConnectionString [ConnectionString]

 

ref: Microsoft Information

Related Posts

The securitydata Azure resource group Most of the times companies have rules in place for managing their Azure environment. The main rules that should be in place are “Azure Policies” and ...
Point to Site VPN Client won’t install To connect an Azure App Service to a on-premise database you can make use of different solutions. Two of those solutions are: Hybrid Connection ...
Invoke Azure Function in your Visual Studio Team Services CI/CD pipeline A utility task is available for Visual Studio Team Services (VSTS) to invoke an http triggered Azure function. The ability to invoke a Function from y...
VSTS Extension for Azure Role Based Access Control Today I published an extension for Visual Studio Team Services (VSTS) that gives you the ability to add and remove role based access assignments in Az...
Listing Azure Services within a CSV file In some situations you will look into a current Azure Environment and the setup/governance of it and need to migrate or move resources around. The ...
Azure Event Grid with Custom Events As of yesterday (16-8-2017) the public preview of Azure Event Grid is live. Azure Event Grid is a fully managed event routing service. Azure Event Gri...

2 comments

Leave a Reply

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