Getting error while importing- AADSTS90023 InvalidRequest - The authentication service request is not valid. #1217
bijuthottathil
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
D:\KPLabsTerraform\Newlabs\Azure>terraformer-azure-windows-amd64 import azure -r resource_group --filter=resource_group=/subscriptions/e3fe7a24-7f96-4d9e-bb03-a60836b78bbb/resourceGroups/example-resources
2022/01/27 11:58:24 Testing if Service Principal / Client Certificate is applicable for Authentication..
2022/01/27 11:58:24 Testing if Multi Tenant Service Principal / Client Secret is applicable for Authentication..
2022/01/27 11:58:24 Testing if Service Principal / Client Secret is applicable for Authentication..
2022/01/27 11:58:24 Using Service Principal / Client Secret for Authentication
2022/01/27 11:58:24 Getting OAuth config for endpoint https://login.microsoftonline.com/ with tenant "50c70d3e-8356-4111-82d3-3fb1deae449b"
2022/01/27 11:58:25 Testing if Service Principal / Client Certificate is applicable for Authentication..
2022/01/27 11:58:25 Testing if Multi Tenant Service Principal / Client Secret is applicable for Authentication..
2022/01/27 11:58:25 Testing if Service Principal / Client Secret is applicable for Authentication..
2022/01/27 11:58:25 Using Service Principal / Client Secret for Authentication
2022/01/27 11:58:25 Getting OAuth config for endpoint https://login.microsoftonline.com/ with tenant "50c70d3e-8356-4111-82d3-3fb1deae449b"
2022/01/27 11:58:25 azurerm importing... resource_group
2022/01/27 11:58:25 azurerm error initializing resources in service resource_group, err: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://management.azure.com/subscriptions/%22e3fe7a24-7f96-4d9e-bb03-a60836b78bbb%22/resourcegroups?api-version=2019-05-01: StatusCode=400 -- Original Error: adal: Refresh request failed. Status Code = '400'. Response body: {"error":"invalid_request","error_description":"AADSTS900023: Specified tenant identifier '"50c70d3e-8356-4111-82d3-3fb1deae449b"' is neither a valid DNS name, nor a valid external domain.\r\nTrace ID: ce527b55-0582-4256-83de-19dc6c8b6b01\r\nCorrelation ID: 60fe5c78-3801-4099-a440-5002bf72197f\r\nTimestamp: 2022-01-27 17:58:24Z","error_codes":[900023],"timestamp":"2022-01-27 17:58:24Z","trace_id":"ce527b55-0582-4256-83de-19dc6c8b6b01","correlation_id":"60fe5c78-3801-4099-a440-5002bf72197f","error_uri":"https://login.microsoftonline.com/error?code=900023"} Endpoint https://login.microsoftonline.com/%2250c70d3e-8356-4111-82d3-3fb1deae449b%22/oauth2/token?api-version=1.0
Beta Was this translation helpful? Give feedback.
All reactions