Create Azure Website from command line, PowerShell - azure

I'm looking into the possibilities of hosting several websites in Windows Azure.
Right now, I have a dedicated server where I have developed a Windows Service which performs the following tasks every 5 minutes:
Looks at a table in a database
Finds new sites Creates the site in IIS
Creates the database on the SQL server
Deploys an MVC 3 package to IIS with parameters for connection strings and such
In Azure, I can't find a way to create a Website from PowerShell looking at the Cmdlets docs here: http://msdn.microsoft.com/en-us/library/windowsazure/jj152841.aspx
What looks strange, is that using the command line tools for Mac and Linux you can create new sites: https://www.windowsazure.com/en-us/manage/linux/other-resources/command-line-tools/#Commands_to_manage_your_web_sites

That's right, there is no PowerShell support for WAWS at the moment. Here is the answer from Microsoft on the WAWS forum: http://social.msdn.microsoft.com/Forums/da-DK/windowsazurewebsitespreview/thread/f4e69962-a1ec-437f-b205-bb1664242ed2

You can install the cross platform tools on Windows. First install Node.js then run npm install azure -g.
You then have access to Windows Azure Web Sites tools. You can watch me demo the tools on this episode of WebCampsTV

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.

How Console in New Windows Azure Portal Works?

In the new Windows Azure Portal, how does the "Console" Window works? What really happens behind the scenes? I am curious to know how it works internally.
(I can't find that out for myself since I don't have an Azure account :-( )
http://assets.andrewconnell.com/media/Default/Misc/AzurePortalManager04.png
I actually made this console as my internship project while at Microsoft. It was made before the xplat-cli was available, but it's still very simple and actually uses the Kudu service. Kudu is the engine behind git/hg deployments, WebJobs, and various other features in Azure Web Sites. More information on Kudu here: https://github.com/projectkudu/kudu/
When your web application is created on azure, Kudu stands up a scm website for your web application with the end point yoursite.scm.azurewebsites.net. The console then takes commands that you give it, calls Kudu's REST API using the scm website as the endpoint, and then displays you the output in the console.
That console looks exacly like the Azure Cross-Platform Command-Line Interface (xplat-cli) which is based on node.js. I'm not a node.js expert, but a good guees would be, that the browser creates a node.js session und runs the xplat-cli in there.
xplat-cli in turn use the Service Management API of Azure, which are all REST-based.
You can compare the xplat-cli on your own by installing them from the Downloads page. At the bottom of this page are the download links for Windows, Mac, and Linux.

AS3 Integration With Azure Cloud Hosting

Does anyone know if Aptana Studio 3 can integrate directly with Azure cloud hosting like it does with Heroku or Engine Yard? Want to avoid the GitHub option if possible as public account.
From the official site for Aptana Studio 3 I see that it supports FTP as a standard publishing method.
You can use this method (ftp) to Deploy your application to Windows Azure Web Sites. And here is a quick tutorial on how to publish to Azure Web Sites using FTP. It will guide you through the process of creating deployment credentials and how to get the FTP site address.
I have been looking at other IDE solutions and recently came across PHPStorm - it has ftp, SVN and Azure integration as standard (amongst others) so am going to stick with it and because it's also an excellent code editor. Happy days!

How to publish dotnetnuke website to azure?

I am looking at migrating a dotnetnuke website to Azure. I need both staging and production versions of the site to be running.
I have looked at using Azure Websites, but at the moment there is no support for SSL on custom domains so this can't be used for the production website. I have migrated the staging site to an Azure Website and now have numerous options for publishing updates (ftp, git, using web matrix).
Due to the constraints of Azure Websites, I used the DNN Accelerator to create a cloud service for the production environment. This set up will allow me to have control over IIS and therefore manage SSL certificates (I think).
The problem I have with this is there does not seem to be any publishing options. The only way I can publish is by connecting to the Azure instance via RDP and then copying the website files onto the files system.
Are there any other ways of publishing? I have looked at converting the website to a WAP, but I believe this has implications when it comes to updating to new DNN versions.
You should never publish your application through RDP since these changes are non-persistent (meaning what you published might disappear after a hardware failure / ...). Adding new instances would also mean that these instances don't have the files you published before.
I suggest you start by looking at the DotNetNuke Azure Accelerator first. If this doesn't fit your needs you might always try to build something yourself, but if you want to say with a regular website and not a web application I wouldn't count on Visual Studio support. In that case you might want to look at creating a package from the command line and using startup scripts to add your website in IIS.
Sounds like you need to use a Start-up task to install the files in the correct place for a Web Role (Cloud Service) Smarx has a nice overview here, MSDN has a wealth of info too http://blog.smarx.com/posts/introduction-to-windows-azure-startup-tasks
Another option is IAAS for Azure with a persisted VM, more work mind you, Cloud Service would be the most efficient and correct solution...

Reg hosting php mysql application in windows Azure

Our application is developed using PHP 5.2.14 and MySQL 5.1.41. One of our client wanted to host this in windows Azure.
We searched and understand from below links that we can host php application in cloud.
Host PHP in the Cloud with Windows Azure -
http://www.sitepoint.com/windows-azure-php/
Migrating from MySQL to SQL Azure Using SSMA -
http://blogs.msdn.com/b/ssma/archive/2011/03/23/migrating-from-mysql-to-sql-azure-using-ssma.aspx
We did not done this before. Please advise to proceed in a right way. Please advise what are the issues will come
Thanks
The usual route is this :
1/ Migrate your application to PHP 5.3
PHP 5.2 is deprecated and although it can run on Azure you'll be on your own when you encounter issues..
2/ Migrate the data to Sql Azure
The migration assistant is one way to go. Notice that Visual Studio 11 beta can update a lot of things on your Sql Azure Schema without loosing your data, so you may consider installing that as well.
3/ Update your code to use php_pdo_sqlsrv.dll or php_sqlsrv.dll
do NOT use the old mssql drivers for this. When you try to connect to your Sql Azure database don't forget that the user is really username#machine and not simply username
4/ Deploy to Azure
Once you have done all these on your local machine (you'll connect to Sql Azure from your dev box), you'll begin deploying to Azure. Don't do it before, you'll just waste your time.
5/ Fix extensions and permissions issues
6/ Replace local storage with blob storage or Azure storage when needed.
The link you talks about using eclispe plugin for deploying PHP application to Windows Azure. This plugin is very old and not based on Full IIS support in Windows Azure Web role. Now you should use Windows Azure SDK for PHP to package and deploy PHP application to Windows Azure. Please refer following link for details:
http://phpazure.codeplex.com
http://azurephp.interoperabilitybridges.com/articles/packaging-applications
regards,
Satish

Resources