Azure OpenAI comes with built-in enterprise security features: private networking, Microsoft Entra ID access control, encryption, content filtering and abuse monitoring. This guide shows what each feature protects, what Microsoft documents about data use, and what remains your job. The facts below were checked against Microsoft Learn in October 2026. Features and names change (the service is now documented as "Azure OpenAI in Microsoft Foundry Models"), so confirm on the linked pages before a decision.
Short answer. Microsoft states that your prompts, completions, embeddings and training data are not available to other customers or to OpenAI, and are not used to train generative AI foundation models without your permission. Network isolation, access control and monitoring, however, are things you configure yourself.
What is covered: security features and what they protect
| Feature | What it protects |
|---|---|
| Private endpoint with public network access disabled | Traffic to your resource stays on your private network |
| Microsoft Entra ID and Azure RBAC | Who can call the models and who can manage the resource |
| Managed identities | Applications authenticate without a stored key |
| Encryption at rest, optional customer-managed keys | Data stored by the service (uploaded files, fine-tuning data, stored threads) |
| Guardrails (content filters) | Harmful content in prompts and outputs, and prompt attacks |
| Abuse monitoring | Detects use that breaks Microsoft's code of conduct (operated by Microsoft) |
| Geography, DataZone and Global deployment types | Where your prompts are processed |
| Azure Monitor and diagnostic logs | Visibility on usage and changes |
| Azure Policy | Keeps configurations compliant over time |
Data privacy: what Microsoft commits to
According to Microsoft Learn, prompts and completions, embeddings and training data are not available to other customers, not available to OpenAI, and not used to improve Microsoft or third-party products without your explicit permission. The models are stateless: nothing is stored in the model itself. The Microsoft Products and Services Data Protection Addendum governs the processing.
Two points deserve attention for confidential data:
- Abuse monitoring. Classifiers score prompts and completions. Flagged samples can be reviewed automatically, including by AI models, and by authorised Microsoft staff when automated review is not enough. For deployments in the European Economic Area, those reviewers are located in the EEA. Customers who meet additional eligibility criteria can apply to modify abuse monitoring, which switches off the storage and human review step.
- Features that store data. The Responses API, Assistants threads, stored completions, file uploads and fine-tuning keep data in your resource, in the geography you chose. You can delete it at any time. Preview features may follow different rules.
Where your data is processed: deployment types
The deployment type decides where inference happens:
- Standard (Azure geography): prompts are processed in the geography you selected, and may move between regions of that geography for operational reasons.
- DataZone: processing can happen anywhere in the data zone. For a resource in an EU member state, that means EU member states.
- Global: processing can happen in any geography where the model is deployed.
For Global and DataZone deployments, data stored at rest stays in the geography of your resource. For strict residency requirements, check the deployment type and the regions available for your model before building anything.
Network: private endpoint and VNet
- Create a private endpoint for the Azure OpenAI resource in your virtual network.
- Configure private DNS so the resource name resolves to the private address.
- Disable public network access on the resource. Microsoft documents this for Azure OpenAI and for the services around it (Azure AI Search, storage).
- Use network security groups and subnet design to control which workloads reach the endpoint.
Note that a private endpoint protects the network path. It does not replace authentication or content controls.
Identity and access: Entra ID, RBAC, managed identities
Prefer Microsoft Entra ID over API keys. Entra authentication requires a custom subdomain on the resource. The built-in roles matter:
- Cognitive Services OpenAI User: can make inference calls with Entra ID, cannot read keys, create deployments or change settings. This is the right role for most applications and users.
- Cognitive Services OpenAI Contributor: adds deployments, fine-tuning and stored completions.
- Cognitive Services Contributor: can create resources and view or regenerate keys, but cannot make inference calls with Entra ID.
Use a managed identity (system-assigned for one resource, user-assigned when shared) so an application has no secret to store or rotate. Where a key cannot be avoided, keep it in Azure Key Vault and out of the code. Add multi-factor authentication, conditional access and Privileged Identity Management for administrators in Entra ID.
Encryption and customer-managed keys
Data stored by the service is encrypted at rest with AES-256 by default, using Microsoft-managed keys. You can add a customer-managed key held in Key Vault; some preview features may not support it. Be careful with this option: the resource uses a managed identity to reach the key, and removing that access makes the encrypted data unreadable.
Guardrails (content filters)
Microsoft's guardrails, formerly called content filters, classify violence, hate, sexual content and self-harm in both prompts and completions. The default blocks content at medium or high severity, and prompt-attack detection (jailbreak) is on by default. Protected material detection for text and code is also on by default. Indirect prompt attack detection is off by default and has to be enabled. You can adjust thresholds per deployment; turning filters off needs Microsoft approval. Microsoft itself notes that classifiers produce false positives and false negatives, so test them with content from your own use case.
Monitoring and policy
- Send diagnostic logs and metrics to Log Analytics through Azure Monitor, and create alerts on unusual usage.
- Use the Azure activity log to see who changed the resource.
- Use Azure Policy to restrict regions, require diagnostic settings and deny public network access, then follow compliance in the policy dashboard.
- Review role assignments regularly and rotate any remaining keys.
Compliance: what the platform gives you and what it does not
Azure publishes its compliance offerings, and the data protection addendum governs how Microsoft processes your data. This helps you document your own compliance with the Swiss nLPD and the GDPR, but it does not make your use case compliant. You still need a legal basis, a data inventory, access rules, retention rules and, for personal data, a risk assessment. Do not enter confidential data until these points are settled.
Deployment checklist
- Choose the deployment type and region against your residency needs.
- Create the private endpoint, configure DNS, disable public network access.
- Grant Cognitive Services OpenAI User through Entra ID; remove standing keys where possible.
- Review the guardrail configuration with real examples.
- Decide on customer-managed keys and on modified abuse monitoring if your data requires it.
- Enable diagnostic logs, alerts and Azure Policy.
- Separate development, test and production, and use anonymised data outside production.
- Review access and configuration on a schedule that fits your risk level.
Common mistakes
- Creating a private endpoint but leaving public network access enabled.
- Leaving API keys in code or configuration when an identity is available.
- Granting Contributor or Owner where OpenAI User is enough.
- Selecting a Global deployment without checking where prompts may be processed.
- Treating content filtering as a complete safety guarantee.
- Assuming that Azure compliance offerings cover your own obligations.
Need a private AI setup for your company without building it yourself? See Swiss GPT or contact us.