If a module or a device uses the C# SDK v1.21.0 to connect to EdgeHub over AMQP or AmqpWs, the connection fails with the error "Cbs message missing audience property". This seems to be a regression from 1.20.3 (where the issue does not repro).
var mc = ModuleClient.CreateFromConnectionString(connStr, TransportType.Amqp_Tcp_Only);
await mc.OpenAsync();
IotHubException: Put token failed. status-code: 400, status-description: Cbs message missing audience property.
Looks like this was a bad SDK nuget cached on my machine. Clearing the cache fixed the issue. Closing it.
Most helpful comment
Looks like this was a bad SDK nuget cached on my machine. Clearing the cache fixed the issue. Closing it.