Issue: Deploying code from development environment in synapse to higher environments using Azure Devops failed due to the below 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
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.
Resolution: Asking your Windows AD/IT admin to create a new passcode value and using it in your devops by following below steps
Go to Azure Devops
Navigate to Project Settings > Pipelines > Service Connections and then to edit connection and this opens up a promt as shown below, here update the service prinicpal key you received from your Windows AD/Entra Admin, paste, verify and save it.
Once you have given the new service principal key, we should be ready to start deploying again.