While running aztfexport i am getting below error.Please look into it
Error: Failed to import /subscriptions/XXX/resourceGroups/<RG>/providers/Microsoft.ApiManagement/service/apim-azure-aot-qa as azurerm_api_management.res-2: exit status 1
Error: retrieving Sign In Settings for Service (Subscription: "XXX" Resource Group Name: "<RG>" Service Name: "apim-azure-aot-qa"): unexpected status 400 (400 Bad Request) with error: MethodNotAllowedInPricingTier: Method not allowed in StandardV2 pricing tier
@brijendrakainth1 The resource id is missing the resource group name. Probably something wrong about how you invoke the aztfexport?
@magodo , sorry for removing those details. Below is the error message , i have removed only the subscription id.
Error: Failed to import /subscriptions/XXX/resourceGroups/man-qa-iot-hub-rg/providers/Microsoft.ApiManagement/service/apim-azure-aot-qa as azurerm_api_management.res-2: exit status 1
Error: retrieving Sign In Settings for Service (Subscription: "XXX" Resource Group Name: "man-qa-iot-hub-rg" Service Name: "apim-azure-aot-qa"): unexpected status 400 (400 Bad Request) with error: MethodNotAllowedInPricingTier: Method not allowed in StandardV2 pricing tier
What if you import this resource by terraform import? If you encounter the same error (most likely), would you please open an issue at the https://github.com/hashicorp/terraform-provider-azurerm repo?