Connect to Azure OpenAI from Excel and Word
On Microsoft Excel and Word, GPT for Work can connect to Azure AI to use OpenAI models. You can connect to and use a single model at a time.
Prerequisites
Azure subscription with Azure AI service access
Deployed model in an Azure OpenAI resource
Get your Azure OpenAI endpoint details
To connect to Azure AI from GPT for Excel and Word, you need the endpoint URL, name, and API key for the Azure OpenAI model you want to use.
Sign in to Azure AI Foundry.
Select the Azure OpenAI resource that has the model you want to use.
In the sidebar, select My assets > Models + endpoints.
In Model deployments, in the models list, click the name of the model you want to use.
In the model details, copy the Target URI, Key, and Model name.
Configure the Azure OpenAI endpoint
MS Excel
MS Word
Open a Microsoft Excel workbook.
In the Home tab, click GPT for Excel Word.
infoYou can also select Home > Add-ins > My Add-ins > GPT for Excel Word.
In the sidebar menu, select API keys & endpoints.
Select the endpoints tab.
In the Azure endpoint section, define the endpoint settings:
Endpoint URL: Enter the endpoint URL for the model.
Model ID: Enter the model name. GPT for Excel uses the name as the model's display name in the model switcher.
API key: Enter the API key for accessing the endpoint.
Click Check to validate the settings, and click Save.
You have configured the Azure OpenAI endpoint in GPT for Excel. You can now select the model available through the endpoint.
Open a Microsoft Word document.
In the Home tab, click GPT for Excel Word.
infoYou can also select Home > Add-ins > My Add-ins > GPT for Excel Word.
In the sidebar menu, select API keys & endpoints.
Select the endpoints tab.
In the Azure endpoint section, define the endpoint settings:
Endpoint URL: Enter the endpoint URL for the model.
Model ID: Enter the model name. GPT for Word uses the name as the model's display name in the model switcher.
API key: Enter the API key for accessing the endpoint.
Click Check to validate the settings, and click Save.
You have configured the Azure OpenAI endpoint in GPT for Word. You can now select the model available through the endpoint.
Select the Azure OpenAI model
MS Excel
MS Word
Expand the model switcher. You can find the model under Use your API key or endpoint.
Select the model.
GPT for Excel now uses the selected model to generate all responses.
Expand the model switcher. You can find the model under Use your API key or endpoint.
Select the model.
GPT for Word now uses the selected model to generate all responses.