An Azure service that provides a hybrid, multi-cloud management platform for APIs.
hi Siarhei Radziush,
the fastest and most reliable option is to recreate the APIM instance. For the Developer tier this is usually acceptable and much quicker than troubleshooting. A new instance starts with a clean gateway quota. If recreating the instance is not an option, the only remaining path is Microsoft Support. Only they can remove a stuck gateway object or manually reset the gateway counter for that APIM instance. This cannot be fixed through the portal, CLI, or Terraform.
One more important point. If you need more than one self hosted gateway, or need reliable behaviour, the Developer tier is not suitable. It is a non production SKU with hard limits and quirks like this. For real usage, you need at least the Basic or Standard tier.
The limit is genuinely reached even if the portal shows zero. This is a stuck gateway in the backend. Either recreate the APIM instance or open a support ticket.
rgds,
Alex