Skip to content

Terraspace Plan Timeout on Azure Storage Name Availability Check #11

@almir-gl

Description

@almir-gl

[BUG REPORT]

Summary:

The terraspace plan command is consistently timing out during the name availability check for Azure Storage Accounts. This occurs because the underlying Azure API call (StorageAccounts_CheckNameAvailability) can sometimes exceed the default timeout period.

Problem Description:

When running terraspace plan for a project that includes an Azure Storage Account, the process fails with a timeout error. The failure point is the API call to https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability?api-version=2021-09-01.

Root Cause Analysis:

After consulting with Microsoft Azure support, they confirmed that the checkNameAvailability API endpoint can, in some cases, take longer than 30 seconds to respond. Their official recommendation is to increase the client-side timeout to at least 2 minutes to accommodate for this variability.

Feature Request/Suggested Solution:

Could the timeout for this specific Azure API call within the Terraspace provider be made configurable or increased to a default of 120 seconds (2 minutes)?

This would prevent unnecessary plan failures and align with the guidance provided by Microsoft for interacting with this API.

Relevant Links:
Azure API Documentation: Check Name Availability - Azure Storage RP REST API

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions