azure-webapps

Connect an Azure App Service to an Azure SQL Database with Windows Authentication

假如想象 提交于 2020-01-05 04:11:11
问题 We have: an Azure App Service (like myappservice.azurewebsites.net ) (written in C# & .net core 2.2) An Azure SQL Server (like myserver.database.net ) Currently the App Service connects to the SQL Database via SQL Server Authentication (login+password). However, if possible, we would like to have Windows Authentication . i.e. the service should be able to login without sending username and password. That way we would not need to store any login information in our service. Is that possible?

How do I get Shiny-server to working with Azure Active Directory

给你一囗甜甜゛ 提交于 2019-12-24 10:49:56
问题 I am using Azure Webapps for Containers to host an R Shiny-Server. I want to use Azure Active Directory to authenticate and authorize the user logging into the app. I am using the rocker/shiny image from dockerhub and the image builds and run easily. However, when I am turning on Active Directory the app does not work anymore. Any hints and clues on what might be wrong would be of great help. 回答1: I got the same problem of an "empty" page, because loading of static files by the browser

System.Drawing is not supported on this platform on Azure Function

眉间皱痕 提交于 2019-12-13 13:31:18
问题 I have read the following answer. It states that App Service sandboxing has some restrictions Win32k.sys (User32/GDI32) Restrictions For the sake of radical attack surface area reduction, the sandbox prevents almost all of the Win32k.sys APIs from being called, which practically means that most of User32/GDI32 system calls are blocked. For most applications this is not an issue since most Azure Web Apps do not require access to Windows UI functionality (they are web applications after all).

How to remove .php extension on Azure PHP Web App

ぃ、小莉子 提交于 2019-12-13 03:56:23
问题 How do I remove the .php extension on a Azure PHP Web App ? using at htaccess file with the following, does NOT work RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php Ideas ? 回答1: Azure Web Apps use IIS to host your application. The best equivalent of Apache's .htaccess system is actually using web.config file to handle URL rewrite in IIS. For example, you can just put the following web.config file into your web app's root

Nextjs + expressjs + Azure Web App : two factor authentication with express ('fs' can't be used on client side)

落爺英雄遲暮 提交于 2019-12-11 17:27:27
问题 Stack : next.js/express.js/typescript/nodemon I have a dependency on azure devops api which seems to be using 'fs' under the hood. So I can't use this library in any of the pages (including in getInitialProps). I created a custom route (call it "get_data") in express server which provides me with the data. I call this route in getInitialProps of the page that will render the data (call it data.tsx) . The whole app is behind two factor authentication in azure web apps. when get_data call is

For an Azure App service with a managed identity, how to retrieve the Client ID

好久不见. 提交于 2019-12-11 08:55:44
问题 How can I retrieve the client id of an Azure Web App (or App Service, generally) for a system-assigned identity? In the identity blade, I only see object id. I need this to enable AAD service to service access, and the service I am calling will authorize my request using my client id that it extracts from the token I send it. However, I don't know how to find my client id. 回答1: When you enable System Assigned Managed Service Identity for your App Service web app, it creates a Service

Deploy web app to Azure but still showing Microsoft page instead

。_饼干妹妹 提交于 2019-12-11 07:49:35
问题 I'm trying to deploy my web app to Microsoft Azure and everything goes fine in visual studio. But when it launches it shows: Hey, App Service developers! Your app service is up and running. Time to take the next step and deploy your code. How can I show my web page instead of this page? Here is the output I get in Visual Studio. ------ Publish started: Project: RCMania, Configuration: Debug Any CPU ------ Transformed Web.config using C:\DDAC\Assignment\RCMania\RCMania\Web.Debug.config into C:

Azure Portal doesn't see DevOps organization [account problems?]

佐手、 提交于 2019-12-10 19:59:26
问题 I'm having trouble connecting my Azure Web App to my Azure DevOps organization. I somehow managed to do it for one Web App (by selecting creating a new 'DevOps Project') but now struggle at setting a new WebApp to link to that same DevOps pipeline. (The goal is to have a two stages delivery pipeline, which requires 2 webapps: one for QA, the other for Prod). When creating a new WebApp, I go to Deployment Center > Azure Repos > Azure Pipelines (Preview) and get the following error message :

Azure Global VNet peering and WebApps

雨燕双飞 提交于 2019-12-10 11:59:01
问题 I am using Global VNet peering in Azure (2 networks in 2 different regions) and I'd like to access a VM I have in one of them from a WebApp I'd like to integrate with the other. I have tried integrating the WebApp through a gateway and also directly without a gateway (the preview function) and I managed to see VMs from the same VNet but I am unable to access the VM from the globally peered VNet by its private IP. Is this possible to achieve and if so, how? Thank you. 回答1: Yes, It's possible

Azure ad app - Updating manifest programmatically

喜欢而已 提交于 2019-11-28 08:55:30
问题 I am trying to find a way to update an Azure Ad registered app's manifest via powershell, utilizing a json file. The Json file contains all of the app roles, and i would like to simple inject the App Roles: [] right into the App Role Brackets Is there a way to achieve this via power shell or CLI? 回答1: Yes you can update the Azure AD Application's manifest through PowerShell. Specifically to add App Roles, here's a PowerShell script. In case you're trying to do this while creating a new