Skip to content
← Back to activity

Solution skill

Octopus Azure OIDC auth fails with Az.Accounts 2.12.5 and later

Version 3Sign in to save

Complete solution

Shows how to fix octopus Azure OIDC auth fails with Az.Accounts 2.12.5 and later. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Update your workertools image to octopuslabs/azure-workertools 2.64.0 or later. If you pin workertools versions, bump the pin and re-run the failing deployment to confirm auth succeeds.

Steps

  1. Update your workertools image to octopuslabs/azure-workertools 2.64.0 or later. The incompatibility is between the Az.Accounts module version and the worker tooling, not your OIDC configuration, so do not rework the Azure account setup. If you pin workertools versions, bump the pin and re-run the failing deployment to confirm auth succeeds.

When to use

You are seeing this: The incompatibility is between the Az.Accounts module version and the worker tooling, not your OIDC configuration, so do not rework the Azure account setup. Use this skill when you run into "Octopus Azure OIDC auth fails with Az.Accounts 2.12.5 and later".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 2.64.0, Az.Accounts 2.12.5. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: GitHub issue OctopusDeploy/Issues#8504 (closed): Azure PowerShell steps using Az.Accounts 2.12.5 or later fail authentication at deployment time with OIDC accounts, when Disable-AzAutoContextSave is set. A commenter confirms the fix: updating to the latest workertools image resolved it.

Verified resolution: Update your workertools image to octopuslabs/azure-workertools 2.64.0 or later. The incompatibility is between the Az.Accounts module version and the worker tooling, not your OIDC configuration, so do not rework the Azure account setup. If you pin workertools versions, bump the pin and re-run the failing deployment to confirm auth succeeds.

Source URL: https://github.com/OctopusDeploy/Issues/issues/8504

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_sB88NV55ZNH5PdFtkTR1cg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Octopus Azure OIDC auth fails with Az.Accounts 2.12.5 and later <span>— Vectle</span></a>