An error occurred during execution: Error: Get workspace location error: Could not fetch access token for Azure. Verify if the Service Principal used is valid and not expired.

Boyapati haribabu 0 Reputation points
2025-08-12T06:26:11.8266667+00:00

Can anybody help this one i was getting this issue :

2025-08-12T05:17:07.7528279Z ##[section]Starting: Synapse: DEPLOY (templates)
2025-08-12T05:17:07.7532471Z ==============================================================================
2025-08-12T05:17:07.7532599Z Task         : Synapse workspace deployment
2025-08-12T05:17:07.7532675Z Description  : Deployment task for synapse workspace v2
2025-08-12T05:17:07.7532768Z Version      : 2.5.0
2025-08-12T05:17:07.7532829Z Author       : Microsoft Corporation
2025-08-12T05:17:07.7533077Z Help         : Displays the name of your extension v2
2025-08-12T05:17:07.7533167Z ==============================================================================
2025-08-12T05:17:08.0583574Z Bundle source :  https://web.azuresynapse.net/assets/cmd-api/main.js
2025-08-12T05:17:08.0588041Z Starting deploy operation
2025-08-12T05:17:08.0821363Z Workspace info url:  https://management.azure.com/subscriptions/<abcd>/resourcegroups/ab/providers/Microsoft.Synapse/workspaces/ab?api-version=2019-06-01-preview
2025-08-12T05:17:08.3661927Z deploy operation failed
2025-08-12T05:17:08.3673927Z An error occurred during execution: Error: Get workspace location error: Could not fetch access token for Azure. Verify if the Service Principal used is valid and not expired. For more information refer https://aka.ms/azureappservicedeploytsg
2025-08-12T05:17:08.3699287Z ##[error]Encountered with exception:Error: Get workspace location error: Could not fetch access token for Azure. Verify if the Service Principal used is valid and not expired. For more information refer https://aka.ms/azureappservicedeploytsg
2025-08-12T05:17:08.3757752Z ##[section]Finishing: Synapse: DEPLOY (templates)
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
{count} votes

1 answer

Sort by: Most helpful
  1. Boyapati haribabu 0 Reputation points
    2025-08-12T14:11:54.2466667+00:00

    We using only to allow work load identity federations only service connections


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.