An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
Hi Ahmed,
I understand the issue you are facing. It happens when the allowed regions policy and the service availability do not match.
Right now, your subscription has an allowed regions policy that only permits a few regions like Sweden Central, Italy North, France Central, Poland Central, and Spain Central. But Azure IoT Hub is not available in these regions, so when you try to create the resource, no region shows up as valid. [learn.microsoft.com]
This is why the deployment is blocked even though everything else is correct.
This policy works as a restriction. It checks the region you select, and if that region is not in the allowed list, the deployment is automatically denied. Azure uses this to enforce governance and control where resources can be created. [learn.microsoft.com]
To troubleshoot this, you can start by checking the policy applied to your subscription. In the Azure portal, go to Policy, then Assignments, and look for a policy named Allowed locations or Allowed resource deployment regions. Open it and check the Parameters section. This will show the list of regions that are currently allowed.
Next, compare that list with the regions that support Azure IoT Hub. If none of the allowed regions support IoT Hub, then the portal will not show any available regions during creation.
Also, keep in mind that policies can be applied at different levels like subscription or management group. So even if it looks correct in one place, a higher-level policy may still restrict the regions.
To move forward, you need at least one region in the allowed list that supports Azure IoT Hub, such as West Europe, North Europe, or East US. Once a supported region is included in the policy, you will be able to proceed with deployment.
You can refer to these official documents for more details:
Azure Policy troubleshooting guide https://learn.microsoft.com/en-us/azure/governance/policy/troubleshoot/general
In short: the issue is not with IoT Hub. It is due to the policy restricting regions, and those regions do not support the service. Aligning the policy with a supported region should resolve it.
Hope this helps. Let me know if you want help checking your policy configuration.
If this answers your query, please do click Accept Answer and Yes for was this answer helpful.
Thankyou!