Synapse workspace deployment Error- connect ENETUNREACH
Issue:
We have installed and added the synapse workspace deployment in our DevOps environment and created a release pipeline to push the ARM template (Development) to the Production environment. But during deployment, we are getting the below error.
[error]Encountered with exception:Error: Get workspace location error: Error: connect ENETUNREACH 169.254.169.254:80
Solution:
Follow the below steps to resolve the issue.
- Navigate to Azure DevOps and go to releases, click the correct project, and edit it.
- Click on the stage that was failing, open the run agent task to deploy
- Click manage azure subscription and click manage service principal
- In Azure Portal, click on the expired registration, and click on the red error that has expired
- Click + new client secret and copy that new key
- Go back to DevOps
- Click edit on the screen of service connections (where we left at step 3) – (the subscript of the title here is Azure Resource Manager using service principal (manual))
- Paste that copied key in the field ‘Service principal key,’ and click ‘Verify and save’
Create a new service connection and try again.