Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Important
You need to be part of the Frontier preview program to get early access to Microsoft Agent 365. Frontier connects you directly with Microsoft’s latest AI innovations. Frontier previews are subject to the existing preview terms of your customer agreements. As these features are still in development, their availability and capabilities may change over time.
Use the a365 publish command to publish your agent to the Microsoft 365 admin center. When you publish your agent, you can create agent instances within your organization. You can also easily govern the agent.
Prerequisites
Before you begin, make sure you have the following items.
Required accounts and permissions
Microsoft Entra tenant with one of the following roles:
- Global Administrator
- Agent ID Administrator
- Agent ID Developer
Azure subscription with contributor or owner access
Required tools
- Azure CLI installed and authenticated (Install Azure CLI)
- A365 CLI installed (Agent 365 CLI)
Required setup steps
Before publishing, complete these steps in order:
- Create agent blueprint - Follow the setup step to create your agent blueprint.
- Test agent locally - Verify your agent works correctly by using Agents Playground (see Test agents locally)
- Prepare configuration files - Ensure
a365.config.jsonanda365.generated.config.jsonare up to date
Publish command
Run the a365 publish command:
a365 publish
Note
Running a365 publish -h shows all the options and sub-commands that this command supports.
What this command does:
- Update manifest - Updates
manifest.jsonandagenticUserTemplateManifest.jsonwith your agent blueprint ID - Customization prompt - Opens your default editor to customize version, names, descriptions, and icons
- Create package - Packages
manifest.json, icons, and agentic user template intomanifest.zip - Configure permissions - Adds required API permissions to custom client app
- Upload to Titles service - Publishes package to Microsoft 365 admin center
- Configure title access - Sets up access for all users in your tenant
- Configure blueprint authentication - Sets up workload identity and runtime authentication
- Grant Graph permissions - Applies Microsoft Graph permissions to agent blueprint
Customize manifest
The CLI pauses during publishing to allow you to customize your agent manifest:
=== MANIFEST UPDATED ===
Location: [path]\manifest\manifest.json
=== CUSTOMIZE YOUR AGENT MANIFEST ===
Please customize these fields before publishing:
Version ('version')
- Increment for republishing (e.g., 1.0.0 to 1.0.1)
- REQUIRED: Must be higher than previously published version
Agent Name ('name.short' and 'name.full')
- Make it descriptive and user-friendly
- Currently: [your-agent-name] Blueprint
- IMPORTANT: 'name.short' must be 30 characters or less
Descriptions ('description.short' and 'description.full')
- Short: 1-2 sentences
- Full: Detailed capabilities
Developer Info ('developer.name', 'developer.websiteUrl', 'developer.privacyUrl')
- Should reflect your organization details
Icons
- Replace 'color.png' and 'outline.png' with your custom branding
Open manifest in your default editor now? (Y/n):
Verify successful publishing
Use the following checklist to verify your agent published successfully:
✅ CLI publish succeeds
✅ manifest folder created with manifest.json and manifest.zip
✅ Agent appears in Microsoft admin center registry
✅ Federated identity credentials exist
CLI output
You should see these output messages when publishing succeeds:
✅ Upload succeeded with operationId and titleId
✅ Title access configured for all users
✅ Microsoft Graph permissions granted successfully
✅ Agent blueprint configuration completed successfully
✅ Publish completed successfully!
If publishing fails, review the error messages and ensure that blueprint setup was completed.
Possible errors:
| Error | Step to resolve |
|---|---|
Agent already exists |
Increment version number in manifest.json and republish. |
Permissions missing |
Re-run setup with the a365 setup permissions command. |
Follow these steps when publishing fails.
Manifest files
The following files are created in the manifest folder and you can test them using the Test-Path PowerShell command.
# Check manifest folder and contents exists
Test-Path <deploymentProjectPath>/manifest/
Test-Path <deploymentProjectPath>/manifest/manifest.json
Test-Path <deploymentProjectPath>/manifest/manifest.zip
# All should return: True
Note
If you don't see these files, try running the a365 publish command again.
Agent appears in admin center
Note
After publishing, it can take 5-10 minutes for your agent to appear in admin center and Teams. This delay is normal.
You can confirm that the agent is present using these steps:
- Go to:
https://admin.cloud.microsoft/#/agents/all - Your agent appears in the Registry tab
- Availability shows as All Users (Green check mark indicates success)
The following table shows what details you can find:
| Field | What to Check |
|---|---|
| Name | Your agent name (from manifest.json) |
| Version | Version number (e.g., 1.0.0) |
| Publisher | Your organization name |
| Availability | Available/All Users |
Federated identity created
You can view the federated identity (FIC) record is created in Microsoft Entra.
- Go to App registrations > Your agent blueprint app
- Navigate to Certificates & secrets > Federated credentials
- You see 2 FICs
If you don't see these records, check blueprint app permissions in the Azure portal.
See also
Next steps
After you publish your agent, create an instance so you can configure and use it in your tenant.
Troubleshooting
Common problems when publishing agents to Microsoft admin center.
Tip
Agent 365 Troubleshooting Guide contains high-level troubleshooting recommendations, best practices, and links to troubleshooting content for each part of the Agent 365 development lifecycle.
Publish command fails
Symptoms:
- Error during
a365 publish - Agent doesn't appear in admin center
Root causes:
- Setup isn't complete
- Manifest validation errors
- Insufficient permissions
Solution:
Verify that the setup is complete.
a365 config display -g # Check for: agentBlueprintIdRun the publish command and follow the prompts.
When prompted, customize the manifest:
- Update the version number (must be unique if re-publishing)
- Set the agent name (30 characters or fewer)
- Update the descriptions
- Verify the developer info
Type
continueorcto continue after customization.