Task 1: Configure Content Safety by enabling the content safety API
-
Return to the Microsoft Azure portal home page, and then search for and select Content safety.
-
On the Content safety blade, select Create Content safety.
-
On the Create Content Safety blade, in the Subscriptions dropdown list, verify your lab subscription is selected.
-
In the Resource group dropdown list, select @lab.CloudResourceGroup(RG1).Name.
-
In the Name field, type ContentSafetyxxxx.
-
In the Pricing tier dropdown list, select Standard SO, and then select Next.
-
On the Network tab, leave the default settings and select Next.
-
On the Identity tab, leave the default settings and select Next.
-
On the Tags tab, leave the default settings and select Next.
-
On the Review + Create blade, review the settings and then select Create.
This deployment should only take a couple of minutes.
-
When complete, select Go to resource.
-
On the ContentSafetyxxxx blade, select Access control (IAM).
-
On the Access control (IAM) blade, select Add and then select Add role assignment.
-
On the Add role assignment blade, search for and select Cognitive Services User.
-
Once selected, select the Members tab.
-
On the Members tab, select Select members.
-
On the Select members dialog, search for and select your lab admin account @lab.CloudPortalCredential(User1).Username and then select Select.
-
Back on the Members tab, select Review + Assign.
-
On the Review + Assign tab, review the settings and then select Review + Assign.