Share via

Running into issues with Azure devops while creating Static Web App

Sanjay Tiwari 0 Reputation points
2026-02-19T04:56:36.9066667+00:00

Here is the error I am getting

"Failed to create a Personal Access Token for this user in Azure DevOps. Please deploy your app using the 'Other' deployment source instead of 'Azure DevOps'. After the app is created, open it and follow the instructions to get the token and deploy your app. 

On my DevOps side my organization under user settings I have the PAT token created.

Azure DevOps

3 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 18,251 Reputation points MVP Volunteer Moderator
    2026-02-19T08:47:56.0866667+00:00

    Hello @Sanjay Tiwari,

    The error message you’re encountering indicates that there was a failure in creating a Personal Access Token (PAT) for your user in Azure DevOps. To resolve this, you should deploy your app using the ‘Other’ deployment source instead of ‘Azure DevOps’. After the app is created, you will need to open it and follow the instructions provided to obtain the PAT necessary for deployment.

    To create a PAT in Azure DevOps, you can follow these steps:

    1. Sign in to your Azure DevOps organization.
    2. Navigate to User settings and select Personal access tokens.
    3. Click on New Token, provide a name, and set an expiration date.
    4. Choose the appropriate scopes for your token based on the tasks you need to perform. For example, if you need to manage agent pools, select Agent Pools (Read & manage). After configuring, click Create and make sure to copy the token as it will not be displayed again after you leave the page.

    If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.

    Was this answer helpful?

    0 comments No comments

  2. Rakesh Mishra 9,080 Reputation points Microsoft External Staff Moderator
    2026-02-19T08:32:09.8233333+00:00

    Hi @Sanjay Tiwari ,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    Please try below and let me know if it works.

    Enable OAuth Access You need to enable third-party OAuth access in your Azure DevOps organization:

    1. Sign in to Azure DevOps at https://dev.azure.com/{your-organization-name}
    2. Navigate to Organization Settings:
      • Click on "Organization settings" in the bottom left corner
    3. Go to Policies:
      • Under the "Security" section, click on "Policies"
    4. Enable OAuth Access:
      • Find the setting "Third-party application access via OAuth"
      • Toggle it to ON User's image

    Was this answer helpful?


  3. Sanjay Tiwari 0 Reputation points
    2026-02-19T05:06:38.2+00:00

    Hello,I have given blank "full access" and yet I am running into same issues

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.