Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Answered

PowerPages Edit Code in VSCODE Web

(0) ShareShare
ReportReport
Posted on by 13

Hi All,

 

I must be missing something as I am attempting to edit my "Home" Power Pages page with the "Edit Code" button, I get the message Edit in Visual Studio Code for the Web, however upon loading I get the warning "The extension 'Power Platform Tools wants to sign in using Microsoft".  I press allow and then I sign in with my MS account I use but am immediately shown an error: 

 

Authorization Failed. Please run again to authorize it
There was a permissions problem with the server
 
Any ideas where I need to set the permissions for this to allow Editing of the code in VS?
 
Many thanks

 

Categories:
  • Verified answer
    dex87865 Profile Picture
    13 on at
    Re: PowerPages Edit Code in VSCODE Web

    Hiya,

     

    This has now been resolved in my case and it was relating to a CA Policy blocking 365 App login to other countries.

     

    I assume perhaps this some sort of sandbox so logs in from places like Amsterdam data centre.

     

    Hopefully it helps you as well.

  • ajax01 Profile Picture
    2 on at
    Re: PowerPages Edit Code in VSCODE Web

    Hi I am experiencing the same issue

    Is there a workable solution, I have tried everything listed on post and am still getting the same error as OP

    Thanks

  • Lucas001 Profile Picture
    2,182 Super User 2025 Season 1 on at
    Re: PowerPages Edit Code in VSCODE Web

    Hi @zylgwyn,

     

    is anybody in your company able to login? If not have a look at your blocked websites in your company, maybe you need to add vscode web as exception.

     

    I would recommend trying the vs code plugin and see if you have access to the power page and can work on desktop vs version. For that follow: https://www.youtube.com/watch?v=0SKXP7rQx4g

     

     

  • zylgwyn Profile Picture
    9 on at
    Re: PowerPages Edit Code in VSCODE Web

    Hi @Lucas001 

    you are right, it says I'm not logged in using any account. 

    I tried to turned on the sync setting I got this error. 

     

    zylgwyn_0-1688625730270.png

    I got few users try to reproduce the same thing and they all got similar error. 

     

  • Lucas001 Profile Picture
    2,182 Super User 2025 Season 1 on at
    Re: PowerPages Edit Code in VSCODE Web

    Hi @bdcollins, @zylgwyn,

     

    you should be able to login yourself even in the VS Code Web.

    What is stated down at your account?

    Are you logged in?

    Lucas001_0-1688623187305.png

     

  • zylgwyn Profile Picture
    9 on at
    Re: PowerPages Edit Code in VSCODE Web

    Hi Lucas, 

    Thank you for responding to this thread. Unfortunately, we did that as well but no luck.

     

    When first open the VS Code, there's prompt saying 'the extension Power Platform tools wants to sign in using Microsoft' followed by sign in prompt and then it says the authorization failed. 

     

  • Lucas001 Profile Picture
    2,182 Super User 2025 Season 1 on at
    Re: PowerPages Edit Code in VSCODE Web

    Have you tried different browser?

     

    I for myself use firefox with the Multi-Account-Container AddOn so that all the new tabs are opened with the same account.

  • zylgwyn Profile Picture
    9 on at
    Re: PowerPages Edit Code in VSCODE Web

    Hi Everyone, 

     

    I'm also having the same issue, whatever I do, it always says 'Authorization failed' for all users in our organisation. Everyone has admin level access. We did installed XRM Toolbox as workaround, but I think VSCode is far more superior, robust and more interactive as IDE. 

     

    There's no currently support to raise a ticket for this particular product, but I did ask support through 'Power Apps' support, but no response so far. 

     

    So, please any help on this issue will be a great deal for us moving forward as this product has heaps of potential in the market. 

     

    Thanks. 

  • dex87865 Profile Picture
    13 on at
    Re: PowerPages Edit Code in VSCODE Web

    Hi,

     

    I have created another site (PowerPage) in my Environment with the same outcome but have not created a new environment.

     

    Thanks

  • Lucas001 Profile Picture
    2,182 Super User 2025 Season 1 on at
    Re: PowerPages Edit Code in VSCODE Web

    Hi @bdcollins ,

     

    do you have another PowerPage where you could try to use VS Code?

    The reason is to see if something is wrong witht he page or with the rights settings

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43