multiple app service plans with single (bizspark) subscription - azure

We have BizSpark subscription with shared app service plan, where we are hosting our product. I need to host another version of the project for testing purpose, which fits into a free tier. I have checked the azure portals, but there is no provision to add a new service plan. does the BizSpark subscription support only one app service plan or am I missing anything?

Because an App Service services is an underlying component to other services, there isn't a simple way to directly create an App Service.
Since the only use case to create an App Service is to put something in it, the logic (I imagine) behind the Portals is that you create the resources you require and and it will create dependent resources within that process.
(Using the New Portal)
In order to create a new App Service plan, presuming you are deploying a new Web App. Click on New, Web + Mobile and then Web App.
When you click on Web App you will get this screen, if you fill in the details, and click App Service plan / Location at the bottom, you will be given the opportunity to select either an existing App Service or to create a new one.

The easiest solution would be to create a new Web app and when asked for App Service create a new one .. or use Azure Resource Manager template to achieve this: https://azure.microsoft.com/en-gb/documentation/templates/.

If it's another version of the App for testing purposes, why not use Deployment Slots? Slots have their custom URL separate from the Production app, separated configuration, domain bindings, it's like an App inside an App. You'll be able (if you want) to even swap the content of the Production environment with the Testing one for example.
And you don't incur in any extra cost because it runs on the resources of the current App Service :)

Related

Publish two-layer application on azure and create a subdomain

I have two-layer application my front end is written NuxtJS and my back end is written in .NET core.
I would like to publish this in azure. Should I be interested in azure static application or app services?
I would also like to create a subdomain where I can have a separate administration panel.
I would like to get this result:
exampledomain.com - Shop
admin.exampledomain.com - Admin panel
Can someone guide me how to publish such an application and how to create such a subdoemene in azure?
You can achieve that with Azure App Service, and publish multiple Web Apps inside the same Application Service Plan, but they will share the same compute resources.
To setup a custom domain, you just need to choose a plan that supports it and follow the following official doc:
https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain?tabs=cname

2021 Follow-up Question to Map subdomain to virtual directory Azure WebApps

Map subdomain to virtual directory Azure WebApps
Is this solution still valid in 2021? I'm trying to accomplish the same thing as Tony. We have the "App Service" and I want to map a custom domain to the sub-directory which is a mini-web-app using the main app resources. i.e.
mainapp.azurewebsites.net/pages/mini-app
The issue is that I can't just add a "Web App" to my App Service Plan as described above. If I'm in the App Service view in Azure i don't see an option to add another web app. If I try to add a new App Service it wants me to create a completely new one that is not linked to the mainapp.azurewebsites.net
Any advice?

Publishing a web application on Azure

I want to publish an web application on Azure market place.
I can create a Linux VM, install Java, Tomcat, SQL server and create an image of it. But instead of that, is it possible to create a tomcat instance along with database on Azure portal, add it to a resource group and publish this resource group on market place?
Would this approach be more advantageous?
thanks
As per the doc here:
https://learn.microsoft.com/en-us/azure/marketplace-publishing/marketplace-publishing-getting-started
Azure Marketplace offerings are based on Azure VM images or solution templates, your current solution would be the VM based route. It sounds like you may want to look at the solution template route to leverage other capabilities such as Azure SQL Server.
Neither route enable "publish this resource group to the market place". If that is the route you are aiming for that is essentially building out a multi-tenant application which is a bigger task and perhaps something like this link will help get you started:
https://azure.microsoft.com/en-gb/blog/with-newly-available-services-azure-continues-to-be-the-best-place-for-software-as-a-service-developers/
There are also other stackoverflow answers which may be of help:
Does a developer have to pay for publishing a SaaS app on Windows Azure Marketplace?
How can i publish my web solution to Marketplace

Can't delete Azure App Service plan

