I get the below error when I try to publish my website from VS2017 to Azure. P.S : I already have an Azure account and url created for my website. Error description:
Web deployment task failed. (Connected to the remote computer
("rdproduct1.scm.azurewebsites.net") using the Web Management Service,
but could not authorize. Make sure that you are using the correct user
name and password, that the site you are connecting to exists, and
that the credentials represent a user who has permissions to access
the site. Learn more at:
http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.)
There are 2 areas that have to be setup to allow this to happen.
1). Azure portal - Locate the AppSvc Resource you're trying to deploy to. Under the action selection blade, select deployment credentials. Enter a username & pw. It has to be unique and doesn't need to tie to your email or login 2) Within Visual Studio. Right click on the project to deploy and select publish. When the publish page shows up, in the 'Summary' section to the right of the site URL you will see a hyperlink for "Settings" select it. In the page that comes up now, enter your user name and pw in the areas identified. Select Save. Once back on the previous page now hit the "Publish" button. Assuming your build is successful the app should publish with your "authentication" to the app service in Azure.
Related
Why it is that when clicking on API, it is displaying the popup as shown in the picture, rather then going to the API page?
I have publish the project and reset content but then also no change?
How can I activate the site?
It seems to me that some setting is still remaining
You open the developer portal as administrator:
Follow the steps below to access the managed version of the portal.
In the Azure portal, navigate to your API Management instance.
Select the Developer portal button in the top navigation bar.
A new browser tab with an administrative version of the portal will open.
In this administrative version of the developer portal, you are able to modify the look & feel,...
If you want to use the developer portal as a usual user, you have to open the developer portal in a browser with private mode or with a different browser and sign in.
Using this Official Azure tutorial. I have work Azure account that I can successfully login. The account allows $150 per month of which I have $93 left.
But, as instructed in Publish to Azure App Service section of the tutorial, when I select Azure App Service as the Publish Target on the wizard, it takes me to following screen where I sign in as my work Azure account. But it does nothing after I login, and the Next button stayed grey. When I click on can't access account button and fill in requested info, I get the next screen (also shown in the image below). I, then first successfully logged in to my Azure account from outside of VS2017 and then tried the above process again but still the same issue:
UPDATE
Moreover, I just deployed the same app using this Official Azure tutorial that is not using Visual Studio. But I want to able to deploy it using VS2017 as I create projects using VS2017 only.
I think your problem is the identity (MS acct) which you are logged into VS2017 with. You want to be sure that you are logged in to VS with the account which has rights to the subscription where you are trying to publish. Assuming that's your org account:
Click on your profile in the upper right corner and choose Account Settings. The window that pops up has a link to Add an account. You'll want to add your org account here. Now VS has the proper creds to publish to your subscription.
To verify that the creds are working, use the menu item View -> Cloud Explorer. You should see the other assets you've created in the target subscription.
I try to setup a azure web apps to use Dropbox as the source, BUT
1, I can not choose the folder, it force me to create a new folder, when I click the choose folder menu, it only list one which is the name of this new web apps, doesn't showing the other existing folders in my dropbox. But I have some existing folders under the dropbox, which some of them are using by my other web apps.
2 then I try to change the account, go the authorization menu, when I click the Change Account button, it open a new window with http 400 error, with following information:
https://www.dropbox.com/oauth2/authorize?client_id=kiqukvsyjo7cymc&redirect_uri=https%3A%2F%2Fportal.azure.com%2FTokenAuthorize&response_type=code&state=09f09ec2-13d0-4613-97c2-19abdab1957d
Error (400)
It seems the app you were using submitted a bad request. If you would like to report this error to the app's developer, include the information below.
More details for developers
Invalid redirect_uri: "https://portal.azure.com/TokenAuthorize": It must exactly match one of the redirect URIs you've pre-configured for your app (including the path).
.
This used to work very smoothly but seems not working anymore.
Any idea?
It was an issue on the App Service side, caused by the switch over to the v2 Dropbox API. Both issues are now resolved, so you should be able to change the account as well as pick an existing folder.
i'm new to azure, and just deploying phpBB from the app gallery
is there any way to add new styles/extention to it?
Thanks
When you use the Gallery, you are just creating a web service and automatically uploading whatever software into that service.
To modify your web app, you can FTP into it. First, you need to create an FTP login:
In the blade for your web app, click All settings:
Click Deployment credentials.
Enter a user name and password.
Click Save.
The full FTP user name is “app\username” where app is the name of your web app. The username is listed in the web app blade, under Essentials.
Then follow this phpBB guide for installing styles: https://www.phpbb.com/support/docs/en/3.1/kb/article/how-to-install-styles-on-phpbb3/
When it comes to the FTP steps, use the info you see on your web app and the login you just created.
Extensions are installed a similar way.
Alternatively, you could also set up a git repo with a copy phpbb in it, then push that repo onto your web app. But that is more complicated, FTP is your most direct bet to modifying your phpBB web app.
I'm trying to connect to default web site on localhost – but IIS asks me for credentials (I know I can use an Administrator account, but I'm trying to log on when IIS is not run as an Administrator). I tried putting in the administrator user name and password for windows, but it doesn't accept them.
I'm using windows 7 home premium.
What should I enter?
ok - so anonymous is enabled. The next thing to check is that the identity the website is running under has access to the website folder. Each site in IIS runs in an application pool, and each pool runs under a user account. So first find out what app pool you're running under. On the right hand side click on Advanced Properties and check the name of you application pool. Then close that window and double click on application pools above your website on the left. Click on the app pool your site is running under, and then click advanced properties on the right. In the dialog box that launches, under process model check the value of Identity. Then go check the permissions on your website folder and make sure that identity has a minimum of read and execute rights on the folder.
Added another answer as the text above exceeds the comment limit
If you're trying to set your identity for a site to run under then you either need to run it as the local system account or you need to create a new user account on the machine and use those credentials.