azure-web-app-service

Azure Web App with “https” url to Azure App Api request not working

£可爱£侵袭症+ 提交于 2019-12-25 09:15:50
问题 Angularjs http request to external Azure App Api fails from Azure Web App with "https", but works when url is http. Authentication is turned on in Web App, but requires no action if not authenticated. What am I missing? 回答1: Your issue is about Same Origin Policy , on which you can find detials on this SO answer. To make long story short, you can't call a less secure resource than the page you are on (in your case making an AJAX request from an HTTPS page down to an HTTP resource). 回答2:

Azure app or cloud service, run some code before load balncer

江枫思渺然 提交于 2019-12-25 08:13:14
问题 In case of Cloud Service in Azure (maybe also App Service), how can I run some code before the service become available in swap or in case of new instance. for example, loading data to cache before the first user have access. 回答1: Cloud Services with Roles Place your app init code inside OnStart() . From https://msdn.microsoft.com/library/azure/microsoft.windowsazure.serviceruntime.roleentrypoint.onstart.aspx: public class WorkerRole : RoleEntryPoint { public override bool OnStart() { try { /

I have many B2B and B2C Azure Active Directory instances. How do I assign one to KeyVault?

删除回忆录丶 提交于 2019-12-25 07:34:50
问题 I used the following powershell commands to create an Azure Key Vault: //https://docs.microsoft.com/en-us/azure/key-vault/key-vault-get-started Login-AzureRmAccount –Environment (Get-AzureRmEnvironment –Name AzureCloud) set-azureRMContext -SubscriptionId ( Get-AzureRmSubscription -SubscriptionName "Visual Studio Enterprise").SubscriptionId // Register-AzureRmResourceProvider -ProviderNamespace "Microsoft.KeyVault" (if error occurs in subscription) New-AzureRmResourceGroup –Name "VaVaultRG"

Azure is blocking request that come from the same server

一笑奈何 提交于 2019-12-25 05:04:35
问题 Context Umbraco CMS website runs on Azure as App Service Scheduled Publishing One of the Umbraco functionalities is to allow to publish content on a given time. The publish functionality makes a HTTP call to same web site (or a different server but same website in load balanced environment). API call url: http://sample-site-umbraco.azurewebsites.net/umbraco/RestServices/ScheduledPublish/Index IP Security Due to client requirements, access to the site is restricted to a given list of IP

Disable default trace log messages from Web App in Application insights

家住魔仙堡 提交于 2019-12-25 03:36:28
问题 I have created a Web App in Azure and a Web API in .Net core framework following the instructions in this link. Now in my Web App , Application Insights is enabled. In WebAPI has some similar code for logging. public class Startup { public Startup() { } public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { loggerFactory.AddConsole(); var logger = loggerFactory.CreateLogger<ConsoleLogger>(); logger.LogInformation("Executing Configure()"); } }

Azure Active Directory/Ldap use inside web-app

♀尐吖头ヾ 提交于 2019-12-25 03:16:27
问题 We are currently testing azure web-app functionality for our own apache application. The application works with non security, but the application itself needs direct active directory access via ldap. Example settings inside the application: <ldap> <connectionUrl>wehavenoidea:389</connectionUrl> <roleBase>OU=AADDC Users,DC=ourdomain,DC=onmicrosoft,DC=com</roleBase> <userPattern>{0},OU=AADDC Users,DC=ourdomain,DC=onmicrosoft,DC=com</userPattern> <roleSearch>member={0}</roleSearch>

Integrate additional non-standard identity provider?

拥有回忆 提交于 2019-12-24 20:00:19
问题 App Service uses federated identity, in which a third-party identity provider manages the user identities and authentication flow for you. Five identity providers are available by default. The documentation states that you can also integrate another identity provider. The App Service documentation on authentication and authorization, here: https://docs.microsoft.com/en-us/azure/app-service/overview-authentication-authorization states that besides the Identity providers which are pre

How to use Mysql Connection String inside PHP code which is served by Azure Lunix App Service

眉间皱痕 提交于 2019-12-24 18:47:13
问题 I'm trying to host Wordpress to Azure lunix App service. I created a Azure Database for MySQL, then I got the web app connection string from the connection strings screen. The connection string format is Database={your_database}; Data Source={data_source}; User Id= {user_id}; Password={your_password} Then I created a Linux based app service and added the MySQL connection string to its configuration. Then I used this code in wp-config.php to get the Database connection string form the PHP

Install unixodbc-dev for a Flask web app on Azure App Service

情到浓时终转凉″ 提交于 2019-12-24 18:40:30
问题 I am trying to deploy Flask web app on the Azure App Service. This app is using pyodbc to connect to mssql; however, when I deploy the app I get this error ImportError: libodbc.so.2: cannot open shared object file: No such file or directory I got to know that I can solve this issue by installing unixodbc/unixodbc-dev with the following line: sudo apt-get install unixodbc-dev I tried to do this manually by accessing the SSH of Kudu; however, the issue still persists. I am using a local

Run two different ASP.NET 5 applications under the same Azure Web App

帅比萌擦擦* 提交于 2019-12-24 15:48:44
问题 I have had a look at this question: Publish WebAPI and MVC projects to same Azure Web Site? but it doesn not work properly for the "secondary" application. and from that I learned about virtual directories in Azure web app services ( previously called Azure websites). I am trying to deploy into the same Azure web apps 2 web applications. Both are ASP.NET 5 applications (they will be MVC 6) under a solution called MyOAuth: MyApi: ASP.NET 5 application that should be accessible through myoauth