You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/web-application-firewall/afds/protect-azure-open-ai.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ First, create an OpenAI instance.
30
30
31
31
Open the Azure OpenAI studio and open the **Chat** option under **Playground**.
32
32
Use the **View code** option to display the endpoint and the API key.
33
-
:::image type="content" source="../media/protect-azure-open-ai/view-code.png" alt-text="Screenshot showing Azure AI Studio Chat playground.":::
33
+
:::image type="content" source="../media/protect-azure-open-ai/view-code.png" alt-text="Screenshot showing Azure AI Studio Chat playground." lightbox="../media/protect-azure-open-ai/view-code.png":::
34
34
<br>
35
35
36
36
:::image type="content" source="../media/protect-azure-open-ai/sample-code.png" alt-text="Screenshot showing Azure OpenAI sample code with Endpoint and Key.":::
@@ -51,9 +51,9 @@ First, create an OpenAI instance.
51
51
}
52
52
53
53
```
54
-
:::image type="content" source="../media/protect-azure-open-ai/postman-body.png" alt-text="Screenshot showing the post body.":::
54
+
:::image type="content" source="../media/protect-azure-open-ai/postman-body.png" alt-text="Screenshot showing the post body." lightbox="../media/protect-azure-open-ai/postman-body.png":::
55
55
1. In response to the POST, you should receive a *200 OK*:
56
-
:::image type="content" source="../media/protect-azure-open-ai/post-200-ok.jpg" alt-text="Screenshot showing the POST 200 OK.":::
56
+
:::image type="content" source="../media/protect-azure-open-ai/post-200-ok.png" alt-text="Screenshot showing the POST 200 OK." lightbox="../media/protect-azure-open-ai/post-200-ok.png":::
57
57
58
58
The Azure OpenAI also generates a response using the GPT model.
59
59
@@ -73,15 +73,15 @@ Now use the Azure portal to create an Azure Front Door instance with Azure WAF.
73
73
74
74
Enable the WAF policy in prevention mode and ensure **Microsoft_DefaultRuleSet_2.1** and **Microsoft_BotManagerRuleSet_1.0** are enabled.
75
75
76
-
:::image type="content" source="../media/protect-azure-open-ai/waf-policy.png" alt-text="Screenshot showing a WAF policy.":::
76
+
:::image type="content" source="../media/protect-azure-open-ai/waf-policy.png" alt-text="Screenshot showing a WAF policy." lightbox="../media/protect-azure-open-ai/waf-policy.png":::
77
77
78
78
## Verify access to Azure OpenAI via Azure Front Door endpoint
79
79
80
80
Now verify your Azure Front Door endpoint.
81
81
82
82
1. Retrieve the Azure Front Door endpoint from the Front Door Manager.
83
83
84
-
:::image type="content" source="../media/protect-azure-open-ai/front-door-endpoint.png" alt-text="Screenshot show the Azure Front Door endpoint.":::
84
+
:::image type="content" source="../media/protect-azure-open-ai/front-door-endpoint.png" alt-text="Screenshot show the Azure Front Door endpoint." lightbox="../media/protect-azure-open-ai/front-door-endpoint.png":::
85
85
2. Use Postman to send a POST request to the Azure Front Door endpoint.
86
86
1. Replace the Azure OpenAI endpoint with the AFD endpoint in Postman POST request.
87
87
:::image type="content" source="../media/protect-azure-open-ai/test-final.png" alt-text="Screenshot showing the final POST." lightbox="../media/protect-azure-open-ai/test-final.png":::
0 commit comments