| author | dlepow |
|---|---|
| ms.service | azure-api-management |
| ms.topic | include |
| ms.date | 04/08/2025 |
| ms.author | danlep |
You can get AI assistance from Copilot to create and edit your API Management policy definitions. You can use Copilot to create and update policies that match your specific requirements without needing to know the XML syntax. You can also get explanations of existing policies. And Copilot can help you translate policies that you might have configured in other API management solutions.
- Azure Copilot provides policy authoring assistance with natural language prompts in the Azure portal. You can author policies in the API Management policy editor and ask Copilot to explain policy sections.
- GitHub Copilot for Azure in Visual Studio Code provides policy authoring assistance in Visual Studio Code, and you can use the Azure API Management Extension for Visual Studio Code to speed up policy configuration. You can prompt Copilot Chat or Copilot Edits with natural language to create and refine policy definitions in place.
Example prompt:
Generate a policy that adds an Authorization header to the request with a Bearer token.
Copilot is powered by AI, so surprises and mistakes are possible. For more information, see Copilot general use FAQs.