Does the Azure MCP server security model meet our Azure access requirement?
The Azure MCP Server enforces access through the Azure identity and role-based access control (RBAC) roles of whoever or whatever runs it, so the server can read and change only what that identity can. No separate edition or plan gates this model. Read-only mode and elicitation are server options that narrow the server further, and both have to be switched on deliberately. The first question for your team is which identity the agent will run as, because that identity sets the ceiling for every tool call, whatever the prompt asks for.
Start by scoping the identity. Create a dedicated principal for the agent, assign it the narrowest built-in or custom RBAC roles that cover the resource types it needs, and check the assignments at subscription, resource group and resource scope. Then set the server options you intend to keep: the read-only option defaults to false, so write operations stay available until someone enables it, and the server mode defaults to namespace. Confirm the elicitation behavior for tools that handle Key Vault secrets, connection strings and certificate private keys, and make sure no one has disabled that confirmation. Test these settings in a non-production subscription before any staff member connects a client.
The gaps sit where the server's controls stop. Flags that block destructive operations are not standardized in the MCP specification, so a client may ignore them, which means RBAC and the read-only option carry the real enforcement. Ask the team to confirm which MCP clients it will allow, whether each client honors the server's settings, and who can change the server configuration on a developer machine. Also confirm whether the Azure MCP Server version in use matches the one your reviewers approved, since the Azure MCP Server README documents the current options and defaults.
Which access controls are built in, optional or missing
This table sorts each access control for the Azure MCP Server into one of four groups: built in, an optional server setting, an Azure-side control, or not supported. Read it as a checklist of what you must configure yourself before approving the server for staff or agents. Edition and licensing terms for these controls were not part of the supplied research, so confirm them with Microsoft before you rely on any of them.
| Control | Status | What it does and what to confirm |
|---|---|---|
| Azure RBAC inheritance | Azure-side control | The server acts with the Entra ID identity running it, so it can read and change whatever that identity's RBAC roles allow. Confirm which roles your team uses and scope them tightly. |
| Tool availability by subscription permission | Built in | Tool availability reflects the user's Azure subscription permissions. Tools are disabled by default in supported hosts. Verify this behavior in each host you approve. |
| Read-only mode | Optional server setting | When set to true, no write operations are allowed. The default is false, so you must enable it deliberately for read-only use cases. |
| Elicitation for sensitive tools | Built in | Tools that handle Key Vault secrets, connection strings and certificate private keys ask the user to confirm before they run. Confirm how your chosen host displays these prompts. |
| Disabling elicitation | Optional server setting | An option turns off the confirmation step. Microsoft labels it not recommended and says never to use it in production or with untrusted input. |
| Server mode (namespace, consolidated, all, single) | Optional server setting | Namespace is the default mode. The other modes change how many tools are exposed at once. Choose the narrowest mode that meets the use case. |
| HTTP versus STDIO transport | Optional server setting | The authentication guide recommends HTTP for production hosting. If STDIO is required, set AZURE_TOKEN_CREDENTIALS=prod to limit the credential chain to non-interactive credentials. |
| Destructive-action flags in MCP | Not supported | The NuGet package notes that flags preventing destructive operations are not standardized in the MCP specification and may not be supported by every client. Do not rely on client-side flags alone. |
How Azure RBAC and the server options decide what an agent can change
Azure RBAC is the control that decides what an agent can change, and the server's own flags only narrow what it will attempt. The enforcement chain runs in four steps. The MCP client launches the Azure MCP Server, the server authenticates through Entra ID using the Azure Identity library, and each operation the agent requests is authorized against the Azure RBAC role that the signed-in identity holds on the target subscription, resource group or resource. The Microsoft Learn overview states that tool availability reflects the user's Azure subscription permissions, so a identity with only read roles should not be able to write, whatever flags the client passes. Before rollout, confirm which identity the client will use (a developer's own sign-in, a service principal or a managed identity) and review the roles it holds at each scope.
The server options sit in front of that check. The read-only option, which the Microsoft Learn tools overview documents with a default of false, blocks write operations inside the server. Elicitation sits at a different point: tools that handle sensitive data, such as Key Vault secrets, connection strings and certificate private keys, require user confirmation before they run. The server mode, which defaults to namespace with consolidated, all and single as alternatives, changes how tools are exposed to the client and therefore how much surface the agent can see. These settings reduce what the agent is offered and what it may do without a human step. They do not grant or remove any permission in Azure, and the NuGet package page warns that flags preventing destructive operations are not standardized in the MCP specification and may not be honored by every client.
Treat the flags as guardrails and RBAC as the authoritative control. An identity that holds Contributor on a production subscription can still delete resources if a client skips or disables confirmation, which the tools overview labels not recommended and says never to use in production or with untrusted input. A practical check for the security reviewer is to run the intended client against a non-production subscription with a read-only role, confirm that write attempts fail at Azure, and then confirm that read-only mode, elicitation and the chosen server mode behave as the written configuration says. The reviewer should record which role assignments and which server flags are approved, because the approval covers the combination.
Which tool groups carry the highest risk
The Azure MCP Server acts with whatever Azure RBAC permissions the signed-in identity holds, so the riskiest tools are the ones that expose secrets or change resources. The groups below are the ones to map to RBAC roles and decide on before any client is approved.
Key Vault secret access
Tools that read Key Vault secrets return credentials that other systems trust. Microsoft's tools overview says these tools require user confirmation (elicitation) before they run. Pull the current tool list from the tools overview, identify which Key Vault operations exist, and confirm that the identity running the server holds no broader vault role than the task needs. Ask whether the confirmation step is enforced in the hosts your staff use.
Tools overviewConnection strings
Connection strings carry database credentials and endpoints in a single value, so a read exposes working access to the data store. Treat them as sensitive data in the same class as secrets. Check the tools overview for every operation that returns connection strings, and map each one to the narrowest data-plane role your team uses. Confirm that elicitation applies to these tools in your chosen server mode.
Certificate private keys
Certificate private keys let a holder impersonate a service, sign code, or decrypt traffic, and a leaked key is hard to contain once copied. The tools overview groups them with other sensitive data that requires confirmation. Ask which certificate operations are exposed, whether any return key material rather than metadata, and which RBAC role grants that read. Keep private key access out of any role given to general developer identities.
Resource creation and deletion
Creating or deleting resources changes cost, availability and data retention. An agent that deletes a resource group or a database can cause outages that are not easily reversed. Confirm which create and delete operations the server exposes, and whether your Azure RBAC roles on subscriptions and resource groups allow them. Limit subscription-level contributor access for agent identities and review deletion rights on production scopes first.
Configuration changes
Configuration changes such as network rules, identity settings, diagnostics or app settings can weaken security without any visible outage. A changed firewall rule or a disabled log setting may go unnoticed. Review every operation that writes configuration, and decide with your platform team which ones agents may run at all. Use the read-only option to block all write operations for review environments, and remember that its default is false.
How the answer changes by client, identity and deployment
On a developer workstation, the server usually runs locally inside a supported host such as Visual Studio Code, Visual Studio, Eclipse, Cursor, Windsurf, IntelliJ or Cline. It signs in through Entra ID using the identity the developer already has, so the reach of the server equals that person's Azure RBAC role assignments across subscriptions. Tools are disabled by default in supported hosts, but a developer who enables them inherits everything their account can change.
- Identity: the personal Entra ID account, so the blast radius is whatever that individual can reach, including roles granted for unrelated projects.
- Tool enablement: confirm which tools the developer switched on in the host and whether the read-only option is set.
- Credential chain: interactive sign-in is possible here, so confirm which credential sources the local setup can use.
- Confirmation prompts: keep elicitation on for tools that handle Key Vault secrets, connection strings and certificate private keys.
- Visual Studio builds: in Visual Studio 2022 version 17.14.30 or later, tools ship with the Azure development workload, so check whether that workload is installed on managed machines.
Confirm with your Azure administrators which subscriptions a developer's account can reach, and whether a personal role on a production subscription is acceptable for workstation use.
A shared setup gives several people or jobs one non-personal identity, such as a managed identity or a service principal, so the server acts with one fixed set of role assignments. This makes the audit trail less attributable to individuals, but it also lets you scope one identity tightly. The least-privilege advice in the server's package documentation applies most directly here, because the role set is chosen once and reused by every caller.
- Role design: grant built-in or custom roles limited to the resource groups the team actually changes, and avoid subscription-wide owner or contributor grants.
- Read-only default: where the team only needs to inspect resources, enable the read-only option so no write operations run.
- Server mode: the default namespace mode is documented, so confirm which mode the team uses and that the tool list matches its needs.
- Attribution: record which application or pipeline uses the identity, since the server cannot tell you which person prompted each action.
- Credential handling: for STDIO use, the authentication guide says to set AZURE_TOKEN_CREDENTIALS=prod to limit the chain to non-interactive credentials.
Ask Microsoft and your Entra ID administrators whether the identity you plan to use can be restricted to named resources and how sign-in events are logged for that identity.
Microsoft Learn documents two self-hosted remote deployments of the Azure MCP Server, one for Microsoft Foundry and one for Copilot Studio. Both use the Azure Developer CLI (azd) and Azure Container Apps. In this model, your organization owns the container, its networking and its identity, so the controls become infrastructure decisions as well as server settings. The authentication guide recommends HTTP transport for production hosting.
- Transport: use HTTP transport for production, as the authentication guide recommends, and keep STDIO for local use only.
- Managed identity: assign the container app's identity only the roles it needs, and review them after each deployment.
- Network exposure: confirm whether the endpoint is reachable from the public internet, and restrict ingress to the calling service where your platform allows it.
- Read-only and confirmation settings: set them in the deployment configuration, then test them against the live endpoint.
- Upgrades: confirm how the deployed image is versioned and updated, since the server source is maintained in the official repository.
Confirm with Microsoft which Foundry or Copilot Studio features call the server, what each caller's identity can reach, and what the hosting platform records in its own logs.
When an agent reads documents, tickets, emails or web content that may contain attacker-written instructions, the server should be treated as a high-consequence tool. Prompt injection can push an agent to call a write or secret-reading tool with the access of the signing identity. In regulated environments, the question is less about whether the server works and more about whether each action can be prevented, confirmed or traced.
- Writes off: enable the read-only option for any agent that processes untrusted input, and grant writes only in separate, reviewed workflows.
- Elicitation kept on: do not disable the confirmation for sensitive tools, because the documentation says disabling it is not recommended and should never be used in production or with untrusted input.
- Least privilege: keep the identity away from Key Vault data-plane roles unless a specific task needs them.
- Separate environments: keep test, production and regulated subscriptions under different identities and hosts.
- Evidence: keep records of configuration, role assignments and approval decisions for assessors.
Before approving use with regulated data, confirm with your compliance team and with Microsoft which audit records the server itself produces, since the server's own logging behavior is not covered in this section.
Order of work before production use
This sequence moves the Azure MCP Server from an open-ended identity with broad access to a scoped, logged and tested setup that a security reviewer can approve. Each step produces a record that the next step depends on, so skipping one leaves a gap in what the agent can reach.
Inventory the Azure scopes the agent may reach
The cloud or platform owner lists every subscription, resource group and resource type the agent is expected to touch, and separately lists the workloads it must never reach. Because the server acts with the permissions of whatever identity runs it, this inventory is the baseline for every later decision. It is done when the list has been signed off by the owner of each subscription, and the excluded scopes are written down with the reason for each.
Create or select least-privilege RBAC roles
The Azure administrator checks which built-in roles already exist for the inventoried scopes and drops any broader role that grants more than the agent's task needs. Where no built-in role fits, a custom role is defined with only the actions required. The Microsoft tools documentation and the NuGet package both advise least-privilege roles and safeguards before deployment. The step is complete when each role assignment can be explained against a specific task and the reviewer can see that no subscription-wide owner or contributor role was granted by default.
Choose a dedicated identity
The platform team creates a separate Entra ID identity for the agent, rather than reusing a personal account or a shared administrator identity. Access is then tied to one non-human principal whose role assignments can be reviewed, rotated and removed without affecting people. Confirm the identity type your environment supports, since the server authenticates through Entra ID using the Azure Identity library. The step is done when sign-in logs show the dedicated identity, and no other identity holds the same assignments.
Set read-only mode where writes are not needed
For discovery, reporting and inventory tasks, the team turns on the read-only option, which blocks all write operations. The default is false, so this setting must be applied deliberately in each host configuration. Because not every client may honor flags that prevent destructive operations, the RBAC role from the previous step remains the actual enforcement point. The step is verified by attempting a write through the agent in a test subscription and confirming it is refused.
Decide on elicitation for sensitive tools
The security lead lists which tools touch Key Vault secrets, connection strings or certificate private keys, and confirms that user confirmation (elicitation) stays on for them. The documentation labels the option to disable confirmation as not recommended and advises against using it in production or with untrusted input. Record the decision in the design file with the named owner who accepts the risk if any confirmation is turned off. The step is complete when a test request for a secret triggers a confirmation prompt.
Choose HTTP transport for production hosting
The platform team selects HTTP transport for any shared or production deployment, following the Authentication guide's recommendation. If a local STDIO setup is unavoidable, the team sets AZURE_TOKEN_CREDENTIALS=prod so the credential chain uses only non-interactive credentials. Confirm where the server runs, who can reach its endpoint and which network controls apply, because a self-hosted remote deployment exposes the server to more callers than a developer workstation. The step is done when the transport and credential settings are written into the deployment configuration and reviewed.
Test and retest after every change
The security team runs a test script against the configured agent that covers allowed reads, blocked writes, confirmation prompts for sensitive tools and an attempt to reach an out-of-scope subscription. Failures are logged with the role, setting or tool responsible. Any change to roles, identity, transport or confirmation settings triggers a repeat of the full test set before the setup returns to use. The step is closed when the test results, the signed-off role list and the change record are stored together for the reviewer.
How a tool call is authorized from client to Azure
The flow starts when an AI client such as Visual Studio Code or Cursor asks the Azure MCP Server to run a tool. The server obtains an Entra ID token through the Azure Identity library, so the call carries the identity of whoever or whatever runs the server. Azure RBAC then decides whether that identity can act on the target subscription or resource. Before a sensitive tool runs, elicitation asks for user confirmation, and read-only mode blocks write operations outright. Check the RBAC role first, then both server-side gates, and confirm that Azure activity logs record the result.
Gates a tool call passes through before Azure accepts or rejects it.
What a security reviewer asks to see
This table lists the evidence a reviewer should request before approving the Azure MCP Server, and where in Azure or the tool each item comes from. Use it as a request list: if an item cannot be produced, the setup is not yet ready for review. The main takeaway is that the server acts with whatever the bound identity can do, so role assignments and the server settings matter more than the tool itself.
| Evidence item | Where it comes from | What to check |
|---|---|---|
| RBAC role assignments for the agent identity | Azure portal, subscription or resource group access control (IAM) blade, or Azure CLI role assignment listings | Confirm the identity holds only the roles needed for its tasks, with no broad Owner or Contributor grants at subscription scope |
| Custom role definitions | Azure portal role definitions, or the JSON of each custom role | Confirm the custom role lists only the actions the agent needs and that data actions for secrets are excluded where possible |
| Read-only setting value | The server configuration that sets the read-only option (default false) in the host's MCP configuration | Confirm the value is true for agents that only need to read, and that the setting is applied in the host the users actually run |
| Elicitation configuration | Server configuration for the confirmation prompt on sensitive tools such as Key Vault secrets, connection strings and certificate private keys | Confirm confirmation is enabled and that no setting disables it, since the vendor advises against disabling it in production |
| Transport and credential chain settings | Server launch settings for transport (STDIO or HTTP) and the AZURE_TOKEN_CREDENTIALS value | For STDIO, confirm AZURE_TOKEN_CREDENTIALS is set to prod; for hosted use, confirm HTTP transport and the identity the host uses |
| Server mode in use | Server mode setting in the tool configuration (namespace is the default; consolidated, all and single are the alternatives) | Confirm the mode exposes only the tool groups the team needs, and record any change from the default |
| Pinned package version | Version of the Azure.Mcp NuGet package or the release deployed, recorded in the project or deployment files | Confirm the version is pinned and recorded, and that the team has a process to review updates before upgrading |
| Azure activity log records | Azure Monitor activity log for the subscription, filtered to the agent identity | Confirm write and delete operations by the agent identity appear and can be traced to a user, session or change request |
Questions buyers ask before approving the Azure MCP server
Does using the Azure MCP Server require a paid Azure edition?
The supplied facts do not state that a particular paid Azure edition or license is required, so do not assume one either way. Confirm with Microsoft and your Azure account team which subscription types and support plans apply to your tenant. What the server can do is governed by the Azure identity that runs it: the Microsoft Learn overview says it uses Entra ID through the Azure Identity library, and tool availability reflects the user's Azure subscription permissions. Ask your licensing contact to confirm whether any cost attaches to the server itself, to the Azure resources it touches, or to the host client you plan to use, since those are separate line items.
Who configures Azure RBAC for the MCP server and what drives the effort?
Your Azure administrators own the role assignments, because the server acts with whatever Azure RBAC permissions the signed-in identity holds. The NuGet package page for Azure.Mcp warns that clients can read and change whatever that identity can, and advises least-privilege roles and safeguards before deployment. Effort rises with the number of subscriptions, resource groups and resource types an agent needs, the number of identities (users, service principals or managed identities) in use, and how many custom roles you must write. It falls when you start from a narrow reader role and add write permissions only for named workflows. Ask any implementation partner to show the role inventory and the scope of each assignment in its written quote.
Can our own platform or security team deploy and lock this down internally?
Yes, many teams do this internally, provided they have people who understand Azure RBAC, Entra ID sign-in and the MCP server's options. The main skills are mapping agent tasks to least-privilege roles, choosing a server mode and read-only setting, deciding how elicitation is handled, and reviewing the host client's own permission settings. Microsoft Learn documents two self-hosted remote deployments, for Microsoft Foundry and Copilot Studio, that use the Azure Developer CLI and Azure Container Apps, so the team also needs container and deployment experience if it hosts the server remotely. Teams that want an outside check can ask DeployOpen for an AI agent rollout security review, which tests permissions, credential handling and admin settings and delivers a findings report with fixes and a retest.
What drives the cost and effort of an Azure MCP Server rollout up or down?
Cost is mostly staff time and any external testing, since the supplied facts do not give license prices for the server. Effort rises with the number of agent use cases, the sensitivity of the subscriptions involved, the number of host clients (such as Visual Studio Code, Cursor or Copilot Studio), and whether you host the server remotely in your own Azure environment. It falls when you reuse existing Entra ID groups, standardize one approved set of roles, and limit the server to read-only mode for the first phase. Recurring work includes reviewing role assignments as projects change and retesting after the server or client updates. Ask for a quote that lists each one-time task (role design, configuration, testing) separately from each recurring task (reviews, retests, upgrades).
Does read-only mode stop every write the Azure MCP Server can make?
Read-only mode blocks write operations only when it is enabled, and the Microsoft Learn tools overview says the default is false. The overview describes it as a setting under which no write operations are allowed, so confirm the exact flag name and behavior in the version you deploy. Treat it as one control, not the whole boundary. The NuGet page notes that flags preventing destructive operations are not standardized in the MCP specification and may not be supported by every client, so the host client may ignore or not pass the setting. Pair read-only mode with a reader-level Azure role, so that a write attempt fails at the Azure layer even if the server setting is wrong. Test this in a non-production subscription before you rely on it.
Does elicitation protect every sensitive tool in the Azure MCP Server?
No. The Microsoft Learn tools overview says tools that handle sensitive data, such as Key Vault secrets, connection strings and certificate private keys, require user confirmation before they run. It also describes an option to disable that confirmation, which the overview labels not recommended and says never to use in production or with untrusted input. Confirmation covers the tools Microsoft classifies as sensitive, so reviewers should not assume that a risky write or delete outside that list is gated. Ask Microsoft to confirm the current list of tools that trigger elicitation for the version you deploy, and check that no configuration turns the prompt off in production. Test the prompt behavior in your host client, because the confirmation flow depends on the client.
What should we ask Microsoft and our reviewers to confirm before approval?
Ask Microsoft to confirm the tools that trigger elicitation, the exact read-only flag and its default in your version, and the server mode you will use (the overview lists namespace as the default, with consolidated, all and single as other options). Ask which hosts support the server, and whether the MCP specification gaps around destructive-action flags affect your client. Ask your Azure administrators to produce the role assignment list, the subscriptions in scope and the identities that will run the server. For a self-hosted deployment, ask which telemetry leaves your tenant and where it is sent. Reviewers should check the source license (the README badge shows MIT), the Authentication guide's advice on HTTP transport for production hosting, and whether STDIO is used with AZURE_TOKEN_CREDENTIALS set to prod.
What to confirm with Microsoft and your own environment
The sources settle the broad controls, but several details that decide whether a restriction holds still need confirmation before approval. Start with the tool list for the release you will deploy, because the set of tools changes between releases and the overview is not a fixed inventory. Ask Microsoft which tools in your release touch Key Vault secrets, connection strings or certificate private keys, and check that the list matches what your reviewers expect. Also confirm how each server mode (namespace, consolidated, all and single) groups those tools, since the mode changes what an agent sees and can call.
Next, confirm how each host behaves, not just the server. The NuGet package notes that flags preventing destructive operations are not standardized in the MCP specification and may not be supported by all clients. For every client you plan to allow (Visual Studio Code, Visual Studio, Eclipse, Cursor, Windsurf, IntelliJ and Cline), ask the vendor or test directly whether a read-only setting is honored, and whether elicitation prompts appear before sensitive tools run. A host that drops or ignores the prompt would bypass the confirmation step without any warning. The Azure MCP Server README is the natural starting point for the current option names.
Test all of this in a non-production subscription with a dedicated test identity and a role scoped to that subscription. Record, for each client and server mode: the tools returned, whether a write was blocked under read-only, whether a secret read prompted for confirmation, and which RBAC role was in effect. Keep these results, the release version tested and the Microsoft answers in the approval file, and repeat the test after each server upgrade or client update. Without that record, a reviewer cannot confirm that the controls you approved are the ones that run.
How DeployOpen tests and governs an Azure MCP server rollout
DeployOpen approaches Azure MCP server security as a fixed-scope engagement inside your own environment. We test how the server behaves under the identities and roles you assign, then deliver fixes, documentation and a retest so your security and compliance teams can review the result.
How we scope
- Agree in writing which Azure subscriptions, resource groups and identities the Azure MCP Server may reach
- Map which tool groups your staff and agents would use, and flag the high-risk ones for review
- Confirm the host clients in use, such as VS Code, Visual Studio, Cursor or Copilot Studio, before testing starts
- Fix deliverables and timelines in the written scope before any work begins, since engagements are fixed-scope
How we build
- Configure the server with read-only mode where your scope calls for it, and record the setting used
- Set up least-privilege Azure RBAC roles for the test identities, then compare what each role can actually change
- Verify that elicitation stays enabled for tools that handle Key Vault secrets, connection strings and certificate keys
- Test prompt injection and misuse paths against the running server, including attempts to trigger destructive operations
How we hand over
- Deliver a findings report that lists each issue, its severity, reproduction steps and the recommended fix
- Document the final role assignments, server mode, transport and credential settings for your review team
- Provide a retest after fixes so you can confirm each finding is closed in your own environment
- Prepare control evidence that your auditors can examine, noting that DeployOpen does not issue audit reports or certifications
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the initial engagement
- Re-test the setup when the Azure MCP Server version, host client or role assignments change
- Review new tool releases against your written scope so changes to permissions are caught early
- Confirm with your Microsoft account team or Microsoft Learn documentation any vendor behavior that affects your scope

