{"id":59654,"date":"2026-11-08T14:01:22","date_gmt":"2026-11-08T04:01:22","guid":{"rendered":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/11\/08\/deploy-hosted-agents-faster-with-azure-developer-cli-and-foundry\/"},"modified":"2026-11-08T14:02:52","modified_gmt":"2026-11-08T04:02:52","slug":"deploy-hosted-agents-faster-with-azure-developer-cli-and-foundry","status":"publish","type":"post","link":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/11\/08\/deploy-hosted-agents-faster-with-azure-developer-cli-and-foundry\/","title":{"rendered":"Deploy Hosted Agents Faster with Azure Developer CLI and Foundry"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this blog post Deploy Hosted Agents Faster with Azure Developer CLI and Foundry we will explain how technology teams can move AI agents from local testing into controlled cloud hosting without rebuilding the deployment process every time.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">Building an AI agent demonstration is relatively easy. The problems usually begin when the business wants that agent connected to company systems, available to employees and supported in production.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Azure Developer CLI, commonly called <code>azd<\/code>, provides a repeatable way to package the agent, prepare its Azure resources and deploy it to Microsoft Foundry. Microsoft Foundry is Microsoft\u2019s platform for building, hosting and managing AI applications and agents.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Together, they create a practical bridge between an interesting prototype and a business service that can be tested, monitored, updated and governed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The business problem is inconsistent deployment<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Many AI projects still rely on a developer remembering which portal settings they changed, which permissions they added and which model they selected. That may work for a demonstration, but it creates risk when the same setup must be reproduced for testing or production.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Small differences can cause an agent to behave incorrectly, expose information or generate unexpected Azure costs. They can also leave the business dependent on the one person who understands how everything was assembled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Azure Developer CLI addresses this by keeping the deployment instructions with the agent\u2019s code. The important settings can be reviewed, approved and reused rather than recreated manually.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our earlier Microsoft Foundry and Azure Developer CLI deployment guide covers the generally available tooling in more detail. The key question for technology leaders is what this approach changes operationally.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How the technology works in plain English<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An AI agent usually contains instructions, application code, access to an AI model and connections to approved tools or business information. A hosted agent runs that logic on cloud infrastructure rather than on a developer\u2019s laptop.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Microsoft Foundry supplies the managed environment. Your team chooses the agent framework, model and business logic, while Microsoft manages much of the underlying runtime used to keep the agent available.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Azure Developer CLI coordinates the journey into that environment. It can initialise a project, prepare Azure resources, run the agent locally, deploy it and send test requests to the hosted version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The central project file is usually <code>azure.yaml<\/code>. Think of this as a deployment blueprint describing the agent, the runtime it needs and the Foundry project it belongs to.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A practical hosted-agent workflow<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Start with the intended business process<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Before selecting a model or writing deployment files, define what the agent is allowed to do. An internal policy assistant, for example, should answer from approved documents and direct uncertain questions to a person.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Document the users, information sources, expected response time, escalation process and measures of success. This prevents the project from becoming a technical experiment without a measurable business outcome.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Install the supported Foundry tooling<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Microsoft Foundry extension bundle adds agent-specific commands to Azure Developer CLI. A simplified setup looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>azd auth login\nazd ext install microsoft.foundry\nazd ai agent init<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The initialisation process can start from a Microsoft template, existing agent code or an existing Foundry project. This gives teams a common project structure without forcing them to discard work that already exists.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Test locally before paying for repeated deployments<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Developers can run the agent locally while still using authorised Azure services. They can then send a test request through the same command-line workflow.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>azd ai agent run\nazd ai agent invoke --local &quot;Summarise our leave approval process&quot;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This short feedback loop helps teams find broken instructions, missing permissions and poor answers before publishing a new cloud version. The business outcome is less rework and fewer avoidable production incidents.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Local testing should still use safe test information. Customer records, employee data and confidential documents should not be copied onto unmanaged development devices.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Provision and deploy consistently<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once the agent passes local testing, <code>azd up<\/code> can provision the declared Azure resources and deploy the agent. Teams wanting tighter control can separate this into <code>azd provision<\/code> and <code>azd deploy<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>azd up\nazd ai agent invoke &quot;Explain the expense approval policy&quot;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This repeatability matters because development, testing and production should not be one shared environment. Each should have separate permissions, configuration and cost controls, while using the same approved deployment pattern.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Organisations needing editable infrastructure templates can use Bicep, Microsoft\u2019s plain-text language for defining Azure resources, or Terraform. Our guide to provisioning Microsoft Foundry with Bicep and Azure Developer CLI explains why this reduces configuration drift between environments.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Choose source deployment or a container<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Microsoft Foundry supports more than one hosted-agent deployment path. The right choice depends on how much control the application needs.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Source-code deployment<\/strong> packages supported Python or .NET code and lets the platform prepare the hosted runtime. This is often the simpler choice for straightforward agents.<\/li>\n<li><strong>Container deployment<\/strong> packages the agent with its operating environment and dependencies. A container is a portable software package that behaves consistently across environments.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Containers are useful when the agent needs specialist libraries, custom operating-system components or tighter runtime control. They also introduce more patching, image security and maintenance responsibilities.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a deeper comparison, see our guide to deploying containerised hosted agents safely.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Security and governance cannot be added later<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A successful deployment is not simply an agent that responds. It must respond only to approved users, access only approved information and leave enough evidence for investigations and audits.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At minimum, the production design should include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Managed identities<\/strong>, which give the agent a secure Azure identity without storing passwords in code.<\/li>\n<li><strong>Role-based access control<\/strong>, which limits each person and service to the permissions they genuinely require.<\/li>\n<li><strong>Separate environments<\/strong> so experimentation cannot change production resources.<\/li>\n<li><strong>Tracing and monitoring<\/strong> to record performance, failures and agent activity without unnecessarily capturing sensitive prompts.<\/li>\n<li><strong>Model and compute budgets<\/strong> with alerts before costs become a surprise.<\/li>\n<li><strong>Documented release approval<\/strong> for changes to prompts, tools, models and permissions.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These controls can also support alignment with Essential 8, the Australian Government\u2019s cybersecurity framework that many organisations use to improve their security maturity. An AI platform does not automatically deliver Essential 8 compliance, but controlled access, patching, monitoring and repeatable releases make compliance easier to demonstrate.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What this looks like in a 200-person business<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Consider a professional services company building an agent to answer employee questions from policies and operational procedures. The prototype works, but only on a developer\u2019s computer, and nobody is certain which documents or Azure permissions it uses.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using Azure Developer CLI, the team records the deployment configuration with the application. They create separate test and production environments, assign the agent a managed identity and add automated tests for common and high-risk questions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Changes then move through a controlled deployment pipeline rather than being made directly in the Azure portal. New versions become easier to review, failed releases are easier to investigate and the business is less dependent on one developer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is the practical value of the approach: faster releases without sacrificing accountability. Our article on moving AI agents from prototype to production explores the wider operating model behind this transition.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A sensible next step<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Azure Developer CLI and Microsoft Foundry do not remove the need for architecture, security reviews or cost planning. They do make the approved approach repeatable, reducing manual work and making changes easier to understand.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CloudProInc combines more than 20 years of enterprise IT experience with practical expertise across Azure, Microsoft 365, Microsoft Foundry, OpenAI, Claude, Microsoft Defender and Wiz. As a Melbourne-based Microsoft Partner and Wiz Security Integrator, we focus on hands-on delivery rather than adding another layer of management overhead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your AI agent works in a demonstration but the path to secure production hosting is unclear, we are happy to review the design and identify the gaps. No oversized transformation program and no strings attached.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>A practical guide to using Azure Developer CLI and Microsoft Foundry to move AI agents from local testing into secure, repeatable, business-ready hosting.<\/p>\n","protected":false},"author":1,"featured_media":59656,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[80,50,13,115],"tags":[],"class_list":["post-59654","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-agents","category-azure-cli","category-blog","category-microsoft-ai-foundry"],"jetpack-related-posts":[{"id":59614,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/11\/07\/microsoft-foundry-and-azure-developer-cli-ga-deployment-guide\/","url_meta":{"origin":59654,"position":0},"title":"Microsoft Foundry and Azure Developer CLI GA Deployment Guide","author":"CPI Staff","date":"November 7, 2026","format":false,"excerpt":"Microsoft\u2019s generally available Foundry extension for Azure Developer CLI creates a more repeatable path for moving AI agents from local testing into secure, controlled production.","rel":"","context":"In &quot;AI Agents&quot;","block_context":{"text":"AI Agents","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/ai-agents\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/11\/microsoft-foundry-and-azure-developer-cli-ga-deployment-guide.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/11\/microsoft-foundry-and-azure-developer-cli-ga-deployment-guide.png 1x, \/wp-content\/uploads\/2026\/11\/microsoft-foundry-and-azure-developer-cli-ga-deployment-guide.png 1.5x, \/wp-content\/uploads\/2026\/11\/microsoft-foundry-and-azure-developer-cli-ga-deployment-guide.png 2x, \/wp-content\/uploads\/2026\/11\/microsoft-foundry-and-azure-developer-cli-ga-deployment-guide.png 3x, \/wp-content\/uploads\/2026\/11\/microsoft-foundry-and-azure-developer-cli-ga-deployment-guide.png 4x"},"classes":[]},{"id":58455,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/10\/12\/provision-microsoft-foundry-with-bicep-and-azure-developer-cli\/","url_meta":{"origin":59654,"position":1},"title":"Provision Microsoft Foundry with Bicep and Azure Developer CLI","author":"CPI Staff","date":"October 12, 2026","format":false,"excerpt":"Learn how Bicep and Azure Developer CLI create repeatable Microsoft Foundry environments that reduce setup time, control configuration drift, and improve AI governance.","rel":"","context":"In &quot;Azure&quot;","block_context":{"text":"Azure","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/microsoft-azure\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/08\/provision-microsoft-foundry-with-bicep-and-azure-developer-cli.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/08\/provision-microsoft-foundry-with-bicep-and-azure-developer-cli.png 1x, \/wp-content\/uploads\/2026\/08\/provision-microsoft-foundry-with-bicep-and-azure-developer-cli.png 1.5x, \/wp-content\/uploads\/2026\/08\/provision-microsoft-foundry-with-bicep-and-azure-developer-cli.png 2x, \/wp-content\/uploads\/2026\/08\/provision-microsoft-foundry-with-bicep-and-azure-developer-cli.png 3x, \/wp-content\/uploads\/2026\/08\/provision-microsoft-foundry-with-bicep-and-azure-developer-cli.png 4x"},"classes":[]},{"id":57809,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/10\/12\/deploy-containerised-hosted-agents-with-microsoft-foundry-safely\/","url_meta":{"origin":59654,"position":2},"title":"Deploy Containerised Hosted Agents with Microsoft Foundry Safely","author":"CPI Staff","date":"October 12, 2026","format":false,"excerpt":"A practical guide for tech leaders on when containerised hosted agents make sense, how they work, and how to deploy them without creating security or cost surprises.","rel":"","context":"In &quot;Blog&quot;","block_context":{"text":"Blog","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/blog\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/07\/deploy-containerised-hosted-agents-with-microsoft-foundry-safely.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/07\/deploy-containerised-hosted-agents-with-microsoft-foundry-safely.png 1x, \/wp-content\/uploads\/2026\/07\/deploy-containerised-hosted-agents-with-microsoft-foundry-safely.png 1.5x, \/wp-content\/uploads\/2026\/07\/deploy-containerised-hosted-agents-with-microsoft-foundry-safely.png 2x, \/wp-content\/uploads\/2026\/07\/deploy-containerised-hosted-agents-with-microsoft-foundry-safely.png 3x, \/wp-content\/uploads\/2026\/07\/deploy-containerised-hosted-agents-with-microsoft-foundry-safely.png 4x"},"classes":[]},{"id":58060,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/10\/12\/how-to-deploy-langgraph-agents-to-microsoft-foundry-safely-at-scale\/","url_meta":{"origin":59654,"position":3},"title":"How to Deploy LangGraph Agents to Microsoft Foundry Safely at Scale","author":"CPI Staff","date":"October 12, 2026","format":false,"excerpt":"Learn how to move LangGraph and other AI agents into Microsoft Foundry while controlling security, operating costs, system access and production risk.","rel":"","context":"In &quot;AI Agents&quot;","block_context":{"text":"AI Agents","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/ai-agents\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/07\/how-to-deploy-langgraph-agents-to-microsoft-foundry-safely-at-scale.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/07\/how-to-deploy-langgraph-agents-to-microsoft-foundry-safely-at-scale.png 1x, \/wp-content\/uploads\/2026\/07\/how-to-deploy-langgraph-agents-to-microsoft-foundry-safely-at-scale.png 1.5x, \/wp-content\/uploads\/2026\/07\/how-to-deploy-langgraph-agents-to-microsoft-foundry-safely-at-scale.png 2x, \/wp-content\/uploads\/2026\/07\/how-to-deploy-langgraph-agents-to-microsoft-foundry-safely-at-scale.png 3x, \/wp-content\/uploads\/2026\/07\/how-to-deploy-langgraph-agents-to-microsoft-foundry-safely-at-scale.png 4x"},"classes":[]},{"id":59502,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/11\/02\/from-prototype-to-production-hosting-ai-agents-on-microsoft-foundry\/","url_meta":{"origin":59654,"position":4},"title":"From Prototype to Production Hosting AI Agents on Microsoft Foundry","author":"CPI Staff","date":"November 2, 2026","format":false,"excerpt":"A practical guide to hosting AI agents securely and reliably on Microsoft Foundry, with clearer cost control, monitoring and business accountability.","rel":"","context":"In &quot;AI Agents&quot;","block_context":{"text":"AI Agents","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/ai-agents\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/11\/from-prototype-to-production-hosting-ai-agents-on-microsoft-foundry.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/11\/from-prototype-to-production-hosting-ai-agents-on-microsoft-foundry.png 1x, \/wp-content\/uploads\/2026\/11\/from-prototype-to-production-hosting-ai-agents-on-microsoft-foundry.png 1.5x, \/wp-content\/uploads\/2026\/11\/from-prototype-to-production-hosting-ai-agents-on-microsoft-foundry.png 2x, \/wp-content\/uploads\/2026\/11\/from-prototype-to-production-hosting-ai-agents-on-microsoft-foundry.png 3x, \/wp-content\/uploads\/2026\/11\/from-prototype-to-production-hosting-ai-agents-on-microsoft-foundry.png 4x"},"classes":[]},{"id":58000,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/10\/12\/how-github-copilot-speeds-up-secure-microsoft-foundry-agent-delivery\/","url_meta":{"origin":59654,"position":5},"title":"How GitHub Copilot Speeds Up Secure Microsoft Foundry Agent Delivery","author":"CPI Staff","date":"October 12, 2026","format":false,"excerpt":"Learn how GitHub Copilot and Microsoft Foundry can help teams build, test and deploy useful AI agents faster without losing control of security or costs.","rel":"","context":"In &quot;AI Agents&quot;","block_context":{"text":"AI Agents","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/ai-agents\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/07\/how-github-copilot-speeds-up-secure-microsoft-foundry-agent-delivery.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/07\/how-github-copilot-speeds-up-secure-microsoft-foundry-agent-delivery.png 1x, \/wp-content\/uploads\/2026\/07\/how-github-copilot-speeds-up-secure-microsoft-foundry-agent-delivery.png 1.5x, \/wp-content\/uploads\/2026\/07\/how-github-copilot-speeds-up-secure-microsoft-foundry-agent-delivery.png 2x, \/wp-content\/uploads\/2026\/07\/how-github-copilot-speeds-up-secure-microsoft-foundry-agent-delivery.png 3x, \/wp-content\/uploads\/2026\/07\/how-github-copilot-speeds-up-secure-microsoft-foundry-agent-delivery.png 4x"},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"\/wp-content\/uploads\/2026\/11\/deploy-hosted-agents-faster-with-azure-developer-cli-and-foundry.png","_links":{"self":[{"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/59654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/comments?post=59654"}],"version-history":[{"count":2,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/59654\/revisions"}],"predecessor-version":[{"id":59657,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/59654\/revisions\/59657"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media\/59656"}],"wp:attachment":[{"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=59654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=59654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=59654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}