Azure OpenAI in Azure Government
Provision Azure OpenAI in Azure Government and share the required connection details with StackAI.
Use this guide to provision Azure OpenAI in Azure Government. Then share the required connection details with StackAI.
Before you begin
Azure Government is separate from commercial Azure. It uses separate portals, sign-in domains, and service hostnames.
Commercial Azure subscriptions and resources do not transfer to Azure Government.
If you already have an Azure Government tenant, start at Sign in to Azure Government.
Prerequisites
Set up Azure OpenAI
Confirm eligibility
Microsoft validates every Azure Government tenant request. You must qualify under one of three categories:
US government entity
Federal, state, local, tribal, regional/interstate, FFRDC
Government partner
Delivering to government under direct or indirect contract, including GSA agreements
Commercial entity with regulated data
ITAR, CUI, DoD UCNI, DOE, criminal justice, or DoD Impact Level data
Have supporting documentation ready — contract number, GSA schedule, or a written description of the regulated data. Microsoft's validation team will request it.
Sign in to Azure Government
Use the Government URLs. Commercial equivalents will reject Government credentials.
Portal
portal.azure.com
https://portal.azure.us
Sign-in
login.microsoftonline.com
login.microsoftonline.us
Resource Manager
management.azure.com
management.usgovcloudapi.net
Key Vault
vault.azure.net
vault.usgovcloudapi.net
Request Azure OpenAI access
Azure OpenAI in Azure Government has historically required registration in addition to a subscription.
Submit the access request at Azure Government - Request Access to Azure OpenAI
Confirm with your Microsoft account team whether this step is still required — the gating has been relaxed over time. If resource creation in Step 5 fails with a "not enabled for this subscription" error, this form is the fix.
Create the resource and deploy a model
Create the Azure OpenAI resource
In portal.azure.us:
Create a resource → search Azure OpenAI
Configure:
Region:
US Gov VirginiaorUS Gov Arizona— both carry the same model setName: must not contain sensitive or export-controlled information
Pricing tier: Standard S0
Select Create
Azure resource names are not covered by export-control protections. Do not embed program names, classifications, or other sensitive strings. See naming considerations.
Deploy the model
Open the resource → Model deployments → Manage deployments → Deploy model.
Select gpt-5.1 with deployment type Data Zone Standard.
gpt-5.1 is offered only on Data Zone Standard in Azure Government. If you select plain "Standard" or "Provisioned managed," gpt-5.1 will not appear in the model list. This is the most common cause of a "model unavailable" report.
Record the deployment name you choose. StackAI requires it. The deployment name is distinct from the model name, and API calls reference the deployment.
Check current model and region availability before selecting a model.
Request a quota increase
Default tokens-per-minute quotas are low and will throttle production traffic.
Submit an increase at https://aka.ms/AOAIGovQuota
Do this early. Quota requests take time, and an unraised limit presents as a broken integration under load.
Choose an authentication method
Decide this with your security team before generating any credential.
In the resource: Resource Management → Keys and Endpoint. Copy KEY 1 and the Endpoint.
Recommended for production
Many Government tenants disable key-based authentication by Azure Policy (disableLocalAuth). If that applies, or if a shared static secret is unacceptable to your security team, use a service principal:
Register an application in Microsoft Entra ID
Assign it the Cognitive Services OpenAI User role, scoped to the Azure OpenAI resource
Record the Tenant ID, Client ID, and Client Secret
Troubleshooting
Related resources
Last updated
Was this helpful?

