question

MadalaHanumantharao-5095 avatar image
0 Votes"
MadalaHanumantharao-5095 asked JayaC-MSFT answered

How to stop/start azure APIM service using portal or CLI or PS1

I would like to have the steps for stopping the azure APIM service using CLI or PS1.
As of my knowledge I don't think we have any option in portal to perform these operations(stop/start/restart).

azure-api-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

cooldadtx avatar image
0 Votes"
cooldadtx answered

APIM is an Azure service. You don't start/stop/restart it. It just runs in the background as needed. This isn't a Windows service or REST API but a product, potentially scaled on demand. The only thing you can do with APIM is add/update/remove APIs/users/products to it. There are no other management options needed.

Why do you need to be able to stop/start it? Note that you're paying for the resource itself so whether it is running or not (as you might define by a service) is irrelevant. So if you think you're going to save money by "stopping" the service, you won't.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JayaC-MSFT avatar image
0 Votes"
JayaC-MSFT answered

Hello @MadalaHanumantharao-5095, Thanks for posting the question. As @cooldadtx explained, I am afraid it couldn't be done. As long as service is up it would incur the cost irrespective of API(s) being used or not.
If the cost is the concern here, you may consider consumption or developer instances.

Here are the pricing and feature details for your reference:

https://azure.microsoft.com/en-in/pricing/details/api-management/

https://docs.microsoft.com/en-us/azure/api-management/api-management-features



Please let me know if the answer helps. If yes, please "Accept the answer" and "Up-vote" so that it helps others in the community.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.