azure-web-app-service

SQL Azure database trigger notification hub

折月煮酒 提交于 2020-01-25 05:52:04
问题 I have a SQL Azure database with one table on Azure and I want to trigger my notification hub when there is a change in the number of rows on my table so that I can send a push notification to my universal app. I tried to trigger a WCF service so that I can then call my notification hub but with no luck. Also I don't think is the best way either anyway. Do you have any thoughts? 回答1: i think that you can try using Logic Apps in this case linked to your services, so whenever there is a new row

how to add custom jars to GLOBAL jetty classpath on azure web app service?

只愿长相守 提交于 2020-01-24 20:14:07
问题 I'm trying to deploy a java web app on jetty on azure web app service that uses postgres data source. The problem is that I don't know how to add postgres JDBC driver to global jetty classpath, which is required by jetty to create the data source before deploying my app (hence I can't just add the driver to WEB-INF/lib subfolder of my war). I've tried to create site/wwwroot/lib/ext folder and put the driver there, but it seems that jetty's ext module which should automatically add all jars

How do I configure “key material” in Identity Server 4 to use SQL, KeyVault, or any other system?

风格不统一 提交于 2020-01-15 02:37:40
问题 The source code for ID4 asks us to "configure key material" for use in production. I've used the following Powershell script to create keys suitable for Identity Server 4. // (not necessary for this question, but others may find this useful) [CmdletBinding()] param( [Parameter(Mandatory=$true)][string]$password = "", [Parameter(Mandatory=$true)][string]$rootDomain = "" ) #https://mcguirev10.com/2018/01/04/localhost-ssl-identityserver-certificates.html#identityserver-token-credentials $cwd =

Deploying .NET Core 3.0 API to Azure Web App using Release Pipeline

有些话、适合烂在心里 提交于 2020-01-14 14:15:55
问题 I'm attempting to upgrade my API from .NET Core 2.2 to 3.0, but I cannot get the Azure Web App to actually run the application using 3.0. My build pipeline configuration: trigger: - master pool: vmImage: 'ubuntu-latest' variables: buildConfiguration: 'Release' steps: - task: UseDotNet@2 displayName: 'Use .NET Core 3' inputs: version: 3.x - script: dotnet tool install --global dotnet-ef - script: dotnet build --configuration $(buildConfiguration) displayName: 'dotnet build $(buildConfiguration

Deploying .NET Core 3.0 API to Azure Web App using Release Pipeline

痞子三分冷 提交于 2020-01-14 14:15:11
问题 I'm attempting to upgrade my API from .NET Core 2.2 to 3.0, but I cannot get the Azure Web App to actually run the application using 3.0. My build pipeline configuration: trigger: - master pool: vmImage: 'ubuntu-latest' variables: buildConfiguration: 'Release' steps: - task: UseDotNet@2 displayName: 'Use .NET Core 3' inputs: version: 3.x - script: dotnet tool install --global dotnet-ef - script: dotnet build --configuration $(buildConfiguration) displayName: 'dotnet build $(buildConfiguration

Method not found: 'Newtonsoft.Json.JsonSerializerSettings Microsoft.AspNet.Mvc.MvcJsonOptions.get_SerializerSettings()'

China☆狼群 提交于 2020-01-12 19:32:01
问题 Locally my project runs fine but when I deploy on Azure using a web app, I get the following error when it starts: MissingMethodException: Method not found: 'Newtonsoft.Json.JsonSerializerSettings Microsoft.AspNet.Mvc.Formatters.JsonOutputFormatter.get_SerializerSettings()'. SmartAdmin.Startup.<>c.b__13_7(MvcOptions options) I've tried this: services.AddMvc(options => { options.Filters.Add(new UserPreferencesLoaderAtrribute()); var jsonFormatter = (JsonOutputFormatter)options.OutputFormatters

Does Azure Web Apps share disk between multiple instances?

馋奶兔 提交于 2020-01-12 14:58:31
问题 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

Why is the azure app service django deploy keep failing?

泪湿孤枕 提交于 2020-01-11 13:30:12
问题 It's been 1 month and I still can't figure out what's wrong with me or app service in azure. I used python 2.7 and django 1.11.3, with this requirements.txt beautifulsoup4==4.6.0 certifi==2017.7.27.1 chardet==3.0.4 Django==1.11.5 idna==2.6 olefile==0.44 Pillow==4.2.1 pytz==2017.2 requests==2.18.4 urllib3==1.22 When I deploy with Local Git Repository to Azure Web Service(Python2.7, Windows) it doesn't seems to install the requirements. I tried wheel but it doesn't do anything, and via scm

Azure Web Job Run Command Incorrectly Set

对着背影说爱祢 提交于 2020-01-06 05:22:10
问题 I have an azure website running as an App Service which I publish to Azure from Visual Studio. I have multiple webjobs which are all linked to the main web project. When I add a new webjob it fails because the wrong RUN COMMAND is attached to it. For instance, the webjob QuarterHrsWebJob fails because it has somehow been set up with a Run command of "doctap.exe". doctap.exe is the exe belonging to a different webjob (called doctap) - but somehow it has been assigned to QuarterHrsWebJob as

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?