I am trying to delete everything related to a mobile app back-end I previously created, and I was able to delete everything but the app service plan.
It shows that the App service plan has no connected apps and no pricing tier, but I still can't delete it:
And when I try to click on the plan to see its details, the portal goes into an infinite loading state and nothing else happens:
Can anyone help me solve this problem?
I had a similar issue. The app service plan couldn't be deleted, but I wasn't able to access is properly from the Azure Portal. I managed to remove the plan like this:
Make sure all related apps (web jobs, ...) were removed.
Open PowerShell and log in to your Azure account: Login-AzureRmAccount.
Remove the app service plan: Remove-AzureRmAppServicePlan -Name <name> -ResourceGroupName <resourcegroup>.
If you delete the ResourceGroup it is located in, it will dissapear.
Nowadays it's possible to move most resources between ResourceGroups.
So you can create a new ResourceGroup, for example "ToBeDeleted", and then move the AppServicePlan to "ToBeDeleted" and then remove the ResourceGroup.
Once I had a WebApp in an App Service Plan (only one). There was some problem with the Aplication, and it was consuming all the CPU of the plan. I then moved the WebApp to another plan. It started to consume all the CPU (~100%) in the new (destination) App Service Plan.
After moving the app, in Azure portal, the original App Service Plan appeared as having "0 apps, 0 slots" (empty), yet the CPU was still around 100%. Weird!
Azure wouldn't let me remove that empty origin App Service Plan, telling me to first remove all the App it contained (which should be none).
I guessed Azure had registered the movement of the WebApp to the destination App Service Plan, yet some process was somehow stuck in the original App Service Plan, and until the process wouldn't end, I wouldn't be able to remove the App Service Plan (hence I would pay for it).
My trick here was to Scale Down that original App Service Plan. It was Premium, and I scaled it down to Free. When you scale up/down, Azure migrate deploys your app on a new set of machines. That is the stuck process would then forcely disappear. No new process was spawned on the new machine, as Azure had no account of any app being deployed on that App Service Plan anyway :)
Once scaled down to Free, I was instantly able to remove the empty plan.
So, in case you have any such problem, scale Up or Down the plan. It will assign new VMs, with no remaining processes nor new app process (as no apps are registred to the empty plan!)
Make sure no Resource Group is attached to the Service Plan.
I had the same issue and below fix worked for me.
Go to Resource Group tab in Azure portal.
Delete the attached Resource Group and then App Service Plan will delete automatically.
To confirm, go to All Resource tab and you should not see that App Service Plan anymore. Refresh if required or wait if delete is still in-progress.
Hope that helps.
I have just delete a service plan right now without issues.
Looks like any transient situation in azure Web Apps, try again/verify in a few minutes.
If the problem persist you can create a support ticket here:
Support Ticket
After deleting the Recourcegroup, it's no longer possible to rech the Service Plan over the portal!
If you don't have some Important things running on them, you can cancel the subscription.
Home --> Subscription --> Cancel subscription.
That stops everything and all billing costs.
Then you can add a new one.
To make the new subscription visible, you have to go setting --> Directories + subscriptions --> Default subscription filter --> select new subscription --> logout --> login.
On new Azure portal:
Click on your App service plan
Delete it
I had the same problem, also tried the script which executed without errors. In the end I pressed F12 to bring up the browser dev-tools, checked "disable cache" in the network tab and refreshed the web page with the service plans. And it's gone :)

Accessing Azure Storage Services from Azure Websites?

I'm curious to know if this is possible, and if so, is it a good or bad idea?
We are developing an Azure application that is largely centered around worker roles that receive their work on a CloudQueue, and put the results in a CloudBlob, that the client then downloads. The web interface itself is a dead-simple ASP.NET MVC site that throws jobs in the CloudQueue, and builds URLs to download CloudBlobs.
Currently we accomplish this by having a Azure Cloud Project in our solution, which has a Web Role with the UI, and Worker Roles with the actual work.
Could we use Azure Websites to publish and host the UI, which calls back to our Worker Roles? The Azure DLLs are just regular old .NET libraries, I'm assuming Azure Websites won't have a problem with them. So, when we want to update the UI, we just publish with Visual Studio. And when we want to update the Worker Role - which is 300MB+ and has a bunch of nasty dependencies like Crystal Reports - we can build the cloud bundle and update the Cloud Service through the Azure management portal.
This seems to me like doing this would make it easier to update the UI. I think it would also be cheaper to host it, as we won't have to buy a bunch of instances for the Web Role.
If your question is "Could we use Windows Azure Websites*", based on your application architecture, you sure can use Azure Website to deploy your front end and configure all the networking connection properly so you can continue access other Azure Storage services. As you are using mostly Blob and Queue, you can continue use HTTP/HTTPS settings in the Azure websites. You can keep worker role by as it is however if it is very complex to deploy, using Windows Azure VM may be another direction to go.
I could say website deployment could be easier if your web app does not have something complex to configure in web server as websites may not be able to match web server level configuration compare to webrole and Azure VM. Answering "Easier and cheap" could be very subjective as this is all depend on load and distribution so you would have to try and evaluate it.

Resources