Terraform PLAN pipeline failing with Error: retrieving VIP info App Service Environment

Suresh Bettadapur 81 Reputation points
2024-02-12T12:06:01.8566667+00:00

Terraform PLAN pipeline failing with Error: retrieving VIP info App Service Environment. Post ASE v2 to v3 migration, terraform script updated in line with ASE v3 syntax.

[ERROR] eval: *terraform.EvalRefresh, err: retrieving VIP info App Service Environment "<ase>" (Resource Group "<RG>"): web.AppServiceEnvironmentsClient#GetVipInfo: Failure responding to request: StatusCode=501 -- Original Error: autorest/azure: Service returned an error. Status=501 Code="NotImplemented" Message="The requested method is not implemented." Details=[{"Message":"The requested method is not implemented."},{"Code":"NotImplemented"},{"ErrorEntity":{"Code":"NotImplemented","ExtendedCode":"51009","Message":"The requested method is not implemented.","MessageTemplate":"The requested method is not implemented.","Parameters":[]}}]
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

Accepted answer
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    2024-02-12T21:15:44.42+00:00

    Hello @Suresh Bettadapur

    I’m sorry to hear that you’re having trouble with your Terraform pipeline. can you please share the full script or the documentation you're following to achieve your scenario?

    The error message you’re seeing typically means that the method you’re trying to use isn’t supported by the Azure App Service Environment. This could be due to a number of reasons, such as a change in the API or a misconfiguration in your Terraform script.

    Here are a few things you can try to troubleshoot the issue:

    • Double check that the ASE resource in your Terraform configuration is using the v3 syntax and properties. The API changed between v2 and v3 so the old configuration may no longer be valid.
    • Try running terraform state rm azurerm_app_service_environment.ase to remove the old ASE state before re-running plan. This forces Terraform to re-read the resource.
    • Check if any ASE subnet, network security groups, or UDR routes need to be updated in your Terraform config per the v3 networking requirements.
    • Review the guidance here on migrating Terraform configs: https://docs.microsoft.com/azure/app-service/environment/app-service-environment-infrastructure-migrate#terraform

    Best,

    Grace

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Suresh Bettadapur 81 Reputation points
    2024-02-28T11:25:00.5633333+00:00

    Hello @Grmacjon-MSFT Want to inform you that the issue is now resolved. I removed the resource from the state. Then, imported the new resource into the state terraform import. Then, the pipeline worked. Thanks

    terraform state rm
    

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.