azure-web-app-service

Azure webapp: Stack settings

馋奶兔 提交于 2020-05-08 15:01:47
问题 I can set my stack for a webapp through the portal: I deploy my infra through an ARM template: "apiVersion": "2015-08-01", "type": "Microsoft.Web/sites", "name": "[variables('name')]", "location": "[parameters('location')]", "dependsOn": [ "[concat(parameters('customer'),'-','webapp-small','-' , 'plan','-',parameters('env'))]" ], "properties": { "clientAffinityEnabled": false, "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', concat(parameters('customer'),'-','webapp-small','-' ,

What Can Access “App Settings Key Values”?

為{幸葍}努か 提交于 2020-05-02 02:01:10
问题 In an Microsoft Azure Web App Service under Application Settings , there are Key-Value pair options within the option App Settings . If a developer has PHP or Python files in multiple directories, which of these directories and (or) files would have access to these key-value pairs. Example: Suppose the developer has the following key value pair settings in App Settings : Key: $variableString | Value: "My first example string." Key: $variableNumber | Value: 1000 PHP files: site\wwwroot\index

What Can Access “App Settings Key Values”?

非 Y 不嫁゛ 提交于 2020-05-02 02:00:46
问题 In an Microsoft Azure Web App Service under Application Settings , there are Key-Value pair options within the option App Settings . If a developer has PHP or Python files in multiple directories, which of these directories and (or) files would have access to these key-value pairs. Example: Suppose the developer has the following key value pair settings in App Settings : Key: $variableString | Value: "My first example string." Key: $variableNumber | Value: 1000 PHP files: site\wwwroot\index

We are getting CORS issue in Azure WebAPP still i have allowed all origin as “*”

ε祈祈猫儿з 提交于 2020-04-30 11:04:33
问题 I am getting CORS issue in PROD environment when i am try to login into the site.when i set origin policy as "*" . still it is giving the same CORS issue. Access to XMLHttpRequest at 'https://XYZ.azurewebsites.net/api/users/userlogin' from origin 'https://XYZ.azurewebsites.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. I also have specified the CORS policy in

Requesting refresh token fails.No refresh tokens were found in the token store

我是研究僧i 提交于 2020-04-30 07:41:46
问题 I'm trying to get refresh token for Google from App Services,but I can't. Log says 2016-11-04T00:04:25 PID[500] Verbose Received request: GET https://noteappsvr.azurewebsites.net/.auth/login/google?access_type=offline 2016-11-04T00:04:25 PID[500] Verbose Downloading OpenID configuration from https://accounts.google.com/.well-known/openid-configuration 2016-11-04T00:04:25 PID[500] Verbose Downloading OpenID issuer keys from https://www.googleapis.com/oauth2/v3/certs 2016-11-04T00:04:25 PID[500

Requesting refresh token fails.No refresh tokens were found in the token store

旧街凉风 提交于 2020-04-30 07:41:04
问题 I'm trying to get refresh token for Google from App Services,but I can't. Log says 2016-11-04T00:04:25 PID[500] Verbose Received request: GET https://noteappsvr.azurewebsites.net/.auth/login/google?access_type=offline 2016-11-04T00:04:25 PID[500] Verbose Downloading OpenID configuration from https://accounts.google.com/.well-known/openid-configuration 2016-11-04T00:04:25 PID[500] Verbose Downloading OpenID issuer keys from https://www.googleapis.com/oauth2/v3/certs 2016-11-04T00:04:25 PID[500

How to get latest deployment date of a Function App? Maybe via the Azure REST api?

冷暖自知 提交于 2020-04-30 06:32:06
问题 Like the title says, I need to get the latest deployment date of a function app. I'm trying different Azure REST calls, but I can't find the right one. https://docs.microsoft.com/en-us/rest/api/appservice/ For deployment, I mean every time I make a change to the code and re-deploy the Function App. I'm using Linux/Python environment. I tried using this GET: https://docs.microsoft.com/en-us/rest/api/appservice/webapps/listdeployments#code-try-0 But it returns HTML content like: <html> <head>

React router direct links not working on Azure Web App Linux

天大地大妈咪最大 提交于 2020-04-28 20:47:24
问题 I've developed an PoC about PWA (Progressive Web Apps) using ReactJs to show how to use camera, geolocation, microphone, light sensors and etc from Browser API. I've created a route for each feature in this web app and everything works fine in localhost. But when I deploy the npm build version of my react app on Azure Wep App Linux service it don't work properly. I can access the main page (index.html) and from there I can navigate to any other page, but when I try access any route direct

How can I ssh into “Web App On Linux” docker container on Azure?

我的梦境 提交于 2020-03-27 19:18:12
问题 How can I ssh into the container with the new "Web App On Linux" service? It is currently in preview mode, I'm not sure that it is not possible yet or I have overseen the settings. 回答1: For now, It is not possible. Please refer to this feedback. Update on 2017-6-8 Now, it is possible, please refer to SSH support for Azure Web App on Linux. 回答2: I don't believe you can. But depending on what you want to do (e.g. view log files), you could use bash from Kudu (via Advanced Tools > Debug console

Application Insights configuration web API

喜你入骨 提交于 2020-03-25 18:58:31
问题 I have created a library project for writing logs into ApplicationInsights as well as table storage and is being consumed my different other WebAPI projects. But due to some reason the logs are not getting logged in Application Insights but it works with table storage. private void AddTelemetryTarget(string instrumentationKey, LoggerEnumerations.LogLevel minLogLevel, LoggingConfiguration config) { try { ConfigurationItemFactory.Default.Targets.RegisterDefinition("ApplicationInsightsTarget",