A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
figured it out thanks
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am experiencing an issue with Azure Arc on one of my Hyper-V hosts.
Previously, this host was onboarded to Azure Arc under an older subscription. However, that subscription has since been deleted, and we no longer have any connectivity or access to it.
Recently, we created a new Azure subscription and re-onboarded the same Hyper-V host to Azure Arc using Windows Admin Center. The onboarding process completed successfully, and I proceeded to add the Kubernetes extension.
However, when attempting to use the extension, I encountered the following error:
"An Arc Resource Bridge instance is already setup on this host. We recommend removing the Arc Resource Bridge before setting up Azure Kubernetes Service hybrid."
It appears that a previous Arc Resource Bridge configuration may still be present on the host, even though the original subscription is no longer accessible.
Could you please assist with the following:
Please let me know if you need any logs, screenshots, or additional details from my side
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
figured it out thanks
PS C:\Windows\system32> Get-Service | Where-Object {
$_.Name -match "arc|aks|kube|hybrid|resource"
} | Select Name, Status
Name Status
ArcProxy Running
GCArcService Running
WSearch Stopped
PS C:\Windows\system32> Get-WindowsFeature | Where-Object {
$_.Name -match "Hyper-V|Containers"
}
Display Name Name Install State
[X] Hyper-V Hyper-V Installed
[ ] Containers Containers Available
[X] Hyper-V Management Tools RSAT-Hyper-V-Tools Installed
[X] Hyper-V GUI Management Tools Hyper-V-Tools Installed
[X] Hyper-V Module for Windows PowerShell Hyper-V-PowerShell Installed
PS C:\Windows\system32> Get-HnsNetwork | Select Name, Type
Get-HnsNetwork : The term 'Get-HnsNetwork' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ CategoryInfo : ObjectNotFound: (Get-HnsNetwork:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Hi ,
i don't have anything from Azure side, the issue is from the host itself. it seems there are some elements residue. no VMs on hyperv available or something.
what shall i do ? any commands i can run to see whats remaining ?
thanks
Hello Karim, Hey Karim – it sounds like even though you deleted the old subscription, there’s still a leftover Arc Resource Bridge deployment sitting on that Hyper-V host, and that’s why the hybrid-AKS extension sees “an Arc Resource Bridge instance is already setup.” You’ll need to do a two-part cleanup: one on the Azure side, and one on the Hyper-V host itself. Here’s what you can try:
az connectedmachine extension delete \
--resource-group MyRG \
--machine-name MyHostName \
--name AzureKubernetesServiceHybrid
– Or, if you used the appliance resource model:
az arcappliance delete \
--resource-group MyRG \
--name MyBridgeName \
--yes
• Confirm there are no appliances or extensions registered for that host:
az connectedmachine list --resource-group MyRG
az arcappliance list --resource-group MyRG
Get-VMSwitch | Where-Object Name -Like "ArcBridge*" | Remove-VMSwitch -Force
c. Stop and uninstall the Connected Machine & Kubernetes agents: – Stop service:
```powershell
Stop-Service -Name AzureConnectedMachineAgent -Force
– Uninstall the agent (use Control Panel or msiexec/uninstall string):
```yaml
```powershell
msiexec /x {AzureConnectedMachineAgent-ProductCode} /qn
d. Remove any leftover folders:
```powershell
Remove-Item -Recurse -Force C:\ProgramData\AzureConnectedMachine
Remove-Item -Recurse -Force C:\ProgramData\AzureConnectedMachine\KubernetesAgent
If after those steps you still see the same error, can you share:
• The output of Get-VM and Get-VMSwitch on your Hyper-V host to confirm all bridge VMs/switches are gone
• The result of az connectedmachine list --resource-group <YourRG> and az arcappliance list --resource-group <YourRG>
• Any logs from C:\ProgramData\AzureConnectedMachine\Logs\ (or via az arcappliance logs)
That info will help pinpoint any stray configuration sticking around. Let me know!