azure-web-sites

Azure Web App Trace logs not appearing in log

百般思念 提交于 2019-12-01 04:14:31
问题 I am using Azure Web App Application Logging, and I followed the online tutorial, and made the following setup: I get an exception and in my catch block I have the following code: Trace.TraceError("abc"); Trace.TraceInformation("abc"); Trace.TraceWarning("abc"); Trace.WriteLine("abc"); Console.WriteLine("abc"); In the logs I get this: 2017-02-13 03:30:14 ~1ENGINEMAILERAPI GET /api/vfs/site/wwwroot/ _=1486950157594&X-ARR-LOG-ID=149fee3f-8da3-460e-816e-10e7a4b95f1d 443 - 121.121.23.217 Mozilla

Azure Resource Template Dependencies / Application Insights

Deadly 提交于 2019-12-01 04:00:59
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 Template for Application Insights Brett The solution is to have the connection strings and app settings

Git push to azure websites with submodule

天大地大妈咪最大 提交于 2019-12-01 03:59:53
So far, I've been publishing a site to Windows Azure Websites via Git without any problems. But today we added a submodule to our project and Azure didn't seem to like working with submodules. The build fails because my app depends of the submodule and Azure sees an empty folder instead of the submodule code. Any ideas? Kudu is enabling using git sub-module now 来源: https://stackoverflow.com/questions/11939728/git-push-to-azure-websites-with-submodule

How to remove WebDAV module from IIS?

牧云@^-^@ 提交于 2019-12-01 03:56:40
问题 I am struggling for days to enable PUT and DELETE request for my PHP app at MS Azure. Some answers I found suggest to remove the WebDAV module from IIS. How would I do so? 回答1: I've spent a whole day on this and tried every solution I ran into yet nothing worked for me. What finally worked was turning off the "WebDAV Publishing" feature from Turn Windows features on or off. This is located under: Internet Information Services\World Wide Web Services\Common HTTP Features\WebDAV Publishing. 回答2

Visual Studio Online continuous deployment to Azure Website with publish profile

被刻印的时光 ゝ 提交于 2019-12-01 03:33:30
问题 I am using Visual Studio Online to deploy my project continuously after the CI build pass. However I have to use a publish profile to build the production web.config transform so that the deployed website will be using the production DB instead of dev DB. I have followed Scott Hanselman's blog post to add the MSBuild arguments in the CI build definition. My arguments are like this: /p:DeployOnBuild=true /p:PublishProfile=[publish profile name] /p:AllowUntrustedCertificate=true /p:UserName=

Export Azure SSL certificate as pfx file

為{幸葍}努か 提交于 2019-12-01 02:49:52
问题 I purchased a wild card certificate from azure. It sits right now in the Key Vault. I need to upload it to our other server which hosts one of our other applications for the same domain. There is no option to export the certificate as a .pfx file anywhere in azure portal. Please help. 回答1: You can create a local PFX copy of Azure App Service Certificate using PowerShell. Provide appropriate values from the following variables and save the script as copyasc.ps1 . Variables:

CloudConfigurationManager vs WebConfigurationManager?

落花浮王杯 提交于 2019-12-01 02:44:27
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. Should I be using CloudConfigurationManager? What are the differences between the two? In what cases

Git push to azure websites with submodule

狂风中的少年 提交于 2019-12-01 01:31:16
问题 So far, I've been publishing a site to Windows Azure Websites via Git without any problems. But today we added a submodule to our project and Azure didn't seem to like working with submodules. The build fails because my app depends of the submodule and Azure sees an empty folder instead of the submodule code. Any ideas? 回答1: Kudu is enabling using git sub-module now 来源: https://stackoverflow.com/questions/11939728/git-push-to-azure-websites-with-submodule

Add many domains to an azure web site

耗尽温柔 提交于 2019-12-01 01:20:22
问题 I'm migrating a pretty serious multi-tenant application to Azure, and one of the challenges I see coming is that it hosts over a hundred domains. On the Azure side, the only way I see to add a custom domain is hand-entering them via the portal. I would really like to script this out with Azure PowerShell or (perhaps less desirable for this one-off operation) one of the .Net APIs. I did find this, which shows that it can be done with one of the REST APIs: Add a domain to an Azure web site via

How do I configure Perfect Forward Secrecy in Windows Azure (OS, or Websites)

半世苍凉 提交于 2019-12-01 00:44:15
I want to move my website to Windows Azure, but need to make sure that I'm using PFS on all my instances and roles. (regular web roles and Websites as well) How do I configure this so that each deployment is automatically configured this way? Simon Opelt This excellent article by André N. Klingsheim explains detailed options for hardening the SSL/TLS configuration on Windows Server and Windows Azure. This includes Disabling SSL Enabling TLS Changing Cipher Suite Priorities The author additionally provides a NuGet package as well as related source code for handling these updates during Azure