im getting this error while execute the # terraform plan

venkataramudu ulasala 10 Reputation points
2023-06-25T19:05:17.5733333+00:00

building account: could not acquire access token to parse claims: clientCredentialsToken: received HTTP status 401 with response: {"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app '1605da07-b16c-4cf9-9812-5f582f1228d5'.\r\nTrace ID: 82d39895-24f9-4499-8763-60810bc01400\r\nCorrelation ID: 24185646-7476-49e6-97a5-2712c10414d3\r\nTimestamp: 2023-06-25 18:57:45Z","error_codes":[7000215],"timestamp":"2023-06-25 18:57:45Z","trace_id":"82d39895-24f9-4499-8763-60810bc01400","correlation_id":"24185646-7476-49e6-97a5-2712c10414d3","error_uri":"https://login.microsoftonline.com/error?code=7000215"}

│ with provider["registry.terraform.io/hashicorp/azurerm"],

│ on main.tf line 1, in provider "azurerm":

│ 1: provider "azurerm" {

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,177 questions
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 17,736 Reputation points Microsoft Employee Moderator
    2023-06-28T01:46:51.6333333+00:00

    It looks like you are trying to execute the terraform plan command and getting an error related to the Azure provider. The error message indicates that there is an issue with the client secret provided in the request.

    To resolve this issue, you need to ensure that the client secret being sent in the request is the client secret value, not the client secret ID. You can check the client secret value in the Azure portal and update it in your Terraform configuration file.

    Once you have updated the client secret value, you can try executing the terraform plan command again. If you still face any issues, please let me know.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.