Este conteúdo não está disponível em sua língua ainda.
Azure Connector Namespace connects applications to external services such as Office 365 and SharePoint. Aspire models the namespace, authenticated connections, managed MCP server configurations, and access policies together.
Configure Azure provisioning before running or deploying the AppHost. The integration provisions real Azure resources; it doesn’t provide a local connector emulator.
A connection is an authenticated binding to a service. A managed MCP server configuration exposes selected operations from that connection as MCP tools. The current preview supports one connector per managed MCP server configuration.
This example exposes only the Office 365 GetEmailsV3 operation. Replace the tenant and principal IDs with your own Microsoft Entra IDs and verify the connector’s operation IDs against the metadata available in your region.
The worker reference supplies outlook__connectorGatewayName and outlook__connectionName for the Azure Connector SDK. It doesn’t grant access: the connection policy must identify the Entra principal that the worker actually uses. An explicit connection name on the reference can change the consumer’s configuration prefix.
After provisioning, open https://connectors.azure.com/<subscription-id>/<resource-group>/<connector-namespace-name>/overview and authorize connections that require consent. Aspire doesn’t automate consent or store OAuth credentials.
Connection policies grant a specified Entra principal access to the connection. Use WithIdentityAccessPolicy / withIdentityAccessPolicy for a user-assigned managed identity without hard-coding its principal ID.
MCP server policies grant an Entra user or group access to the managed MCP endpoint. This preview doesn’t support service principals or managed identities for MCP access policies.
Operation allow-lists restrict the connector operations exposed as MCP tools. Expose only what your application needs; don’t put credentials or tokens in descriptions or operation metadata.
Use the standard Azure PublishAsExisting / publishAsExisting and AsExisting / asExisting workflows for a namespace. Existing connection and MCP configuration children support AsExisting / asExisting and are emitted as read-only Bicep references.
When adding a new access policy beneath an existing namespace, set the Azure deployment location to the namespace’s location. Bicep can’t read the existing location early enough to assign the child resource location automatically.
The integration doesn’t support secret-valued connection parameter sets, connector triggers, event subscriptions, hosted MCP servers, or arbitrary MCP operation parameter schemas. Create connections that require unsupported secret parameter sets outside Aspire and reference them as existing resources.