Skip to main content
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Advocate V
Advocate V

Using the Azure Open AI Proxy outside of a notebook

Some of you might want to use the Azure Open AI proxy outside of a notebook. Maybe in some custom code or in Powerautomate. 

It's easy, if you know the url...


1) use the correct url to post a chat completion request:

replace the model name with whatever one you want to play with. Careful, the /chat/ part of the url is paramount

2) add a header to the request: api-key

3) add your api key as the header value

4) construct the body using the messages syntax. a good example can be found here:


careful! the last link has an outdated url structure. make sure to use{model-name}/chat/completions


and voilla you can use the openai api also in other places like powerautomate 🙂



Helpful resources


Fabric Monthly Update - June 2024

Check out the June 2024 Fabric update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors