Skip to content

Document Azure:CredentialProcessTimeoutSeconds option#737

Closed
eerhardt wants to merge 1 commit intomainfrom
eerhardt/AzureCredentialTimeout-main
Closed

Document Azure:CredentialProcessTimeoutSeconds option#737
eerhardt wants to merge 1 commit intomainfrom
eerhardt/AzureCredentialTimeout-main

Conversation

@eerhardt
Copy link
Copy Markdown
Member

Documents the new Azure:CredentialProcessTimeoutSeconds configuration option introduced in microsoft/aspire#16175. The option lets users override the credential subprocess timeout (range 5-600) when az login validation is slow due to antivirus, network latency, etc.

Changes

  • deployment/azure/index.mdx: adds the option to the Shared Azure settings table and the CI/CD settings table.
  • integrations/cloud/azure/local-provisioning.mdx: adds the option to the configuration table and a new Credential process timeout section under Authentication.

A companion PR (#731) targets release/13.3.

Documents the new Azure:CredentialProcessTimeoutSeconds configuration option introduced in microsoft/aspire#16175. The option lets users override the credential subprocess timeout (range 5-600) when az login validation is slow due to antivirus, network latency, etc.

- deployment/azure/index.mdx: adds the option to the Shared Azure settings table and the CI/CD settings table.

- integrations/cloud/azure/local-provisioning.mdx: adds the option to the configuration table and a new 'Credential process timeout' section under Authentication.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 21, 2026 15:01
@eerhardt eerhardt closed this Apr 21, 2026
@eerhardt eerhardt deleted the eerhardt/AzureCredentialTimeout-main branch April 21, 2026 15:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents the Azure:CredentialProcessTimeoutSeconds configuration option for Azure credential subprocess timeouts, so users can mitigate slow credential validation in local and CI/CD environments.

Changes:

  • Adds Azure:CredentialProcessTimeoutSeconds to the configuration options table and introduces a new “Credential process timeout” subsection in local provisioning docs.
  • Adds Azure:CredentialProcessTimeoutSeconds / Azure__CredentialProcessTimeoutSeconds to the “Shared Azure settings” and “CI/CD settings” tables for Azure deployment docs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/frontend/src/content/docs/integrations/cloud/azure/local-provisioning.mdx Documents the new timeout setting for local provisioning and describes how/when to use it.
src/frontend/src/content/docs/deployment/azure/index.mdx Surfaces the new setting in shared Azure and CI/CD configuration tables for aspire deploy.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +198 to +210
Most local credential sources (Azure CLI, Azure PowerShell, Visual Studio, Azure Developer CLI, and the development `Default` chain) acquire tokens by invoking a subprocess. On machines where these tools are slow to respond — for example, due to antivirus scanning or network latency — credential validation can time out before authentication completes.

Use `Azure:CredentialProcessTimeoutSeconds` to override the credential subprocess timeout. The value must be between **5** and **600** seconds. When unset, the Azure SDK's default timeout is used.

```json title="appsettings.Development.json"
{
"Azure": {
"CredentialProcessTimeoutSeconds": 120
}
}
```

This setting applies to the `AzureCli`, `AzurePowerShell`, `VisualStudio`, and `AzureDeveloperCli` credential sources, and to the development credential chain used when `CredentialSource` isn't explicitly set. It has no effect on `InteractiveBrowser`, which doesn't shell out to a subprocess.
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new section lists which CredentialSource values this setting applies to, but it omits VisualStudioCode even though it’s listed as a supported Azure:CredentialSource value just above. This makes it unclear whether Azure:CredentialProcessTimeoutSeconds affects VS Code auth; please either include VisualStudioCode in the applicability list or explicitly call out that it’s not affected (and adjust the earlier “Most local credential sources … invoke a subprocess” wording accordingly).

Copilot uses AI. Check for mistakes.
| `Azure:SubscriptionId` | `Azure__SubscriptionId` | Target Azure subscription |
| `Azure:Location` | `Azure__Location` | Default Azure region for provisioned resources |
| `Azure:ResourceGroup` | `Azure__ResourceGroup` | Resource group to create or reuse |
| `Azure:CredentialProcessTimeoutSeconds` | `Azure__CredentialProcessTimeoutSeconds` | Override the credential subprocess timeout (5–600 seconds) when `az login` validation is slow |
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The setting description ties this timeout specifically to az login validation, but this table is meant to cover shared settings after authentication and the page also describes non-Azure-CLI auth flows (GitHub Actions OIDC, Azure DevOps service connections). Consider rephrasing the purpose to be credential-source-agnostic (e.g., “credential subprocess operations” / “Azure CLI or other process-based credentials”) so it doesn’t read as Azure CLI-specific in contexts where az login isn’t used.

Suggested change
| `Azure:CredentialProcessTimeoutSeconds` | `Azure__CredentialProcessTimeoutSeconds` | Override the credential subprocess timeout (5–600 seconds) when `az login` validation is slow |
| `Azure:CredentialProcessTimeoutSeconds` | `Azure__CredentialProcessTimeoutSeconds` | Override the credential subprocess timeout (5–600 seconds) when Azure CLI or other process-based credentials are slow |

Copilot uses AI. Check for mistakes.
| Azure subscription | `Azure__SubscriptionId` | Select the target Azure subscription |
| Azure location | `Azure__Location` | Set the default region for provisioned resources |
| Azure resource group | `Azure__ResourceGroup` | Select the resource group to create or reuse |
| Credential process timeout | `Azure__CredentialProcessTimeoutSeconds` | Override the credential subprocess timeout (5–600 seconds) when `az login` validation is slow on the build agent |
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue as above: in the CI/CD settings table, the purpose text mentions az login being slow on the build agent, but CI auth is often via OIDC/service connection (no az login). Suggest rewording to describe slow credential subprocess validation more generally, or to explicitly scope this input to scenarios where the pipeline is using Azure CLI/PowerShell/AZD-based credentials.

Suggested change
| Credential process timeout | `Azure__CredentialProcessTimeoutSeconds` | Override the credential subprocess timeout (5–600 seconds) when `az login` validation is slow on the build agent |
| Credential process timeout | `Azure__CredentialProcessTimeoutSeconds` | Override the credential subprocess timeout (5–600 seconds) when Azure CLI, PowerShell, or AZD credential validation is slow on the build agent |

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants