From the course: Azure AI Engineer Associate (A1-102): Cert Prep Implement Content Moderation Solutions

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Use a client application to moderate text

Use a client application to moderate text

- [Instructor] In this demonstration, we'll take a look at how we can perform text moderation from a client application, calling into the Azure AI Content Safety Service. In this demonstration, we'll use the Visual Studio Code Integrated Development Environment, and in this case, we're using the C# language. I have my Program.cs file open. Within this, we have to focus initially on the endpoint and the key for our service, these two values highlighted here. We get those from the Azure Portal where we will have already created an Azure AI content safety resource. Let's switch to the portal and see where that is. This is in the Azure Portal for my account, and I have a content safety resource called AI102TextMod. Typically, when you come in to the screen, your keys will be hidden. In order to copy a key, you have to select the Show Keys button. Then you can select either Key 1 or Key 2 and use the Copy to clipboard button on the right. You can do the same with the endpoint. Both of…

Contents