I have test TSI preview environment in azure connected to an IoTHub. I am experimenting with the TSI test APIs, however, there seems to be something I am doing wrong.
Here are the things that I did.
- Created a Service Principal
- Gave it access to my resource group with the TSI instance
- Using API https://login.microsoftonline.com/{{tenantId}}/oauth2/token to login and obtain a token.
- On the portal, it does not allow me to create a Data access policy for a Service Principle but the AZ CLI does, so I created one.
- My postman screenshot is given below, I am using the dataaccesFQDN as the prefix, and I have verified the environment ID as well.
- However, all the APIs call return,
{ "error": { "code": "ResourceNotFound", "message": "Environment with id 'a5442850-c542-4602-a289-5ec1e1064280' is not found." } }
Any thoughts on whats going wrong?