azure-web-sites

Can I open ports on Azure Websites?

雨燕双飞 提交于 2019-12-19 08:30:44
问题 If I want to self host WCF in a Windows Azure Website by spinning up my own ServiceHost can I host end points on 8080 or any other port I want to? Is there any specific usable range of ports I have access to or is port access entirely blocked? Edit: for absolute clarification this question is NOT about web or worker roles and is only about Azure Websites 回答1: This blog post is slightly out dated now as Windows Azure Websites have more features now (like staging and production slots, WebJobs,

Include TypeScript files in azure git deploy

主宰稳场 提交于 2019-12-19 07:24:59
问题 I'm trying to include TypeScript files in my automatic git deploy so I can showcase code for a framework I'm building. However, whenever I deploy to azurewebsites the deployments do not include the TypeScript files. Site in question: http://endgate-samples.azurewebsites.net/Samples/AnimatedSprites/ What I've tried: Copy all TypeScript files to output folder by setting TypeScript properties to "Copy Always". Issue with this is that I need to change the references to all the files (do not want

Include TypeScript files in azure git deploy

六月ゝ 毕业季﹏ 提交于 2019-12-19 07:24:12
问题 I'm trying to include TypeScript files in my automatic git deploy so I can showcase code for a framework I'm building. However, whenever I deploy to azurewebsites the deployments do not include the TypeScript files. Site in question: http://endgate-samples.azurewebsites.net/Samples/AnimatedSprites/ What I've tried: Copy all TypeScript files to output folder by setting TypeScript properties to "Copy Always". Issue with this is that I need to change the references to all the files (do not want

Managing connection strings in source controlled application that is continuously deployed to Azure websites

淺唱寂寞╮ 提交于 2019-12-19 07:23:51
问题 Here's the scenario: I have multiple developers on an asp.net mvc 4 project. Each developer has a local database. The source control system is TFS at http://tfs.visualstudio.com. We're using Azure websites to host the site. We have also configured Azure websites for continuous deployment. The source control system could be git, mercurial, TFS, etc. Honestly, I don't think it matters. My question is how to accomplish these three things: Each developer has his/her own connection string(s)

Folder permissions in Azure web sites

三世轮回 提交于 2019-12-19 07:22:03
问题 Just getting my head around the new Azure web sites feature and hitting my first obstacle. I'm deploying a PHP site which writes cache data to the file system, but the app is throwing an error because the folder it wants to write to does not have write permission. Is it possible to set permissions on folders or is this a no-no? I can probably work round this but would like to know if it's possible. 回答1: Folder permissions cannot be set/customized. This means whatever location your app writes

Azure Resource Template Dependencies / Application Insights

南笙酒味 提交于 2019-12-19 06:05:32
问题 I have a chicken and egg problem deploying Application Insights with my web application to Azure. In the ARM template, the Application Insights module is dependent upon the web site for the application id (see dependencies in the ARM templates below). On the other hand, in order to fully instrument the web application, I need the instrumentation key from the Application Insights Module. How does one get around this? Application Insights View From the Portal ARM Template for Web App ARM

Azure webjob not appearing to respect MaxDequeueCount property

雨燕双飞 提交于 2019-12-19 05:44:34
问题 I've got an Azure webjob with several queue-triggered functions. The SDK documentation at https://docs.microsoft.com/en-us/azure/app-service-web/websites-dotnet-webjobs-sdk-storage-queues-how-to#config defines the MaxDequeueCount property as: The maximum number of retries before a queue message is sent to a poison queue (default is 5). but I'm not seeing this behavior. In my webjob I've got: JobHostConfiguration config = new JobHostConfiguration(); config.Queues.MaxDequeueCount = 1; JobHost

CloudConfigurationManager vs WebConfigurationManager?

亡梦爱人 提交于 2019-12-19 05:18:14
问题 In an Azure Websites I was always using the following code to fetch some values from the config's app settings: string property = WebConfigurationManager.AppSettings["property"]; Just a couple of days ago I stublemd upon CloudConfigurationManager, and with it I can get the property like so: string property = CloudConfigurationManager.GetSetting("property"); Although CloudConfigurationManager seems like it's better fitted to cloud use, I never had any issues with WebConfigurationManager.

How to use Azure Mobile App service with existing SQL database

試著忘記壹切 提交于 2019-12-19 03:38:11
问题 I've read many articles and tutorials that demonstrate how to use the Azure mobile service however I'm left unclear with many things. I have an existing web app that uses Azure SQL database and is published with Azure. I'm trying to integrate the already created database into the Xamarin Android App I'm developing. I'm confused with the following things. Do I need to change the .Net back end to be able to use the database tables in the Xamarin app? The way I see it, I shouldn't need to since

RavenDB Embedded on Azure Websites - Access Denied

拥有回忆 提交于 2019-12-19 03:23:15
问题 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();