You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am working on support soft_delete feature of App Configuration 2022-05-01 in Terraform hashicorp/terraform-provider-azurerm#17714, seems the purged App Configuration are not releasing the name(for about serveral minutes with location west us), which affects some of the automation. From a previous issue #264, I know maybe it is by design.
As a workaround, I find there is a POST operation checkNameAvailability can check the name availibility in certain location. I plan to add logic to retry checkNameAvailability before PUT. Seems there is no doc about this, please help check once this checkNameAvailability returns the name is availble then I can PUT without the NameUnavailable error, right? From my own test, the result is expected (checkNameAvailability returns OK then PUT is OK). And please tell if there is other insights, thanks.
Repro Steps (with REST API)
PUT a Appconfiguration with Standard sku (purge_protection is off)
DELETE the App Configuration
POST purge the soft-deleted App Configuration, checked that both of GET the first created and the deleted return 404
PUT a same named App Configuration, return the error
Error
Code="NameUnavailable" Message="The specified name is already in use."
Hi @teowa
Yes, you are right, it's by design that the store name will not be released immediately after purging the store. You should use the CheckNameAvailability API to check if the name is available for use before recreating. https://docs.microsoft.com/en-us/rest/api/appconfiguration/stable/operations/regional-check-name-availability?tabs=HTTP
Generally if CheckNameAvailability returns true, you won't see the NameUnavailble error when creating the store, but the most reliable way is to handle the NameUnavailable error in your app and retry.
Background
Hi, I am working on support
soft_delete
feature of App Configuration 2022-05-01 in Terraform hashicorp/terraform-provider-azurerm#17714, seems the purged App Configuration are not releasing the name(for about serveral minutes with locationwest us
), which affects some of the automation. From a previous issue #264, I know maybe it is by design.As a workaround, I find there is a POST operation
checkNameAvailability
can check the name availibility in certain location. I plan to add logic to retrycheckNameAvailability
before PUT. Seems there is no doc about this, please help check once thischeckNameAvailability
returns the name is availble then I can PUT without theNameUnavailable
error, right? From my own test, the result is expected (checkNameAvailability
returns OK then PUT is OK). And please tell if there is other insights, thanks.Repro Steps (with REST API)
purge_protection
is off)Error
Code="NameUnavailable" Message="The specified name is already in use."
Related
azurerm_app_configuration
- support for theencrption
,local_auth_enabled
,public_network_access_enabled
,purge_protection_enabled
,andsoft_delete_retention_days
properties hashicorp/terraform-provider-azurerm#17714The text was updated successfully, but these errors were encountered: