-
Notifications
You must be signed in to change notification settings - Fork 3
Description
[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