Step 1
Setting up your tenant, subscription, and region
Your private AI environment begins inside your company's own Microsoft Entra tenant and Azure subscription. Data stored at rest stays in the specific Azure geography you select for your resource. A dedicated resource group holds your Azure OpenAI instance, virtual network, private endpoint, key vault, and logging workspace. This groups access control and cost management into one clear administrative unit.
Your chosen deployment type dictates where your prompts are processed. Global Standard processes requests in any Azure region, while Standard keeps processing within your chosen geography. Data Zone Standard limits processing to your designated data zone in the US, EU, or APAC. Microsoft recommends starting with Global Standard unless you have specific data residency requirements. You can enforce these boundaries across your organization using Azure Policy.
{
"field": "Microsoft.CognitiveServices/accounts/deployments/sku.name",
"equals": "GlobalStandard"
}Step 2
Deploying the resource and managing your data
Creating your Azure OpenAI resource requires a custom subdomain name, which enables Microsoft Entra ID authentication. Once the resource is live, you deploy a specific model to it and assign a deployment name for your applications to call. Microsoft hosts these models in its own Azure environment as stateless services. Prompts, completions, embeddings, and training data are never shared with other customers, OpenAI, or outside model providers, and Microsoft does not use them to train foundation models.
By default, content classifiers check for abusive use, and automated reviews flag patterns for limited human review through Secure Access Workstations. Eligible organizations can apply for modified abuse monitoring to turn off human review and prompt storage. When approved, your account shows ContentLogging set to false in its JSON view. Modified abuse monitoring continues for models available before November 1, 2026 for existing approvals, but you should check current status when applying for newer models.
az cognitiveservices account create \n -n <name> -g <resource-group> -l <region> \n --kind OpenAI --sku S0 \n --custom-domain <name> --assign-identityStep 3
Securing the private network path
To isolate your model from the internet, set public network access to Disabled in the resource settings. This setting blocks all public networks and makes private endpoints the only way to reach your service. Create a private endpoint using the Microsoft.CognitiveServices/accounts resource type and place it in a dedicated subnet inside your virtual network. Connect this endpoint to a private DNS zone named privatelink.openai.azure.com.
Your staff and internal systems reach this private endpoint through your existing enterprise network setups. You can connect through an Azure VPN Gateway using point-to-site Entra ID authentication, a virtual machine running Azure Bastion, or a site-to-site VPN. If your setup includes document search, apply the same private endpoints to Azure AI Search and Blob Storage. This entire network path uses Azure Private Link, which sits within Azure's FedRAMP High scope.
properties: {
customSubDomainName: '<name>'
publicNetworkAccess: 'Disabled'
disableLocalAuth: true
networkAcls: { defaultAction: 'Deny' }
}
// private DNS zone: privatelink.openai.azure.comnslookup <name>.openai.azure.com
Test-NetConnection <private-ip> -Port 443Step 4
Enforcing Entra ID authentication and disabling keys
Using Microsoft Entra ID authentication removes the need to store or rotate static API keys. Your applications request short-lived access tokens assigned to system-assigned or user-assigned managed identities. You assign built-in roles such as Cognitive Services OpenAI User for inference or Cognitive Services OpenAI Contributor for broader deployment tasks directly to these identities. Role assignments take up to five minutes to propagate across the resource.
To ensure no one bypasses Entra ID, turn off key-based authentication by setting disableLocalAuth to true or running Set-AzCognitiveServicesAccount. You can also enforce this change across your subscription using built-in Azure Policy. Existing keys might keep working for a few minutes or hours until the gateway cache updates. You can confirm keys are fully disabled by issuing a data-plane call with an old key and receiving an HTTP 401 response.
az role assignment create \n --assignee <managed-identity-principal-id> \n --role "Cognitive Services OpenAI User" \n --scope <openai-resource-id>Step 5
Managing data encryption at rest and in transit
All data stored by Azure OpenAI is encrypted at rest by default using Microsoft's AES-256 encryption. Baseline encryption uses Microsoft-managed keys automatically without any extra configuration. If your internal policies require it, you can change the encryption keySource setting to use customer-managed keys stored inside your own Azure Key Vault.
All network traffic moves over secure HTTPS calls on port 443 directly to your private endpoint. Stored data remains under your direct management, and you can delete it from the service at any time. These default and optional encryption controls protect your data throughout its lifecycle.
Step 6
Applying content safety and input filters
Models deployed in Microsoft Foundry include automated content filtering by default. The system evaluates prompts and completions across hate, sexual, violence, and self-harm categories at four distinct severity levels. You can create custom content filters to set stricter thresholds for both inputs and outputs across these categories. Embedding models and audio tools like Whisper do not run through these content safety filters.
Optional filters add extra protection against prompt injection attacks and malicious instructions hidden in external documents. Prompt Shields scan user inputs and incoming documents, allowing you to annotate or block suspicious content. Additional filters can block protected text, check source code material, measure groundedness, or detect personally identifiable information in outputs. Microsoft does not retain your prompts or completions to run these content filters.
Step 7
Configuring logging, monitoring, and threat protection
Platform metrics and subscription activity logs run automatically, but resource logs require a diagnostic setting routed to a Log Analytics workspace, Event Hubs, or Azure Storage. You can query these logs in Log Analytics using Kusto Query Language to audit system activity. Azure Monitor alerts can then watch these metrics and notify your team when specific activity thresholds are met.
For security monitoring, Microsoft Defender for Cloud offers a Defender for AI Services plan. It scans text tokens to detect threats like prompt injection, data leakage, and jailbreak attempts, integrating directly with Defender XDR. For broader governance, Microsoft Purview provides data security posture management, auditing AI interactions and classifying data across enterprise applications connected through Microsoft Foundry.
Step 8
Managing costs and API usage limits
Azure assigns model usage quotas per subscription, region, and deployment type in tokens per minute. Each model deployment receives a designated share of this quota, which acts as its rate limit, alongside a proportional requests-per-minute ceiling. If your application exceeds this assigned limit, the service returns an HTTP 429 status code. You can adjust token allocations in the Foundry portal in increments of 1,000.
To manage spend across departments, set up Azure Cost Management budgets with automated threshold alerts. For granular control, place Azure API Management in front of your endpoint and apply the llm-token-limit policy. This policy sets token limits per team key over hourly, daily, or monthly windows, returning HTTP 403 when a quota is exceeded. API Management also sits within Azure's FedRAMP High authorization scope.
<llm-token-limit
counter-key="@(context.Subscription.Id)"
tokens-per-minute="5000"
estimate-prompt-tokens="false" />Step 9
Meeting compliance and regulatory requirements
Microsoft's compliance offerings cover in-scope Azure services under its standard global agreements. For healthcare organizations and their partners, Microsoft includes a Business Associate Agreement directly within its Product Terms and Data Protection Addendum. You should verify that your specific model and deployment type appear on Microsoft's in-scope services list for your compliance needs.
Your organization stays responsible for managing its overall compliance program and configuring its Azure environment correctly. The Entra sign-in records, role assignments, and Log Analytics resource logs generated by this architecture provide data that your organization's own audits and compliance reviews can draw on.
Step 10
Reviewing your completed private AI architecture
Following this setup recipe creates a private AI environment hosted entirely within your company's Azure boundary. Your Azure OpenAI resource remains inaccessible to the public internet, accepting traffic only through private endpoints on your internal network. Access relies exclusively on Microsoft Entra ID managed identities and role-based permissions, with local API keys completely disabled.
Your prompts and completions process strictly within your designated geographical boundaries, protected by default encryption and content safety filters. Usage remains constrained by token quotas, API Management policies, and continuous monitoring through Log Analytics and Defender for Cloud. Microsoft's contractual terms confirm your data is not shared or used to train foundation models.
Make your private AI work for your business
The setup in this guide gives your organization a private, secured AI model in your own Azure subscription. On its own, the model knows nothing about your organization. It becomes truly useful when connected to your own data. Documents like policies, contracts, and manuals connect through Azure AI Search and Storage behind the same private endpoints, allowing the model to cite your own files in its answers.
Business records in your CRM, ERP, billing, and operations systems require a different approach. A standard chat model can look up a single row, but it cannot find patterns across years of linked records. CloudCentric connects both types of data. For business records, CloudCentric uses its own prediction approach for linked records. You can ask complex questions about customer churn or location targets in one line and receive answers from your history without a months-long data science project.
Sources
- Data, privacy, and security for Foundry Models sold by Azure
- Foundry Models sold by Azure abuse monitoring
- Understanding deployment types in Microsoft Foundry Models
- Securing Azure OpenAI inside a virtual network with private endpoints
- Azure Private Endpoint private DNS zone values
- Configure Azure OpenAI with Microsoft Entra ID authentication
- Disable local authentication in Foundry Tools
- Microsoft.CognitiveServices/accounts template reference
- Conditional Access overview
- Content filtering for Microsoft Foundry Models
- Monitor Azure OpenAI
- AI threat protection in Microsoft Defender for Cloud
- Microsoft Purview protections for generative AI apps
- Manage Azure OpenAI quota
- Create and manage budgets in Cost Management
- API Management llm-token-limit policy
- HIPAA, Azure Compliance
- Azure services in FedRAMP and DoD audit scope
To discuss setting up private AI infrastructure inside your organization's Azure environment, contact the team at CloudCentric by calling (844) 422-7000.