azure-web-sites

Azure Websites Application Insights - switching config

∥☆過路亽.° 提交于 2019-12-02 21:26:55
I have an Azure Website. For the sake of this question, the production version of the website runs on example.com , and a test version of the website runs on sandbox.example.com . The only difference between the two is that they have different configuration. At present, they are running under different websites, and I deploy the same website to each azure website via git. I'd like to separate out the Application Insights data. Is there a technique or process that anyone uses - apart from editing the ApplicationInsights.config file in the sandbox environment post deploy? Or would using a

Does Azure offer https for “cloudapp.net”?

空扰寡人 提交于 2019-12-02 21:17:13
One great advantage of using Azure Websites is that I can get secure HTTP (HTTPS) without doing nothing: I simply type https://xyz.azurewebsites.net and it works. I don't have to worry about certificates because I use the subdomain that Azure gives me (in the example it would be xyz ) So, what I usually do is that people come by through some registered domain I have, eg. http://www.my-application-homepage.com , and there, if they want to use my application, I redirect them to the subdomain at azurewebsites.net , using HTTPS. Now, having said that: I'm in need of upgrading to Azure Cloud

How do I setup Connection Strings for a WebJob project?

假装没事ソ 提交于 2019-12-02 20:19:18
I am trying to setup a website and webjob, but get an error everytime I try to publish the webjob independently of the website (i.e. Selecting Publish as Azure WebJob from the context menu) C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets(4270,5): Error : The 'MyWebJob.Models.MyDataEntities-Web.config Connection String' argument cannot be null or empty. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets(4270,5): Error : The 'MyWebJob.Models.MoreDataEntities-Web.config Connection String' argument

Azure Python Web App Internal Server Error

自闭症网瘾萝莉.ら 提交于 2019-12-02 18:28:26
问题 EDIT: The problem seems to be the importing of packages in my app. All the packages are correctly installed, and i can see them in my wwwroot with kudu. But, when i import them in the scripts, i get the 500 error. The WIERDEST thing is that the problem only occurs when i import the packages this way: from package import something But not this way: import package I also get the same error, when i try to call a package function, meaning i cant access anything from the packages(?) It seems that

Firewall access from Azure app service to blob storage using Virtual Network

爱⌒轻易说出口 提交于 2019-12-02 18:22:49
问题 Originally I tried to restrict access from an app service to blob storage using IP addresses, however it turned out that you can only do this using a Virtual Network: Firewall access from Azure app service to blob storage I want to be able to achieve this without setting up a point-to-site VPN. The steps I have taken to set up a virtual network in Azure are as follows: Created Network security group "securitygroup-frontend", add custom inbound rule called Web with Source: Service Tag, Source

Azure uploaded jar but doesn't run it (Spring boot)

你说的曾经没有我的故事 提交于 2019-12-02 17:43:46
问题 I've got myself an Azure Web App Service and a SQL database to go with it. I'm using Azures Intellij plugin to "Run On Web App". Issue is, it doesn't run anything, however it does put the jar in the folder: Connecting to FTP server... Uploading artifact to: /site/wwwroot/ROOT.jar ... Uploading successfully... Start Web App... Logging out of FTP server... Deploy successfully! I then, using console try to run the ROOT.jar by using java -jar ROOT.jar , but I get the error message Java is not

Can I point my domain name to an Azure web site?

空扰寡人 提交于 2019-12-02 17:16:40
In the current technical preview, Azure lets you create 10 ASP.NET websites. They are given domains such as http://yourappname.azurewebsites.net . Is there currently any way to point a domain name to this website? Or are there any plans to support this in the future? Sandrino Di Mattia Update 18-sep-2012: Windows Azure Web Sites tiers: Free: Allows you to test the Web Site Features Shared: Cheap hosting (with 5 GB/month free) that supports both CNAMEs , A-Records and naked domains . Reserved: Same as shared, but you get a dedicated VM Read all about it in Scott Guthrie's post: Announcing:

How to delete files from Azure Web App during VSTS deployment

泄露秘密 提交于 2019-12-02 14:08:28
问题 I have an Azure Web App where I store some data in the persistent storage of it. Through my VSTS Release Definition, I would like to remove a folder that gets filled in with data. The folder is located at D:\home\site\MyFolder . Is there a way I can programatically remove the folder during deployment time from the VSTS Release Definition? I need to make sure that folder is empty every time a new deployment happens and at the moment I do that manually through the Kudu Web UI. 回答1: Based on

Access performance counter programmatically in Microsoft Azure web app

元气小坏坏 提交于 2019-12-02 13:30:17
问题 Is it possible to access CPU, RAM and ASP.NET requests performance counter from web app via some API? When I call it using System.Diagnostics.PerformanceCounter.NextValue method I get exception: Access to the registry key 'Global' is denied. I have seen examples with Web Roles, but nothing about websites. 回答1: According to this Microsoft Article it is not supported on Azure Websites: Windows Performance counter collection isn’t supported on an Azure WebSite You can however monitor the CPU

Deploy a simple VS2017 Django app to Azure - server error

♀尐吖头ヾ 提交于 2019-12-02 12:43:53
问题 I've been trying to create a Django web app using VS2017 Preview (which includes Python tools for Visual Studio), and deploy the resulting app to Azure (I'm currently on the 30-day trial period to evaluate Azure). I've done the following: Start VS2017, create a new project with the "Django Web Project" template. This creates a Django webpage with the bootstrap template - simple, and everything works well locally. In VS, go to Connected Services => Publish, select "Microsft Azure App Service",