Hello,
I am using Terraform to create Azure Redis Cache,
Terraform version:
1.3.9
azure_rm version:
3.44.0
terraform code:
resource “azurerm_redis_cache” “redis_cache” {
name = “redlakebsprodnorth2001”
location = “eastasia”
resource_group_name = “mike-rg-huang-zhi-test”
redis_version = “6”
capacity = 0
family = “C”
sku_name = “Basic”
enable_non_ssl_port = false
public_network_access_enabled = false
redis_configuration {
maxmemory_reserved = 30
maxfragmentationmemory_reserved = 30
maxmemory_delta = 30
}
timeouts {
create = “1h”
update = “2h”
delete = “20m”
}
}
after about 10 minutes, the Terraform command failed with the below error:
terraform :
At line:1 char:1
- terraform apply -target=“azurerm_redis_cache.redis_cache” -no-color - …
-
+ CategoryInfo : NotSpecified: (:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError
Error: creating Redi (Subscription: “8a23315c-62c9-4f06-8145-594c550ac06a”
Resource Group Name: “mike-rg-huang-zhi-test”
Redis Name: “redlakebsprodnorth2001”): polling after Create: Future#WaitForCompletion: the number of
retries has been exceeded: StatusCode=200
with azurerm_redis_cache.redis_cache,
on redis.tf line 1, in resource “azurerm_redis_cache” “redis_cache”:
1: resource “azurerm_redis_cache” “redis_cache” {
I checked the azure resource group activity logs and found the azure redis cache is in the “creating” status. after 30 minutes, the creation finished and I used “terraform import” to import the azure redis cache manually.
My question is:
Is this error from Azure end, does Terraform have any configuration to control the
the number of retries?
Thanks for all the help!