Elasticsearch deployment automation does not work anymore #24173
Labels
service/elastic
upstream/microsoft/blocking-api-issue
This label is applicable when there is a bug on the Azure API that is blocking.
v/3.x
Is there an existing issue for this?
Community Note
Terraform Version
Terraform v1.6.4
AzureRM Provider Version
3.82.0
Affected Resource(s)/Data Source(s)
azurerm_elastic_cloud_elasticsearch
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
It should create Azure Managed Elasticsearch
Actual Behaviour
It fails with error message:
Steps to Reproduce
terraform apply
I have been using Terraform for setting up my Azure infrastructure including an instance of Managed Elasticsearch for several months, and it has always been working fine until yesterday (08.12.23) morning CET. It failed for the first time yesterday (08.12.23) afternoon, and it has failed ever since.
Please find the Terraform configuration of a repro case in the attachment.
Since yesterday afternoon, it would always complain:
Yes, I am the owner of the resource group, and Terraform is working fine for dozens of other resources. Yes, I can log-in to Elastic Cloud with my Microsoft account [email protected]. Yes, I can create an Elasticsearch instance in the same RG with the same resource configuration with the same user in Azure portal.
I have tried the Terraform script with location westeurope, eastus and southeastasia. Same result.
I have tried creating the resource using Azure CLI:
az elastic monitor create -n test-elasticsearch -g azure-demo-01-monitoring-rg --user-info "{firstName:Thomas,lastName:Hesse,companyName:'Software AG',emailAddress:[email protected]}" --sku "{name:ess-consumption-2024_Monthly@TIDgmz7xq9ge3py}"
Result:
I have exported an ARM template in the Azure Portal, cf. attachment. I can create the resource using the template in the Azure Portal, but it fails when I try the following:
az deployment group create --resource-group azure-demo-01-monitoring-rg --template-file ExportedTemplate-azure-demo-01-elasticsearch.json --parameters @ExportedTemplate-azure-demo-01-elasticsearch-parameters.json
Result:
{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/309065ca-a060-4592-8096-b74694126b61/resourceGroups/azure-demo-01-monitoring-rg/providers/Microsoft.Resources/deployments/ExportedTemplate-azure-demo-01-elasticsearch","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"BadRequest","message":"Cannot proceed with the request as the user is not authorized"}]}}
I have even tried calling the Azure Management API:
Result:
I have tried multiple versions of the API.
Yes, I am using a valid token, the API is working fine for other resource types.
Currently I see no way of setting up the resource automatically. Please help!
Best regards,
Thomas
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: