gitbutlerapp/gitbutler · error

Azure is unsupported at the minute. Sorry 😞.

Error message

Azure is unsupported at the minute. Sorry 😞.

What it means

The forge review command (`but review`, auto-merge enable, draft toggling) checks which forge the repository's remote belongs to. Azure DevOps is recognized but has no implemented integration, so the code bails early with an explicit unsupported-forge message instead of failing later in the API layer.

Solutions

  1. Push/host the repository on a supported forge (GitHub, GitLab, or Bitbucket) and update the remote URL
  2. Perform PR creation / merge operations manually via the Azure DevOps web UI or `az repos` CLI
  3. Watch GitButler releases for Azure support and upgrade when available
  4. If Azure is mistakenly detected (e.g. wrong remote), check `git remote -v` and remove the Azure remote

Example fix

// before
but merge --auto  # fails: Azure unsupported
// after: use Azure DevOps CLI
az repos pr create --target-branch main
Defensive patterns

Strategy: validation

Validate before calling

if forge_repo_info.forge == but_forge::ForgeName::Azure {
    eprintln!("Azure DevOps is not supported; use GitHub/GitLab/Bitbucket");
    std::process::exit(1);
}

Try / catch

match create_review(...) {
    Err(e) if e.to_string().contains("Azure is unsupported") => {
        eprintln!("Falling back to manual PR creation on Azure DevOps");
    }
    other => other?,
}

Prevention

When it happens

Trigger: Running `but review`, `but merge --set-draft`, or auto-merge commands (`enable_auto_merge`, `set_draftiness`, `create_review` → `ensure_forge_authentication`) in a repo whose remote resolves `forge_repo_info.forge` to `ForgeName::Azure`.

Common situations: Repository hosted on Azure DevOps; user tries to create a PR or enable auto-merge via GitButler CLI; after switching a remote to an Azure-hosted URL.

Understand the failure class

Background: "unsupported platform" / "not supported on this platform" errors: what they mean and how to fix them — this error's family across 47 libraries.

Related errors


AI-assisted analysis of gitbutlerapp/gitbutler@58e5313667 (2026-09-18). Data as JSON: /api/errors/2f134459250d04c1. Report an issue: GitHub.

Appendix: source

Thrown at crates/but/src/command/legacy/forge/review.rs:403

            but_forge_storage::Controller::from_path(but_path::app_data_dir()?),
            forge_repo_info,
            ctx.legacy_project.preferred_forge_user.clone(),
        )
    };

    let forge_repo_info = forge_repo_info.ok_or_else(|| {
        anyhow::anyhow!(
            "Unable to determine the forge for this project. Is target branch associated with a supported forge?"
        )
    })?;

    let account_validity =
        but_forge::check_forge_account_is_valid(preferred_forge_user, &forge_repo_info, &storage)
            .await?;

    let forge_display_name = match forge_repo_info.forge {
        but_forge::ForgeName::Azure => {
            anyhow::bail!("Azure is unsupported at the minute. Sorry 😞.");
        }
        but_forge::ForgeName::GitHub => "GitHub",
        but_forge::ForgeName::GitLab => "GitLab",
        but_forge::ForgeName::Bitbucket => "Bitbucket",
    };

    match account_validity {
        but_forge::ForgeAccountValidity::Invalid => Err(anyhow::anyhow!(
            "Known account is not correctly authenticated.\nRun '{}' to authenticate with {}.",
            "but config forge auth",
            forge_display_name
        )),
        but_forge::ForgeAccountValidity::NoCredentials => Err(anyhow::anyhow!(
            "No authenticated forge users found.\nRun '{}' to authenticate with {}.",
            "but config forge auth",
            forge_display_name
        )),
        but_forge::ForgeAccountValidity::Valid => {

View on GitHub (pinned to 58e5313667)