How to enable extensions on an Azure App? - azure

I have activated an app service and a mysql database on microsoft azure.
What I would like to do now is activate the phpmyadmin extension in order to use it for database management.
The problem is that the Extensions item is always disabled from the Azure app service menu.
Following online directions I successfully created a new mysql connection string using this format:
Database=DBNAME;Data Source=MYSQLHOST;User Id=USERID;Password=PWD;
Despite this, the Extensions item is still disabled.
I have also restarted the app but nothing has changed.
Following the path advanced tools > go for the kudu I get this:
https://ibb.co/txKDCPY

If the Extensions on the App Service menu is greyed out, you could go to the Kudu site to add the extension you want.
On the App Service menu, choose Advanced Tools, click Go. You will see your app's Kudu site, on the top of the bar , you could find the Site extensions. Then choose Gallery and search the extensions you want like phpmyadmin. Then you could clike the + button to install the extension.
Update: msdn answer

From your description, it might be that you are using a linux web app. As such, the phpmyadmin is installed as part of the docker image.
To load phpmyadmin you should visit /phpmyadmin.
The credentials are available under the application settings on the web app itself.
More details : https://blogs.msdn.microsoft.com/appserviceteam/2017/06/07/mysql-in-app-feature-for-web-apps-on-linux/

Related

Azure Kudu toolbar missing menu items

I'm trying to install a site extension to my Azure web app, however my Kudu toolbar only has two menu items, environment and debug console.
Many tutorials about the topic have a site extensions menu item on the toolbar. What should i do to have site extensions on Kudu? My application is a Standard: 1 Small -tier web application.
As #Kaushal Kumar Panday said, according to your screenshot, you are using Web Apps on Linux, so there is not any site extensions which be ready for Web Apps on Windows.
Web Apps on Linux is a Docker container based on Ubuntu, which you can see it via the tab Docker Container on Azure portal and Kudu Debug console with command uname -a.
If you need to install more componets or language runtimes, you just need to use Kudu SSH terminal via the url https://<your linux webapp>.scm.azurewebsites.net/webssh/host to update the apt source via apt-get update and search for you wants via apt-cache search <keyword for package> install via apt-get install <packages of you wants> like doing these operations on local Ubuntu environment. For more details, you can refer to the offical tutorial SSH support for Azure Web App on Linux to know them.
Hope it helps.
So as I said, site extensions are not visible if the app is hosted on Azure Web App (Linux).
Currently there is no way to get the Site extensions on Azure Web App (Linux). You can list all the site extensions here: https://www.siteextensions.net/
Most of the site extensions that exists are mostly written by the community and were mainly written for IIS (Windows). You could however, create a request for this on the Azure Web Apps feedback site.
I think we should get lot more contributions from the Open Source community to create site extensions for Azure Web Apps on Linux.

adding a file/styles/extention in phpBB from azure gallery

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.

Web service migration from Local IIS to Azure

I Used Azure Website Migration Assistance to migrate my web service that was running on my Local VM's IIS. My Migration process was successful and also I was able to use this web service. But I can't find where to find the migrated source code in azure portal. All I can see is some 20Mb of data in on the dashboard graph of azure portal. If I need to changed some of my code where to do this?
What is on the Azure Web App should now match what was on your IIS server. Now, to update the web app, you can use the deployment techniques here: https://azure.microsoft.com/en-us/documentation/articles/web-sites-deploy/
The simplest method to deploy to check what content is on your web app would be to use the SCM site. This is available at: https://your-site-name.scm.azurewebsites.net. Go to Debug Console > CMD and then the site > wwwroot folder to see your web app content. You can also upload to the site via drag and drop.
Alternatively, you can download the publishing settings for your web app via the portal and then re-use the migration tool, select the site, and then upload the publishing settings. However I would suggest using the deployment techniques above first. (Disclaimer: I wrote the migration tool.)
There are multiple ways to push changes to your Azure Website/Web App. They are listed here: https://azure.microsoft.com/en-us/documentation/articles/web-sites-deploy/
One simple way is to use an FTP client like FileZilla. In the classic portal, you will find the FTP address (hostname) and the credentials in the dashboard tab. In the new portal, select your Web App and the FTP address will be displayed in the Essentials section at the top of the page. Click on Settings and Deployment credentials to set your FTP user password.
Another simple alternative is to use Dropbox. Take a look at this video for how to set instructions: https://channel9.msdn.com/Series/Windows-Azure-Web-Sites-Tutorials/Dropbox-Deployment-to-Windows-Azure-Web-Sites

