# Rasa Pro Tutorial with Azure OpenAI Service not working

**URL:** <https://forum.rasa.com/t/rasa-pro-tutorial-with-azure-openai-service-not-working/61810>\
**Category:** Rasa CALM\
**Tags:** rasa, tutorial\
**Created:** [April 30, 2024, 2:45pm UTC](https://forum.rasa.com/t/rasa-pro-tutorial-with-azure-openai-service-not-working/61810 "2024-04-30T14:45:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![emilymoore04](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@emilymoore04](https://forum.rasa.com/u/emilymoore04)\
**Post date:** [April 30, 2024, 7:26pm UTC](https://forum.rasa.com/t/rasa-pro-tutorial-with-azure-openai-service-not-working/61810/2 "2024-04-30T19:26:20Z")

</div>

The error message clearly shows that the API key provided is incorrect. You should double check that you’ve correctly set up the environment variable `OPENAI_API_KEY` in your terminal.

Make sure that you’ve copied the API key accurately and that there are no extra spaces or characters and verify that the API key hasn’t expired and that it has the necessary permissions to access the OpenAI service.

Once you’ve confirmed that the API key is correct, try running the `rasa train` command again. If the issue persists, you may need to troubleshoot further by checking the API key’s permissions and verifying the endpoint configuration in your `config.yml` file.

---

_[View the full topic](https://forum.rasa.com/t/rasa-pro-tutorial-with-azure-openai-service-not-working/61810)._
