I'm running a migrate appliance for physical devices and the Discovery Service always crashes with a .Net error
Appliance services
| Service name |
Installed version |
Latest version |
Status |
| Discovery agent |
2.0.3375.721 |
2.0.03378.727 |
Stopped |
Event Viewer:
Log Name: Application
Source: Application Error
Date: 4/15/2026 7:49:04 AM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: WIN-3HKK35QSF25
Description:
Faulting application name: ServerDiscoveryService.exe, version: 2.0.3375.721, time stamp: 0x696f0000
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x00007ffde098e6b6
Faulting process id: 0x1248
Faulting application start time: 0x01dccce6d79c9ead
Faulting application path: C:\Program Files\Microsoft Azure Server Discovery Service\ServerDiscoveryService.exe
Faulting module path: unknown
Report Id: 94b33896-0104-420a-9b7e-8d37c890677e
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>100</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2026-04-15T14:49:04.6135820Z" />
<EventRecordID>8655</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>WIN-3HKK35QSF25</Computer>
<Security />
</System>
<EventData>
<Data>ServerDiscoveryService.exe</Data>
<Data>2.0.3375.721</Data>
<Data>696f0000</Data>
<Data>unknown</Data>
<Data>0.0.0.0</Data>
<Data>00000000</Data>
<Data>c0000005</Data>
<Data>00007ffde098e6b6</Data>
<Data>1248</Data>
<Data>01dccce6d79c9ead</Data>
<Data>C:\Program Files\Microsoft Azure Server Discovery Service\ServerDiscoveryService.exe</Data>
<Data>unknown</Data>
<Data>94b33896-0104-420a-9b7e-8d37c890677e</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
C:\ProgramData\Microsoft Azure\Logs\Server\Discovery\ServiceAria_20260415.log has lots of errors like this:
14:48 Critical: RefreshSignatureCacheEvent::[SeverityLevel, Critical]:[Level, 16]:[Timestamp, 2026-04-15 14:48:42Z]:[EntityType, Microsoft.Azure.FDS.ServiceContract.Server.ServerSignature]:[Signature, {
"Id": "192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895",
"Fqdn": "192.168.1.220",
"BIOSGuid": "CCD39883-6368-4E29-B273-802E7D6A13A7",
"OsType": "WindowsGuest",
"RunAsAccountId": "af5edc3c-8dfc-595a-807e-a02b527758a3",
"FabricElementType": "Server",
"ID": "192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895",
"MetaData": {
"AppsAndRolesDiscoveryPipe": "Unknown",
"DependencyMapDiscoveryPipe": "Unknown",
"SQLMetadataDiscoveryPipe": "Unknown",
"PendingUpdatesDiscoveryPipe": "Unknown",
"IsDependencyMappingEnabled": false,
"IsDependencyMappingAutoEnabled": true,
"Fqdn": null,
"IpAddresses": null,
"RunAsAccountId": "af5edc3c-8dfc-595a-807e-a02b527758a3",
"AppsAndRolesHydratedRunAsAccountId": null,
"DependencyMapHydratedRunAsAccountId": null,
"SQLHydratedRunAsAccountId": "",
"PendingUpdatesHydratedRunAsAccountId": null,
"GuestOSType": 1,
"MachineName": "192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895",
"MachineId": "192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895",
"FabricElementType": "MetaData",
"IsSIAttempted": false,
"SIValidationErrors": [
{
"ErrorCode": "UnableToConnectToPhysicalServer",
"ErrorLevel": "Error",
"ErrorMessageParametersMap": {
"name": "192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895",
"errorCode": "UnableToConnectToPhysicalServer",
"errorMessage": "Unable to connect to this machine. The error per IP is: \n[IP: 192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895, Error:Unable to connect to server '192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895' due to an error. Error code: '-2147024894' Error details: 'Could not load file or assembly 'Microsoft.Management.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.'.]\n[IP: 192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895, Error:Unable to connect to server '192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895' due to an error. Error code: '-2147024894' Error details: 'Could not load file or assembly 'Microsoft.Management.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.'.]\n"
},
"RunAsAccountId": "af5edc3c-8dfc-595a-807e-a02b527758a3",
"DiscoveryScope": "AppsAndRoles",
"Id": "",
"Message": "",
"SummaryMessage": "",
"PossibleCause": "",
"RecommendedAction": "",
"UpdatedTimeStamp": "2026-04-15T14:48:42.4476578Z",
"AdditionalInfo": {}
}
],
"HasSIValidationError": true,
"HasDependencyMapValidationError": true,
"DependencyMapValidationErrors": [
{
"ErrorCode": "UnableToConnectToPhysicalServer",
"ErrorLevel": "Error",
"ErrorMessageParametersMap": {
"name": "192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895",
"errorCode": "UnableToConnectToPhysicalServer",
"errorMessage": "Unable to connect to this machine. The error per IP is: \n[IP: 192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895, Error:Unable to connect to server '192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895' due to an error. Error code: '-2147024894' Error details: 'Could not load file or assembly 'Microsoft.Management.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.'.]\n[IP: 192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895, Error:Unable to connect to server '192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895' due to an error. Error code: '-2147024894' Error details: 'Could not load file or assembly 'Microsoft.Management.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.'.]\n"
},
"RunAsAccountId": "af5edc3c-8dfc-595a-807e-a02b527758a3",
"DiscoveryScope": "DependencyMap",
"Id": "",
"Message": "",
"SummaryMessage": "",
"PossibleCause": "",
"RecommendedAction": "",
"UpdatedTimeStamp": "2026-04-15T14:48:42.4476578Z",
"AdditionalInfo": {}
}
]
}
}]
and
14:49 Error: Properties:: [CommandSource, Internal]:[operation, RefreshShallowDiscovery]:[VirtualMachineUuid, 192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895]:[PartnerType, MySQL]:[AgentSessionId, 6c07e3a6-9b8c-4b50-b11c-4474c01af406]:[version, 2.0.3375.721]:[fabrictype, Server]:[agenttype, ServerDiscovery]:[agentid, 48168512-860b-4ca1-8092-a2d5486bf39c-agent]:[ServiceEndPoint, discoverysrv.cus.prod.migration.windowsazure.com]:[ip, 192.168.1.226]:[threadname, WorkerThread]:[activityid, b5437918-b8c9-4ae7-8cfd-7ded2ebbeece]:[LogGenerationtime, 2026-04-15 14:49:04Z]
14:49 Error: Messages:: [SeverityLevel, Error]:[Level, 8]:[Timestamp, 2026-04-15 14:49:04Z]:[Raw, Exception while creating secure PS Session on Port:5986 with machine 192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895.]
and
14:49 Error: Properties:: [CommandSource, Internal]:[operation, RefreshShallowDiscovery]:[VirtualMachineUuid, 192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895]:[PartnerType, MySQL]:[AgentSessionId, 6c07e3a6-9b8c-4b50-b11c-4474c01af406]:[version, 2.0.3375.721]:[fabrictype, Server]:[agenttype, ServerDiscovery]:[agentid, 48168512-860b-4ca1-8092-a2d5486bf39c-agent]:[ServiceEndPoint, discoverysrv.cus.prod.migration.windowsazure.com]:[ip, 192.168.1.226]:[threadname, WorkerThread]:[activityid, b5437918-b8c9-4ae7-8cfd-7ded2ebbeece]:[LogGenerationtime, 2026-04-15 14:49:04Z]
14:49 Error: Exceptions:: [SeverityLevel, Error]:[Level, 8]:[Timestamp, 2026-04-15 14:49:04Z]:[Message, CustomMessage: Exception while creating secure PS Session on Port:5986 with machine 192-168-1-220-b2c5822f-d312-46a8-8934-5f947194b895. || ExceptionType: System.IO.FileNotFoundException || ExceptionMessage: Could not load file or assembly 'Microsoft.Management.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.]:[ExceptionType, System.IO.FileNotFoundException]:[Source, System.Management.Automation]:[StackTrace, at System.Management.Automation.CimClassDeserializationCache`1..ctor()
at System.Management.Automation.DeserializationContext..ctor(DeserializationOptions options, PSRemotingCryptoHelper cryptoHelper)
at System.Management.Automation.Remoting.Fragmentor..ctor(Int32 fragmentSize, PSRemotingCryptoHelper cryptoHelper)
at System.Management.Automation.Remoting.BaseTransportManager..ctor(PSRemotingCryptoHelper cryptoHelper)
at System.Management.Automation.Remoting.Client.BaseClientTransportManager..ctor(Guid runspaceId, PSRemotingCryptoHelper cryptoHelper)
at System.Management.Automation.Remoting.Client.BaseClientSessionTransportManager..ctor(Guid runspaceId, PSRemotingCryptoHelper cryptoHelper)
at System.Management.Automation.Remoting.Client.WSManClientSessionTransportManager..ctor(Guid runspacePoolInstanceId, WSManConnectionInfo connectionInfo, PSRemotingCryptoHelper cryptoHelper, String sessionName)
at System.Management.Automation.Runspaces.WSManConnectionInfo.CreateClientSessionTransportManager(Guid instanceId, String sessionName, PSRemotingCryptoHelper cryptoHelper)
at System.Management.Automation.Remoting.ClientRemoteSessionDSHandlerImpl..ctor(ClientRemoteSession session, PSRemotingCryptoHelper cryptoHelper, RunspaceConnectionInfo connectionInfo, URIDirectionReported uriRedirectionHandler)
at System.Management.Automation.Remoting.ClientRemoteSessionImpl..ctor(RemoteRunspacePoolInternal rsPool, URIDirectionReported uriRedirectionHandler)
at System.Management.Automation.Internal.ClientRunspacePoolDataStructureHandler.CreateClientRemoteSession(RemoteRunspacePoolInternal rsPoolInternal)
at System.Management.Automation.Internal.ClientRunspacePoolDataStructureHandler..ctor(RemoteRunspacePoolInternal clientRunspacePool, TypeTable typeTable)
at System.Management.Automation.Runspaces.Internal.RemoteRunspacePoolInternal.CreateDSHandler(TypeTable typeTable)
at System.Management.Automation.Runspaces.Internal.RemoteRunspacePoolInternal..ctor(Int32 minRunspaces, Int32 maxRunspaces, TypeTable typeTable, PSHost host, PSPrimitiveDictionary applicationArguments, RunspaceConnectionInfo connectionInfo, String name)
at System.Management.Automation.Runspaces.RunspacePool..ctor(Int32 minRunspaces, Int32 maxRunspaces, TypeTable typeTable, PSHost host, PSPrimitiveDictionary applicationArguments, RunspaceConnectionInfo connectionInfo, String name)
at System.Management.Automation.RemoteRunspace..ctor(TypeTable typeTable, RunspaceConnectionInfo connectionInfo, PSHost host, PSPrimitiveDictionary applicationArguments, String name, Int32 id)
at System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(RunspaceConnectionInfo connectionInfo, PSHost host, TypeTable typeTable, PSPrimitiveDictionary applicationArguments, String name)
at System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(RunspaceConnectionInfo connectionInfo, PSHost host, TypeTable typeTable)
at System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(PSHost host, RunspaceConnectionInfo connectionInfo)
at System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(RunspaceConnectionInfo connectionInfo)
at Microsoft.AzureMigrate.Appliance.PowerShellClients.PowerShellClient.InitializeRunspaceAsync(Boolean useSsl, Int32 port, CancellationToken ct)
at Microsoft.AzureMigrate.Appliance.PowerShellClients.PowerShellClient.CreatePsSessionAsync(CancellationToken ct)]:[HelpLink, ]:[HResult, -2147024894]
Testing PSRemote to the two machines I'm testing works perfectly fine.