Azure OpenAI vs Bedrock: Compare Actual Controls
Azure and Bedrock both keep the model maker away from your prompts. They differ on retention control, human review, logging and routing, and none of those settings follows a migration automatically.
- Topics
- Confidential Computing
- Level
- Founder / builder
- Read
- 4 min
- Published
- 2026-11-12
- Reviewed
- 2026-11-12
The problem
On October 3, 2025, Microsoft expanded its data, privacy and security page from Azure OpenAI to all "Models sold by Azure," and added clarifications on abuse monitoring [1]. On the AWS side, the Bedrock user guide now describes data retention as a mode set per Region, with some of the newest models requiring a mode that lets AWS retain prompts and outputs for human review for up to 30 days [2].
Both pages are current, detailed and different. That is the problem for a startup moving its assistant from one cloud to the other, or running both. The model names look alike and the marketing says the same thing: your data is not used to train the model. Underneath, the controls that decide exposure sit in different places, have different defaults and are verified in different ways.
The common failure is assuming settings travel. A team that turned off abuse monitoring storage on Azure, then moves to Bedrock, inherits Bedrock's defaults. A team that set Bedrock retention to none in one Region deploys to a second Region and inherits that Region's default. Neither change shows up in a code review, because neither lives in the code.
How it works
The diagram lists seven control surfaces. Compare them one by one, from the configuration you actually run.
Account identity. Both bill and authenticate through your own cloud account. On Bedrock, every invocation log record carries the IAM principal's ARN [6]. On Azure, requests run against a Foundry resource in your subscription [1].
Endpoint region. Azure decides processing location by deployment SKU: Global, Data Zone or geography-bound [4]. Bedrock decides by model ID: a Region-specific ID, a geographic profile, or a global. profile that may route to any supported commercial Region [7].
Invocation logging. Two different things share the name. Provider-side storage for abuse review: Azure stores flagged prompts for possible human review unless the customer is approved for modified abuse monitoring, and the approved state is readable as ContentLogging set to false [1][3]. Customer-side logging: Bedrock's model invocation logging is disabled by default, and once enabled it keeps full requests and responses in your account until you delete the configuration [6].
Provider training terms. Both wall off the model maker. Microsoft states prompts and completions are not available to OpenAI or other model providers and are not used to train their models [1]. AWS runs each provider's models in deployment accounts the provider cannot access [5].
Application persistence. Stateful features store content on both platforms. On Azure, the Responses API, Assistants threads and stored completions persist in the resource's geography, with an optional customer-managed key [1]. On Bedrock, the Responses API's store flag defaults to true under the default retention mode, and the zero retention mode rejects store=true [2].
Model access. Retention requirements gate models. On Bedrock, a model whose minimum mode is aws_review is unavailable to an account set to none [2]. On Azure, some advanced models have stricter criteria for turning off abuse monitoring [3].
Support responsibilities. On Azure, human reviewers are authorized Microsoft employees using secure access workstations with just-in-time approval, located in the EEA for EEA deployments [3]. On Bedrock, aws_review means AWS reviews content inside the AWS boundary and does not share it with the provider [2].
Compare configured controls, not brands
Fig. 15| Dimension | Azure OpenAI | Amazon Bedrock |
|---|---|---|
| Account identity | Record setting, date, source | Record setting, date, source |
| Endpoint region | Record setting, date, source | Record setting, date, source |
| Invocation logging | Record setting, date, source | Record setting, date, source |
| Provider training terms | Record setting, date, source | Record setting, date, source |
| Application persistence | Record setting, date, source | Record setting, date, source |
| Model access | Record setting, date, source | Record setting, date, source |
| Support responsibilities | Record setting, date, source | Record setting, date, source |
By the numbers
- Bedrock retention for models that require AWS human review [2]
- up to 30 days
- Bedrock retention modes, from none to inherit, set per Region [2]
- 5
- request and response bodies held inline per Bedrock invocation log record [6]
- 100 KB
- token saving from Bedrock global routing, the trade against residency [7]
- ~10%
- discount on Azure Global Batch, processed in any Azure region [4]
- 50%
| Control | Azure OpenAI (Foundry) | Amazon Bedrock |
|---|---|---|
| Account identity | Foundry resource in your subscription [1] | IAM principal, logged as ARN [6] |
| Endpoint region | Deployment SKU: Global, Data Zone or Standard [4] | Model ID: Regional, geographic or global. profile [7] |
| Invocation logging (provider review store) | On by default, off only after modified abuse monitoring approval [3] | Retention mode per Region: none, default, aws_review [2] |
| Invocation logging (your account) | Your own diagnostics choice | Off by default, kept until configuration deleted [6] |
| Provider training terms | Not available to OpenAI, not used to train [1] | Providers have no access to deployment accounts [5] |
| Application persistence | Responses, threads, stored completions in geography, CMK optional [1] | Responses store defaults true unless mode is none [2] |
| Model access | Some models have stricter monitoring criteria [3] | Models requiring aws_review unavailable under none [2] |
| Support responsibilities | Microsoft reviewers on secure workstations with just-in-time approval, in the EEA for EEA deployments [3] | AWS reviews inside the AWS boundary under aws_review, your configuration under shared responsibility [2][5] |
The real difference is who turns retention off and how. On Bedrock you set it yourself, per Region, through an API, and can lock it with an SCP condition on bedrock:DataRetentionMode [2]. On Azure you apply for modified abuse monitoring and then verify the ContentLogging flag on the resource [1][3]. The 30-day figure shows the cost of the newest models on Bedrock: some require human review retention, so a zero retention account cannot use them [2].
Implementation
Take a dated snapshot of the exact configuration on both clouds, store it in the repository and diff it on every change. The script reads only documented settings: the Azure resource's capabilities and deployments, Bedrock's invocation logging configuration and its account retention mode.
import json, os, subprocess
from datetime import datetime, timezone
import boto3, requests
def az(*args):
out = subprocess.run(["az", *args, "-o", "json"], check=True,
capture_output=True, text=True).stdout
return json.loads(out)
def azure_snapshot(name: str, rg: str) -> dict:
acct = az("cognitiveservices", "account", "show", "-n", name, "-g", rg)
caps = {c["name"]: c.get("value") for c in acct["properties"].get("capabilities", [])}
deps = az("cognitiveservices", "account", "deployment", "list", "-n", name, "-g", rg)
return {
"location": acct["location"],
# Present as "false" only when abuse monitoring storage is off.
"content_logging": caps.get("ContentLogging", "absent"),
"key_source": acct["properties"].get("encryption", {}).get("keySource"),
"deployment_skus": sorted({d["sku"]["name"] for d in deps}),
}
def bedrock_snapshot(region: str) -> dict:
log = boto3.client("bedrock", region_name=region) \
.get_model_invocation_logging_configuration().get("loggingConfig", {})
retention = requests.get(
f"https://bedrock.{region}.amazonaws.com/data-retention",
headers={"Authorization": f"Bearer {os.environ['AWS_BEARER_TOKEN_BEDROCK']}"},
timeout=10).json()
return {
"region": region,
"retention_mode": retention.get("mode"),
"invocation_logging": bool(log),
"text_logged": log.get("textDataDeliveryEnabled", False),
}
if __name__ == "__main__":
snap = {"taken_at": datetime.now(timezone.utc).isoformat(),
"azure": azure_snapshot(os.environ["AZ_RESOURCE"], os.environ["AZ_RG"]),
"bedrock": [bedrock_snapshot(r) for r in ("eu-central-1", "eu-west-1")]}
json.dump(snap, open("controls-snapshot.json", "w"), indent=2)Snapshot every Region you deploy to. Bedrock's retention setting does not propagate across Regions, and a Region you never configured stays at inherit [2]. Add the snapshot file to code review, so a change in retention or logging is visible next to the code that depends on it.
Test it
Turn the requirements into assertions that run against the snapshot. The same requirement, "no provider-side review storage, no global routing, no full-text logs", is checked on both clouds, which is the point of comparing controls rather than brands.
import json
import pytest
SNAP = json.load(open("controls-snapshot.json"))
UNBOUNDED_SKUS = {"GlobalStandard", "GlobalProvisionedManaged", "GlobalBatch", "DeveloperTier"}
def test_azure_review_storage_off():
assert SNAP["azure"]["content_logging"] == "false"
def test_azure_processing_bounded():
assert not UNBOUNDED_SKUS & set(SNAP["azure"]["deployment_skus"])
def test_azure_customer_managed_key():
assert SNAP["azure"]["key_source"] == "Microsoft.KeyVault"
@pytest.mark.parametrize("region", SNAP["bedrock"], ids=lambda r: r["region"])
def test_bedrock_zero_retention(region):
assert region["retention_mode"] == "none"
@pytest.mark.parametrize("region", SNAP["bedrock"], ids=lambda r: r["region"])
def test_bedrock_no_full_text_logs(region):
assert not region["text_logged"], "invocation logs keep prompts until deleted"Expected result: all tests pass on a configuration that meets the requirement. A failure names the exact control and Region.
- After a migration, replay a synthetic conversation through the new stack and search every log destination for its canary string.
- Call a
global.model ID and an unbounded Azure SKU from test accounts. Expect denials from your SCP and Azure Policy. - Compare the snapshot with the providers' official pages on the day of the review, and record those dates.
- Rerun on every model change. New models can change the required retention mode [2].
Decision
Choose on retention control and on where you already operate.
- If you need to switch provider storage off yourself and prove it, Bedrock's model is simpler: set
noneper Region by API, lock it with an SCP, and accept that some of the newest models will be unavailable [2]. - If you live in Microsoft 365 and Azure, plan for the modified abuse monitoring application before launch, and verify
ContentLoggingonce approved [3]. - On either cloud, your own logging can undo the provider's terms. Treat invocation logging and traces as part of the design [6].
- Keep a dated, diffed snapshot. Cloud comparisons are only valid for a configuration and a date.
Sources
- [1]Data, privacy, and security for Foundry Models sold by Azure (opens in a new tab)Microsoft Learn, May 2026
- [2]Amazon Bedrock data retention (opens in a new tab)AWS, November 2026
- [3]Foundry Models sold by Azure abuse monitoring (opens in a new tab)Microsoft Learn, May 2026
- [4]Understanding deployment types in Microsoft Foundry Models (opens in a new tab)Microsoft Learn, August 2026
- [5]Amazon Bedrock data protection (opens in a new tab)AWS, November 2026
- [6]Monitor model invocation using CloudWatch Logs and Amazon S3 (opens in a new tab)AWS, November 2026
- [7]Global cross-Region inference (opens in a new tab)AWS, November 2026
Technical guidance, not security certification or legal advice.
