title: Why am I getting CouldnotfetchacccesstokenforAzureStatusCode when releasing to Azure from TFS
body: <p>I wonder if I am the only one getting this CouldnotfetchacccesstokenforAzureStatusCode when deploying(release workflow) from TFS (visualstudio.com) to Azure. Even google doesnt have a clue.</p>
  
  <p>The release workflow profile was set up from within Azure, so I guess the Subscription and Service name are ok. Afterall it manages to get the artifacts transfered. And it HAS been working for a week before it stopped working. It is triggered by a successfull hosted build after a git push. No manual work.</p>
  
  <pre><code>##[section]Finishing: Download Artifacts     
  ##[section]Starting: Deploy Azure App Service     
  ==============================================================================     
  Task         : Azure App Service Deploy     
  Description  : Update Azure App Service using Web Deploy / Kudu REST APIs     
  Version      : 2.1.10     
  Author       : Microsoft Corporation     
  Help         : [More Information](https://aka.ms/azurermwebdeployreadme)     
  ==============================================================================     
  d19c95a6-ebscrabbeldabbeld9c3eb0cfeb exists true     
  ##[warning]Can\'t find loc string for key: CouldnotfetchacccesstokenforAzureStatusCode     
  ##[error]CouldnotfetchacccesstokenforAzureStatusCode 400 Bad Request     
  ##[section]Finishing: Deploy Azure App Service     
  ##[section]Finishing: Release
  </code></pre>
  
  <p>I have "Publish using Web Deploy" and "Take App Offline" and the Control Opption "Enabled" checked. The App Service is version 2. Any ideas? </p>
  
  <p>EDIT: Tried version 3(in preview) and I got a different (but probably the same) error:</p>
  
  <pre><code>##[error]Could not fetch acccess token for Azure. Status Code: 400 (Bad Request)
  </code></pre>