is shared access policy created by default when an Azure iot hub is created?

Mahruk Zulfiqar 0 Reputation points
2024-04-03T10:58:16.9833333+00:00

In my github workflow, I am getting the error that shared access policy exists already when I am trying to create it

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,120 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 27,401 Reputation points
    2024-04-03T11:09:16.53+00:00

    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:

    User's image

    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.

    0 comments No comments