While trying to provision device through Azure DPS is not working. it is giving error.
Unhandled Exception: Microsoft.Azure.Devices.Provisioning.Client.ProvisioningTransportException: AMQP transport exception ---> Microsoft.Azure.Amqp.AmqpException: {"errorCode":401002,"trackingId":,"message":"IotHubUnauthorizedAccess",}
I am using same x509 certificate which was used at the time of enrollment. Scope id is also correct. Any help will be appreciated.