Azure: Is there a way to view deployed files in Azure?

Is there a file "view" available in Azure?
When I log in to Azure to look at a website I've deployed there is no obvious see exactly what files Azure is hosting.
I can see there's the Visual Studio Online option which allows you to live edit your server code but that is more than I need. I just want to be able to check that certain files are deployed and others are not.
If you're just trying to look around, and see the various directories and files in your deployment, you can enter the site's "Kudu" dashboard, using the url format http://<yoursitename>.scm.azurewebsites.net
This will give you a web-based dashboard, including a debug console (web-based) where you can explore your various directories (and the directories will show up visually as well).
More info can be found in this post from the Azure Websites team.
In Visual Studio, in the window "Server Explorer" you click and connect on "Azure".
=> App Service
=> Your site name
=> Files
Here you see all your files and you can edit them directly in Visual Studio.
##### UPDATE 19/08/2019 #####
For some time now, it hasn't worked anymore.... :(
Here is another way to do it: By FTP !
From the Azure portal, in the "App Service" section of your website, go to "Deployment Center" > FTP > Dashboard
There is the FTPS Endpoint => ftp://.....ftp.azurewebsites.windows.net/site/wwwroot
And username, password information.
Install FileZilla Client! (https://filezilla-project.org/)
Enter Host with "FTPS Endpoint" the "username" and "password" and then login quickly!
You can use App Service Editor (previously known as Visual Studio Online). It can be found under your webapp -> Development Tools section in the Azure Portal.
I know this is old, but I just found it, and got some useful tips from it. If you are using an App Service, there is now a browser option to do this as well:
https://YourAppService.scm.azurewebsites.net/dev/wwwroot/
You can get there from the Azure portal, then go to your App service, then scroll down to Development Tools, and click on "App Service Editor".
In VS2017/2019, there's Cloud Explorer to view files in Azure, but each time open folder to view files will invoke connection to cloud, so you have to wait, that's a bit slow.
To open Cloud Explore, Right click on project > Publish > Manage in Cloud Explore, or Top Menu > View > Cloud Explorer.
Yes, you have many options to see that
By clicking Console option (run "dir" command, will list down all files)
By hitting App Service Editor(Preview) option,
Adding to the accepted answer,
you can open an ssh session by going to http://<yoursitename>.scm.azurewebsites.net/webssh/host.
For a long time, I've looked for a linux-style terminal to view my deployed files and environment variables. With this you can view the files, check and set environment variables, make db migrations directly, and a lot more. Hope this is useful.
That could be relevant: AppService->Console
You can use Visual Studio Code and the Azure extension
Since you are using Azure Websites, Azure wants to "manage" it for you, and as a result, you cannot connect to the VM itself. If you were using a Cloud Service, you can obtain the RDP information from the Azure Console and just remote into the machine.
For your situation, you can use FTP as an option. Here is blog that describes one approach:
http://blogs.msdn.com/b/avkashchauhan/archive/2012/06/19/windows-azure-website-uploading-downloading-files-over-ftp-and-collecting-diagnostics-logs.aspx
Here is another option using WebMatrix:
http://www.microsoft.com/web/post/how-to-edit-a-site-hosted-on-windows-azure-with-webmatrix

How to get .publishsettings for Web Deployable Web Role?

I enabled the Web Deploy feature for my Web Role and deployed it.
But how can I get hold of the .publishsettings file so I can create a Publishing Profile for it?
This 2 year old article states that it should have been created automatically, but I haven't got that in my profile manager.
Any ideas?
If you are using Visual Studio 2012 or greater, the server explorer to the left will have several Azure items.
Specifically the Windows Azure Compute is what we are looking for, right click on that and say 'add deployment environment'. You will then be prompted with a dialog that allows you to sign in and download publish settings file:
You can get publishsettings file from the following link: https://windows.azure.com/download/publishprofile.aspx
Well, the problem was really behind the keyboard.
So the publishing profile is actually provisioned correctly and automatically to the Web project as the documentation states.
The problem and confusion was that I have a secondary web application in my Solution that I also publish to the same Web Role (referenced as an additional Site in the ServiceDefinition.csdef file).
That Web Project does not get the Publishing Profile, and when I try to create a profile manually, it doesn't work since that (secondary) IIs instance is not configured for Web Deployment.
Oh well, back to the tedious Cloud Service deployment it is...

Resources