Azure : How can I disable the translator service

Achraf Lakhdhar 1 Reputation point
2022-05-31T09:33:10.793+00:00

Hello,

I have an azure translator service that I would like to disable when certain conditions are met (total number of translated chars...)
I have tested the alert rules, however it seems they are only able to send notifications and the actions to stop VM for example are not supported for the translator service.

Do you have an idea how can I resolve this problem?

Thanks for your help!

Azure AI Translator
Azure AI Translator
An Azure service to easily conduct machine translation with a simple REST API call.
487 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 28,596 Reputation points MVP Volunteer Moderator
    2022-05-31T10:20:54.47+00:00

    Hi,
    Translator service (Cognitive services) does not have the option that you can stop the service. However, if the intention is to stop access to the service you can build your own automation. With Azure Monitor metric alert rules and action groups you can get alerted when certain threshold is reached on specific metric and then execute automation like Azure Automation Runbook, Logic App, Azure Function or third-party service via webhook. Whatever you choose you will have to write your automation workflow. As the Translator service cannot be stopped you could for example disable public network access to it. That can be done in Portal via Networking -> Allow access from: Disabled. On API level this corresponds to setting property publicNetworkAccess to Disabled. Of course when you do that it means that you are not having private endpoints to the service as when Disabled private endpoints can reach the service.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.