Mahruk Zulfiqar Greetings & Welcome to Microsoft Q&A forum!
is shared access policy created by default when an Azure iot hub is created?
Yes, when you create an Azure IoT hub, it comes with default shared access policies. These policies are created to help you manage access to your IoT hub. The following are the default policies that are created when you create an IoT hub:
In my github workflow, I am getting the error that shared access policy exists already when I am trying to create it
If you are getting an error that the shared access policy already exists, it means that the policy has already been created. You can try to use the existing policy instead of creating a new one.
If you need to modify the policy, you can do so by updating the existing policy.
Please see Control access to IoT Hub by using Microsoft Entra ID for more details.
Do let me know if that helps or have any other queries.
If the response helped, please do click Accept Answer
and Yes
for was this answer helpful.
Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.