web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / PowerPages Edit Code i...
Power Pages
Unanswered

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:
I have the same question (0)
  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @bdcollins ,

     

    Can you confirm the Account you're using to Authorize is having administrative rights?

     

    Thanks,

    Saud

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • dex87865 Profile Picture
    13 on at

    Hi, The account i am using is a Global Administrator, I have also tried another 3 accounts I have with varying permission levels on my tenant. Although I am not sure what specific permissions are needed for this to work.

     

    I am able to edit the Power Pages Home page in non VSCode.

     

    Thanks

  • Lucas001 Profile Picture
    2,429 Super User 2025 Season 2 on at

    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

  • dex87865 Profile Picture
    13 on at

    Hi,

     

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

     

    Thanks

  • zylgwyn Profile Picture
    9 on at

    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. 

  • Lucas001 Profile Picture
    2,429 Super User 2025 Season 2 on at

    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

    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,429 Super User 2025 Season 2 on at

    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

    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,429 Super User 2025 Season 2 on at

    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

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard