{"id":73768,"date":"2026-11-23T12:21:42","date_gmt":"2026-11-23T20:21:42","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/devops\/?p=73768"},"modified":"2026-11-23T12:21:42","modified_gmt":"2026-11-23T20:21:42","slug":"agentic-autofix-for-advanced-security-for-azure-devops-public-preview","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/agentic-autofix-for-advanced-security-for-azure-devops-public-preview\/","title":{"rendered":"Agentic Autofix for GitHub Advanced Security for Azure DevOps is in public preview"},"content":{"rendered":"<p>Today, we&#8217;re announcing the public preview of Agentic Autofix for GitHub Advanced Security for Azure DevOps.<\/p>\n<p>Thank you to everyone who participated in our June private preview and our <a href=\"https:\/\/devblogs.microsoft.com\/devops\/introducing-agentic-autofix-for-code-and-dependencies\/\">October limited preview<\/a>. Your feedback helped us expand alert coverage, improve failure handling, and prepare the experience for broader rollout.<\/p>\n<p>With Agentic Autofix, cut time to remediate code vulnerabilities with ready-to-review, AI-generated fixes built into the developer workflow.<\/p>\n<p>Here&#8217;s how to get started.<\/p>\n<h2>Enable Copilot Autofix<\/h2>\n<p>Administrators can enable Copilot Autofix at the organization, project, or repository level. First, open <strong>Organization settings > Repositories<\/strong>, or use <strong>Project settings > Repositories<\/strong> for a project or single repository.<\/p>\n<p>Under Advanced Security, select <strong>Autofix for security alerts<\/strong>. Alternatively, if you use standalone Code Security, select Options to open the Code Security features panel, select <strong>Autofix for security alerts<\/strong>, and select Apply.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-org-enablement.webp\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-org-enablement.webp\" alt=\"Screenshot of enabling Autofix for security alerts in repository settingse\" width=\"1348\" height=\"824\" class=\"aligncenter size-full wp-image-73769\" srcset=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-org-enablement.webp 1348w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-org-enablement-300x183.webp 300w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-org-enablement-1024x626.webp 1024w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-org-enablement-768x469.webp 768w\" sizes=\"(max-width: 1348px) 100vw, 1348px\" \/><\/a><\/p>\n<p>One setting covers <a href=\"https:\/\/learn.microsoft.com\/azure\/devops\/repos\/security\/github-advanced-security-code-scanning\">code scanning alerts<\/a> from CodeQL and third-party SARIF tools, plus <a href=\"https:\/\/learn.microsoft.com\/azure\/devops\/repos\/security\/github-advanced-security-dependency-scanning\">dependency vulnerability alerts<\/a>. However, enabling Autofix doesn&#8217;t trigger scans or generate fixes automatically, so your team chooses which alerts to address.<\/p>\n<h2>Guide fixes with instructions and skills<\/h2>\n<p>Instead of returning a static single-line snippet, Agentic Autofix uses the Copilot coding agent to explore your repository context. As a result, the agent can review and refine proposed changes across multiple files before opening a pull request.<\/p>\n<p>Check instructions and skills into <code>.github<\/code> or <code>.agents<\/code> directories to customize how the agent writes fixes.<\/p>\n<p>Custom instructions in <code>.github\/copilot-instructions.md<\/code> define your coding standards, naming conventions, and test commands. For example, instructions can direct the agent to use your approved input-validation helper rather than adding custom validation logic.<\/p>\n<p>Similarly, skills in <code>.github\/skills\/&lt;skill-name&gt;\/SKILL.md<\/code> or <code>.agents\/skills\/&lt;skill-name&gt;\/SKILL.md<\/code> capture repeatable remediation workflows. For instance, a dependency-update skill can specify your internal package-update procedure and compatibility checks.<\/p>\n<h2>Generate and review a fix<\/h2>\n<p>To generate a fix, open Repos > Advanced Security, select a supported code scanning or dependency alert, and select Generate fix.<\/p>\n<p>Next, Copilot Autofix queues an Azure Pipelines job under a dedicated <code>GitHub Copilot ({organization})<\/code> identity. Once ready, it opens a pull request with the proposed change and a summary of the alert.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-generate-fix.webp\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-generate-fix.webp\" alt=\"autofix generate fix image\" width=\"1268\" height=\"790\" class=\"aligncenter size-full wp-image-73774\" srcset=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-generate-fix.webp 1268w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-generate-fix-300x187.webp 300w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-generate-fix-1024x638.webp 1024w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-generate-fix-768x478.webp 768w\" sizes=\"(max-width: 1268px) 100vw, 1268px\" \/><\/a><\/p>\n<p>Every generated pull request includes a Copilot Autofix label so reviewers can spot and filter AI-generated fixes.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-pr-list.webp\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-pr-list.webp\" alt=\"autofix pull request list\" width=\"1670\" height=\"841\" class=\"aligncenter size-full wp-image-73770\" srcset=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-pr-list.webp 1670w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-pr-list-300x151.webp 300w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-pr-list-1024x516.webp 1024w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-pr-list-768x387.webp 768w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-pr-list-1536x774.webp 1536w\" sizes=\"(max-width: 1670px) 100vw, 1670px\" \/><\/a><\/p>\n<p>If a run hits a transient error or a repository policy block, the alert detail view surfaces a clear failure state. Fix the underlying issue, and then select Retry fix directly from the alert.<\/p>\n<p>Copilot Autofix never merges changes on its own, and not every alert produces a fix. Always review the diff, run your build and tests, and merge through your normal pull request workflow. Afterward, re-run your scanner on the target branch to confirm the alert closes.<\/p>\n<h2>Billing and cost management<\/h2>\n<p>Your GitHub Advanced Security for Azure DevOps or standalone Code Security license includes access to Copilot Autofix. We bill fix generation usage to the Azure subscription linked to your Azure DevOps organization. Each fix consumes tokens that we convert into GitHub AI credits at $0.01 USD per credit. Cost varies with code context size and fix complexity.<\/p>\n<p>Charges appear under the AI Credit for AzDO GAC meter in Azure Cost Management. Additionally, each charge includes <code>_organizationname_<\/code> and <code>_projectname_<\/code> tags, so you can filter by organization and group spend by project in Cost analysis.<\/p>\n<p>You can also configure <a href=\"https:\/\/learn.microsoft.com\/azure\/cost-management-billing\/costs\/tutorial-acm-create-budgets\">Azure budget alerts<\/a> for the meter or specific project tags. Azure then notifies you by email when actual or forecasted spend reaches your threshold.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-cost-by-project.webp\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-cost-by-project.webp\" alt=\"autofix cost by project image\" width=\"1875\" height=\"929\" class=\"aligncenter size-full wp-image-73771\" srcset=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-cost-by-project.webp 1875w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-cost-by-project-300x149.webp 300w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-cost-by-project-1024x507.webp 1024w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-cost-by-project-768x381.webp 768w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2026\/11\/autofix-cost-by-project-1536x761.webp 1536w\" sizes=\"(max-width: 1875px) 100vw, 1875px\" \/><\/a><\/p>\n<h2>What&#8217;s next<\/h2>\n<p>Next on our roadmap, we&#8217;re building <a href=\"https:\/\/learn.microsoft.com\/azure\/devops\/release-notes\/roadmap\/2026\/ghazdo\/batch-alert\">batch alert selection<\/a> to remediate multiple alerts in a single pull request. Track other upcoming features on the <a href=\"https:\/\/learn.microsoft.com\/azure\/devops\/release-notes\/features-timeline#github-advanced-security-for-azure-devops\">Azure DevOps public roadmap<\/a>.<\/p>\n<h2>Get started today<\/h2>\n<p>Enable Copilot Autofix in your repository settings and try it on your next code scanning or dependency alert.<\/p>\n<p>For setup details, policy configuration, and troubleshooting, see the <a href=\"https:\/\/learn.microsoft.com\/azure\/devops\/repos\/security\/github-advanced-security-autofix\">Copilot Autofix documentation<\/a> and <a href=\"https:\/\/learn.microsoft.com\/azure\/devops\/repos\/security\/github-advanced-security-billing#copilot-autofix-usage-charges\">billing overview<\/a>.<\/p>\n<p>Share your feedback in the comments below or on the <a href=\"https:\/\/developercommunity.visualstudio.com\/AzureDevOps\">Azure DevOps Developer Community<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, we&#8217;re announcing the public preview of Agentic Autofix for GitHub Advanced Security for Azure DevOps. Thank you to everyone who participated in our June private preview and our October limited preview. Your feedback helped us expand alert coverage, improve failure handling, and prepare the experience for broader rollout. With Agentic Autofix, cut time to [&hellip;]<\/p>\n","protected":false},"author":177424,"featured_media":73777,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,251],"tags":[],"class_list":["post-73768","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-security"],"acf":[],"blog_post_summary":"<p>Today, we&#8217;re announcing the public preview of Agentic Autofix for GitHub Advanced Security for Azure DevOps. Thank you to everyone who participated in our June private preview and our October limited preview. Your feedback helped us expand alert coverage, improve failure handling, and prepare the experience for broader rollout. With Agentic Autofix, cut time to [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/73768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/177424"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=73768"}],"version-history":[{"count":1,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/73768\/revisions"}],"predecessor-version":[{"id":73779,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/73768\/revisions\/73779"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/73777"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=73768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=73768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=73768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}