Prerequisites
- An Azure subscription with at least one Foundry resource (
Microsoft.CognitiveServices/accounts). - Owner or Contributor role on the Foundry resource (to modify resource properties).
- For the Azure Policy section: permissions to create and assign policy definitions at the subscription or management-group scope.
Understand the enablement model
Agent 365 data collection on a Foundry resource is tracked by two properties in the resource provider configuration:| Property | Type | Description |
|---|---|---|
a365LoggingEnabled | Boolean | User-controlled property to set whether agent activity data is sent to Agent 365 for this Foundry resource. Accepted values: true, false. |
a365Status | String | Read-only system property showing enablement status after licensing and consent checks. Possible values: Enabled, Disabled, NotLicensed. |
Microsoft.CognitiveServices/accounts resource type and can be read or modified through the Azure Resource Manager API, Azure CLI, Azure PowerShell, or the Azure portal.
Data collection requires both an active Agent 365 license and
tenant-level A365 consent and
a365LoggingEnabled set to true.
No data is ingested unless the customer has completed the Agent 365
consent flow and holds a valid license. Setting a365LoggingEnabled
to true alone doesn’t trigger data collection.Default state
When Agent 365 is enabled for an Entra tenant, Foundry resources in the same Azure tenant havea365LoggingEnabled set to true by default.
Organizations must explicitly opt out to disable data collection on each
resource. You can use Azure Policy to deny data collection for select Azure
subscriptions or Azure management groups.
Scope of the setting
Thea365LoggingEnabled setting applies at the Foundry resource level.
Every Foundry project and every prompt agent contained within that resource
inherits the same data-collection setting. There’s no per-project or
per-agent override.
Hosted Agents require manual configuration of Agent 365 by packing and configuring the Agent 365 SDK along with your agent code. Without manual configuration steps, data will not flow. Explicit Agent 365 SDK configurations in Hosted agents override logging disablement settings on the Foundry resource level.
Disable data collection on a Foundry resource
To stop sending agent activity data from a specific Foundry resource to Agent 365, seta365LoggingEnabled to false.
Enable data collection on a Foundry resource
To opt a resource back in, seta365LoggingEnabled to true.