azure-web-sites

“Could not create SSL/TLS secure channel” in an Azure Web Application

南笙酒味 提交于 2019-12-04 03:47:35
问题 My Azure Web Application needs to connect to various servers (both with and without SSL). This works perfectly as long as I run the application in my local IIS Express or IIS 7.5 on Windows 10. As soon as I deploy the application to Azure it stops working for certain servers that require SSL (thought not all). If I run it through ssllabs these normally get an A while the ones that work get a B or a C. So I would assume that .NET on an Azure instance supports less ciphers than I locally

Preventing staging site restart during a swap

你说的曾经没有我的故事 提交于 2019-12-04 03:20:29
问题 From how I understand it, the only reason a staging site would require restart is if there exists app settings or connection strings configured as slot settings. Although this doesn't always seem to be true. One of our applications will restart regardless. I have used Powershell cmdlets to be sure that there are no slot settings "hidden" from the Portal (because apparently this is a thing). What other factors can determine whether the staging site will be restarted during a swap? (I posted

Does Azure Web Apps share disk between multiple instances?

大城市里の小女人 提交于 2019-12-04 03:17:07
According to what David Ebbo said in the Azure runtime environment article, when you spin up 2 or more instances the files in the file system are moved to Azure Storage (Azure Blobs or Files) and are shared between all instances of the same Web Apps. Which means when a Web App Instance #1 create a Reamem.txt file in the file system, a Web App Instance #2 can modify, remove etc. this file. Does Azure Web Apps really share disk between multiple instances? If yes, is there any way to change this behavior? Yes. The website content is stored in a blob, which is then mounted by the instance. If

Can we deploy a C# 7 web app to Azure using Kudu?

最后都变了- 提交于 2019-12-03 23:22:38
Since Visual Studio 2017 is released and we can use the new C# 7 features I expected this will work when deploying on Azure Web apps. Unfortunately we're seeing compile errors when using continuous deployment (kudu git deploy) so it seems Azure doesn't support the new toolchain yet. Is there anything we can do to get this to work now (besides publishing the assemblies directly)? since we don't yet have msbuild15 in Azure. if you want to use c#7 features with continuous integration, you may need some workaround for dotnet core web solution , you can build it in Azure out of the box . (it uses

Authorize one app service from another (no user interaction) in ASP.NET Core 2.0

断了今生、忘了曾经 提交于 2019-12-03 20:52:42
I have a Web API app in Azure facing internet (PubWeb), so it's used from anywhere. And I created a Web API (again, in Azure, let's call it InWeb). And I want strong security rules: InWeb must be used only by the PubWeb. This might involve some network security - that's an easy part (in Azure). PubWeb must be authorized by Azure AD somehow in order to use InWeb services. Service Principals, certificates, etc comes to mind. But I'm not sure. So what's the best possible solution for 2? UPDATE - here's InWeb Core 2.0 Auth setup: public void ConfigureServices(IServiceCollection services) {

How do I store files on Windows Azure Web Site?

扶醉桌前 提交于 2019-12-03 20:51:57
问题 I just read an article about Windows Azure Web Site and would like to evaluate this service. My company just developed an ASP.NET MVC based website that enables our customers to download files we provide as well as upload files. Both works based on URLs that we send. The workflow is easy: 1. We login to our website, upload a file and retrieve a link generated by the site 2. We send the link to the customer by e-mail 3. The customer can use this link without the need to authenticate and easily

How to configure Azure AD to enable refresh tokens

蹲街弑〆低调 提交于 2019-12-03 20:27:39
I have an Azure App Service / Web API linked to Azure AD and authentication is working, however client tokens are expiring after 1 hour, so I want to enable the OAuth refresh_token. When I inspect the results of calling /.auth/me on my service I don't see a refresh_token. Token store is enabled on the app service. I have tried to add it to the oauth2permissions in the Azure AD manifest as follows, but it doesn't appear (I have restarted the App service and redeployed my service in case of caching of tokens) : "oauth2Permissions": [ { "adminConsentDescription": "Allow the application to store a

Grunt fails to run on Azure Web Site

只愿长相守 提交于 2019-12-03 17:57:49
问题 I'm trying to build and package my project using Azure's Git deployment. I have created the following files .deployment deploy.cmd Gruntfile.js package.json My .deployment file calls deploy.cmd . deploy.cmd sets up the environment by setting the path to include a checked in copy of Node.js and npm. I can call npm install just fine. When I call grunt , it seems to execute up to the first standard out message, then it returns and the error return code is set. I don't get any other message than

Maximum number of domains supported in Azure Websites

时间秒杀一切 提交于 2019-12-03 16:10:42
We're building a hosted service where each of our users gets a custom sub domain on our service's domain when they sign up (for example john.myservice.com ). We handled this by adding a wildcard entry in our Azure Website's domain manager ( *.myservice.com ) and Azure Websites would now correctly handle all sub domains of the domain we added. However, we also allow our users to map their own custom domains to their sub domain (for example: johnsmith.com points to john.myservice.com ). Right now we've achieved this by adding an A Record to johnsmith.com 's DNS pointing to the Azure Websites IP

Azure Website Continuous Deployment always picks up the wrong project

徘徊边缘 提交于 2019-12-03 15:55:46
I have the following folder structure in my TFS online: The folder names also match the project names in the solution. Legend: green dot: web api 2.0 project red dot: class library blue dot: console app added as a webjob to the web project grey dot: console app only used for testing Working folders for build definition: The build definition was created automatically by connecting Azure to TFS online, and I have only changed the folder, so instead of the Team Project root folder, it points to the folder of this branch, containing the solution file and the folders in the first picture. (This