Azure Sphere will not uninstall nor upgrade

Roger Mahler 226 Reputation points
2021-01-08T15:00:16.21+00:00

Platform: Windows 10

AzureSDK: 20.7.0.18252

The only real answer i have found is to delete all AzureDSK entries from Registry and Delete the directory for Azure SDK - Is that still the accepted method when AzureSDK does to work nor unstill/update to a new version?

Are there any recommendations - Thank you.

Event Viewer output:

Log Name:      Azure Sphere Device Communication Service
Source:        AzureSphereDeviceCommunicationServiceVerbose
Date:          1/8/2021 9:43:48 AM
Event ID:      0
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      DESKTOP-KG3IUSC
Description:
Azure Sphere Device Communication Service
Unexpected exception thrown whilst starting service.

SerialSlipToTun.TunInterfaceSetupException: Cannot find network adaptor with name 'Azure Sphere'. ---> System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at SerialSlipToTun.TunInterfaceWrapper.FindTunTapDeviceId()
   at SerialSlipToTun.TunInterfaceWrapper.SetupTunConnection(TapInterfaceMode mode)
   --- End of inner exception stack trace ---
   at SerialSlipToTun.TunInterfaceWrapper.SetupTunConnection(TapInterfaceMode mode)
   at SerialSlipToTun.TunInterfaceWrapper..ctor(TapInterfaceMode mode)
   at SerialSlipToTun.TapPacketDevice..ctor()
   at SerialSlipToTun.DeviceConnectionAgent..ctor(ILogger logger, ITapPacketDevice tapPacketDevice, IPAddress hostIpAddress, IPAddress privateDeviceIpAddress, IPacketRouter router, ISerialPacketDeviceFactory serialPacketDeviceFactory, IRestoreManager restoreManager, IDeviceDetectionHelper deviceDetectionHelper)
   at SerialSlipToTun.Service..ctor(ILogger logger)
   at SerialSlipToTunService.SerialSlipToTunService.StartServiceInner()
   at SerialSlipToTunService.SerialSlipToTunService.OnStart(String[] args)
Event Xml:
Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
157 questions
{count} votes

Accepted answer
  1. Roger Mahler 226 Reputation points
    2021-01-08T19:02:47.313+00:00

    Unless there is a better, less blunt force answer this worked:

    1) download and use Revo to uninstall the Azure Sphere SDK

    2) using Registry Edit and delete the following

     Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Azure Sphere:  
    
     This contains Sysroots and Tap Driver Install sub directories  
    
      ![54896-ms.png][1]  
    

    you do not have to find every instance to get it to work, not sure of the long term impacts of this forced method.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Chandranmsft 856 Reputation points
    2021-01-13T16:15:48.103+00:00

    Hello @Roger Mahler - We are sorry that you are having a below par experience using Azure Sphere product.

    If you are still experiencing the issue, can you please try disabling the AzureSphereDeviceCommunicationService by running below command from an elevated cmd prompt?

    56291-image.png

    Also, did you try uninstalling the TapDrivers and attempting to uninstall the SDK software?

    https://learn.microsoft.com/en-us/azure-sphere/install/troubleshoot-installation#check-the-tap-windows-adapter-configuration

    Thank you for using Azure Sphere and appreciate you sharing the feedback.

    1 person found this answer helpful.
    0 comments No comments

  2. Roger Mahler 226 Reputation points
    2021-01-20T14:35:32.427+00:00

    seems like when i get a new update from microsoft - i am on the early release program i loose the TAP - found the correct part of the docs to solve it:

    https://learn.microsoft.com/en-us/azure-sphere/install/troubleshoot-installation

    Check the TAP-Windows adapter configuration

    Delete the TAP in the device manager and run the following

    powershell -ExecutionPolicy RemoteSigned -File "%ProgramData%\Microsoft\Azure Sphere\TapDriverInstaller\TapDriverInstaller.ps1" Install

    one step closer, thank you.

    1 person found this answer helpful.