2

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

Azure DevOps Automation A couple of weeks ago the rename / rebranding of Visual Studio Team Services to Azure DevOps was announced. The rebranding is a great step forward int...
AKS (Kubernetes) and no connection could be made because the target machine acti... A client of my had an error while connecting to different resources within their Kubernetes cluster in Azure (AKS). Kubectl error On the kubectl com...
Kubernetes (AKS) attached to Azure Storage (Files) Kubernetes (AKS) can be used for many situations. For a client we needed to make files available trough a Kubernetes Pod. The files needed to be share...
Resource Group deployment via ARM templates When deploying an Azure Resource Manager (ARM) template you have to create a resource group within Azure. To deploy a template via script your script ...
Azure Managed Service Identity and Local Development Instead of storing user credentials of an external system in a configuration file, you should store them in the Azure Key Vault. Before MSI (Managed S...
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 ...

2 Comments

  1. Hey can you point me to the PowerShell commands for creating the Azure part (as opposed HCM which lives on-premises) of the hybrid connections?

    Thanks!
    Junaid.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.