azure-web-sites

How to restrict access to an App Service using a setting inside the Azure Portal

跟風遠走 提交于 2019-11-30 10:56:24
We have a web app that is deployed as an App Service in Azure. We would like to restrict access to it by having a white list of IP addresses that can be done in some Azure App Service setting and not in web.config that we have inside the project. Currently, this is how we do IP address restriction in our environments. Production: We have VNet Integration setup for the App Service. We attached an NSG to the VNet's Subnet and from the NSG we can control inbound and outbound access. Staging: We have the following block of configuration in our web.config that contains the whitelisted IP addresses

Is there way to determine why Azure App Service restarted?

余生颓废 提交于 2019-11-30 10:41:23
问题 I have a bunch of websites running on a single instance of Azure App Service, and they're all set to Always On. They all suddenly restarted at the same time, causing everything to go slow for a few minutes as everything hit a cold request. I would expect this if the service had moved me to a new host, but that didn't happen -- I'm still on the same hostname. CPU and memory usage were normal at the time of the restart, and I didn't initiate any deployments or anything like that. I don't see an

Rename an Azure App Service plan

痞子三分冷 提交于 2019-11-30 10:40:32
Is it possible to rename an App Service Plan ? I have already tried in both the old and new portals and can't find any rename options. Zain Rizvi No, you can't. However, if you create a new App Service Plan in the same region and resource group then you can move all your sites to the new App Service Plan and delete the old one. No but you can change it like this (if it is in the same region and resource group as mentioned by Zain Rizvi): Create a new App Service Plan and bind it to the correct Subscription and Resource Group. Example: Then go to your App Service and choose "Change App Service

Can I easily stop/start Azure Webjobs without going through the UI or FTP?

爱⌒轻易说出口 提交于 2019-11-30 09:56:08
The Azure management interface is abhorrently slow to load up the web jobs list, and the new portal just times out and fails 95% of the time. We have a lot of WebApps (often deployed per region) in Azure running web jobs. It's extremely cumbersome and slow to have to go through the UI to do all this. I know that the Kudu API offers start/stop mechanisms for web jobs and you can just drop a file called 'disable.job' in the job folder to stop it, but these all require going through the extremely annoyingly slow UI to download publish credentials ($username, password). Is there a PowerShell

Powershell for an Advanced Application Restart on an Azure Web App

自闭症网瘾萝莉.ら 提交于 2019-11-30 09:55:10
It is possible to use Restart-​Azure​Rm​Web​App PowerShell to restart a web app but this will restart all servers in the plan simultaneously, giving a short downtime. The Azure Portal has an "Advanced Application Restart" feature that uses a time delay between restarting individual instances. Is there any way to invoke that from PowerShell? According to your description, I suggest you could firstly find each instance's process in your web app by using Get-AzureRmResource command. Then you could use Remove-AzureRmResource to stop these processes. Then when you access the azure web application,

How to secure access from App Service To Azure Sql Database using virtual network?

∥☆過路亽.° 提交于 2019-11-30 09:35:52
Scenario I want to use virtual network in order to limit access to Azure Database only from my App Service, so that I can turn of "Allow access to App Services" in firewall settings What I have done: I went to App Service -> Networking -> VNET Integration -> Setup -> Create New Virtual Network I've created new VNET with default settings. When VNET was created I went to App Service -> Networking -> VNET Integration and ensured that the VNET is connected I went to SQL Firewall settigs -> Virtual Network -> Add existing Virtual Newtork and selected my VNET. I've left default subnet and address

Change Azure Website Subscription

馋奶兔 提交于 2019-11-30 08:53:20
问题 I had a free trial with windows azure, I was out of the country and it ran out. I have now upgraded to a pay-as-you-go account. All good. However, my previous websites still run off my old subscription, is there any way to reactivate these websites using my new pay-as-you-go subscription? 回答1: If you upgraded the existing free account versus opened a new pay-as-you-go account, this should have been a seamless transition. You can contact support - use the Billing Questions option and then

How can I determine the IP address of an Azure hosted WebApp

烈酒焚心 提交于 2019-11-30 08:48:11
I am using Azure platform for a webapp. I need to find out IP address of my web app so that I can whitelist it to an external server where I have created APIs. Is NSLookup the correct way to determine the IP address for whitelisting? The quickest way would be to login to the Azure portal and select your web app from the resources menu. Once you have the blade open for your web application there are two types of IP addresses. Inbound and outbound. For outbound IP, click properties from the resources menu. This will display a list of all possible outbound IP addresses. For inbound IP address,

How can I use “Azure File Storage” with Web App Service?

ぃ、小莉子 提交于 2019-11-30 08:21:47
I have been struggling to find some resources that help explain, how we use the File Storage with Web App Service. There are ways to use it with the old Web Roles, Check here ( Using the Azure File Service in your Cloud Services (Web and Worker Roles) ). However, there is NO OnStart() methods in "Azure Web Service". If you're looking for mapping a drive to your Azure File Service share in your Web App using SMB protocol, then I don't think you can do as of today. What you could do is make use of Azure File Service REST API and manipulate shares and files that way. You don't have to actually

How do I set an ADO.NET Entity Framework connection string via the Windows Azure (Preview) Management Portal?

江枫思渺然 提交于 2019-11-30 07:20:48
问题 In the Windows Azure (Preview) Management Portal you can change the configuration options for web sites (see http://www.windowsazure.com/en-us/manage/services/web-sites/how-to-configure-websites/#howtochangeconfig). I currently set the connection string for my ADO.NET Entity Framework connection via Web.Release.Config, but I want to set it via the Management Portal, but no matter what I use, I always end up with the following error: The specified named connection is either not found in the