azure-web-sites

Web Apps with App service plan

怎甘沉沦 提交于 2019-12-01 00:43:09
Reading this article , and specially this paragraph: The SKU and Scale of the App Service plan determines the cost and not the number of apps hosted in it. Can I create as many Web Apps as I need into the same resource group with the same App Service Plan? For instance, I have a RG named S1-Resources and a S1 App Service Plan. If I create for instance 3 Web Apps into that RG linking them to the App Service, Will I be charged $0.10/hr for each Web App? I found a good explanation here https://docs.microsoft.com/en-us/azure/app-service/azure-web-sites-web-hosting-plans-in-depth-overview Basically

How to connect remote SFTP from Azure web site scheduled job

烈酒焚心 提交于 2019-11-30 23:26:37
I have one console app which will be scheduled as job in AZURE web site. From that console app I want to connect remote SFTP and get all files and save them in my folder inside AZURE web site.Also if it possible remove them from SFTP after transfer. RASKOLNIKOV First of all best and free option to use in this case is WinSCP .NET assembly . You can download it from here So lets start this is the function: public static void GetSftp(string host, string user, string password, int port, string source, string dest, string remoteDest) { Directory.CreateDirectory(dest); var winScpSessionOptions = new

RavenDB Embedded on Azure Websites - Access Denied

99封情书 提交于 2019-11-30 22:26:09
I get an Access denied message when I try to deploy my MVC4 site with an Embedded instance of RavenDB to the new Azure Websites preview feature. The site works fine locally. Here is how I configure Raven: //Initialize the RavenDB Data Store Raven.Database.Server.NonAdminHttp.EnsureCanListenToWhenInNonAdminContext(8887); var documentStore = new EmbeddableDocumentStore() { DataDirectory = "~\\App_Data", UseEmbeddedHttpServer = true, Configuration = { Port = 8887 } }; documentStore.Initialize(); And here is the stack trace when I browse to the site: Access is denied Description: An unhandled

Programmatically retrieve the site URL from inside an Azure website

不问归期 提交于 2019-11-30 21:39:13
Azure websites have a default "site URL" provided by Azure, something like mysite.azurewebsites.net. Is it possible to get this URL from inside the website itself (i.e. from the ASP.NET application)? There are several properties in the Environment and HttpRuntime class that contain the name of the website (e.g. "mysite") so that is easily accessible. Things are getting complicated when not the default but e.g. the staging slot of the site is accessed (that has the site URL like mysite-staging.azurewebsites.net). So I was just wondering whether there is a straightforward way of getting this

Azure WebSite Always On

大城市里の小女人 提交于 2019-11-30 21:23:36
I have a WebAPI application running on Azure WebSites. It is running in Basic mode and I have the option to make it "Always On". There seems to be conflicting information online about what this means exactly. I know the effect, but the "how" matters a lot here. In particular, does something automatically hit an endpoint in my application periodically? If so, can I control the endpoint it hits? As I mentioned, it is a Web API application and the default route does non-trivial work and results in a notable amount of outbound traffic and it will also result in items being placed onto a work queue

Web Apps with App service plan

余生长醉 提交于 2019-11-30 20:42:27
问题 Reading this article, and specially this paragraph: The SKU and Scale of the App Service plan determines the cost and not the number of apps hosted in it. Can I create as many Web Apps as I need into the same resource group with the same App Service Plan? For instance, I have a RG named S1-Resources and a S1 App Service Plan. If I create for instance 3 Web Apps into that RG linking them to the App Service, Will I be charged $0.10/hr for each Web App? 回答1: I found a good explanation here https

MVC AD Azure Refresh Token via ADAL JavaScript Ajax and KnockoutJs

你。 提交于 2019-11-30 20:22:36
There is an inherent design flaw in the type of MVC application I have built and I believe I'm not the first to realize. I have an MVC 4 Application that utilises AD Azure Authentication that was introduced to the application in the following way Developing ASP.NET Apps with Azure Active Directory Once as User is Authenticated and Home.cshtml loads, KnockoutJs is used to perform JavaScript AJAX POST and GET requests to read and write data. So not exactly a Single Page App, but rather, a mix of traditional postbacks for Authentication and Serving Assets and Read/Write operations through AJAX.

Azure: \"You do not have permission to view this directory or page

社会主义新天地 提交于 2019-11-30 19:37:10
I have created a node.js application in Visual Studio 2015 using the Azure SDK 2.7 and the Node.js Tools. I have successfully set up CI with BitBucket in my web app and I can see that changes to the repository do indeed trigger a build and deploy. However, the page I reach ( http://ftct.azurewebsites.net/ ) complains: You do not have permission to view this directory or page. I have specified a default file (kinda) in my node.js by using: app.get('/', routes.index); So trying to navigate directly to this file, http://ftct.azurewebsites.net/signin.html , yields a different error: The resource

No packages found with specified pattern

橙三吉。 提交于 2019-11-30 19:30:31
I am using Deploy azure app service to slot build step in Team Services, I want to be able to build my solution with PackageAsSingleFile set to False. However when I try to release the package with path to the artifact created I get "No packages found with specified pattern". Do I need to create two artifacts, one as zip file and one as a package of files to be able to do what I want? I have tried different path to folders, but I get same error no matter. Refer to these steps: NuGet Installer task to restore package Visual Studio Build task (Solution: ***.sln; Visual Studio Version: Visual

New Azure Distributed Cache for Azure Websites in Reserved Instance Mode

五迷三道 提交于 2019-11-30 19:19:55
Something that seems to be absent from the otherwise great new features for Windows Azure (announced on June 7th), is the ability to define distributed caches for the reserved instances of a Website Cluster in Reserved Instance Mode. As of now it seems to be only possible to create distributed caches for standalone webroles or worker roles. Does anyone know a workaround or know if this is something that is coming? The reason why I'm asking this is because it forces me to create a dedicated worker role for caching and since I'm contrained by costs I can't afford another three instances just for