azure-web-app-service

Powershell script to fetch Azure WebApp details

爷,独闯天下 提交于 2021-02-20 04:50:39
问题 I'm trying to write powershell script which gets all webapps and few properties of each azure web app. Below is the script i tried but it's giving me Http20Enabled is not valid property error. I think somehow i'm using the wrong scope. I need to get properties of Webapp and SiteConfig of that webapp in a single row in CSV file. Get-AzureRmWebApp | ForEach-Object { ($webapp = $_) | Get-AzureRmWebApp -ResourceGroupName {$webapp.ResourceGroup} -Name {$webapp.Name} | select -ExpandProperty

How to set a secret in Azure Key Vault from a local asp.net application

帅比萌擦擦* 提交于 2021-02-19 02:49:08
问题 I have a local asp.net core 3.1 application that I want to set a secret in an Azure Key Vault. The following is the code I used from Microsoft: string secretName = "xxSecret"; string keyVaultName = Environment.GetEnvironmentVariable("KEY_VAULT_NAME"); var kvUri = "https://" + keyVaultName + ".vault.azure.net"; var secretClient = new SecretClient(new Uri(kvUri), new DefaultAzureCredential()); string secretValue = "test"; secretClient.SetSecret(secretName, secretValue); KeyVaultSecret secret =

Where to store the JSON file which will be referenced for the environment variable in asp.net hosted on Azure

纵饮孤独 提交于 2021-02-19 02:39:43
问题 I have created a Web Service using ASP.NET and will be storing data in Firestore. Hence, I will need to set the GOOGLE_APPLICATION_CREDENTIALS environment variable referring to a JSON file. This works locally on my machine, but it doesn't work when it's published to Azure. The problem is I couldn't find the JSON file to locate the file path, I have double checked my local project folder whether the JSON file is in there before publishing. May I know where is the best place to store my JSON

Azure Web App Deployment error via msdeploy - ERROR_INSUFFICIENT_A CCESS_TO_SITE_FOLDER

放肆的年华 提交于 2021-02-18 08:58:32
问题 I have been deploying to my Azure Web App for about 4 months now, using msdeploy, and everything has been smooth sailing to upload the website. Until recently, there has been no errors with deployment. I now receive a "ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER" error when publishing the website application. The only way for me to successfully update the website is stop the Web App on Azure, then execute a Publish for the Web Application via Visual Studio. But this can be an issue if users are

sending http request from azure web app to my machine

旧时模样 提交于 2021-02-11 13:22:14
问题 I created an azure web app which send an http request: axios.post('http://*mypublicip*:3000/write/' + Name, { content: data[1] }) meanwhile my computer has a running express server: app.listen(3000, () => console.log(`Server running on port ${port}`)); all my functionality works when I use it locally by sending the request to localhost instead of my ip. I also tried adding host '0.0.0.0' to my app.listen. what am I missing? thanks 回答1: This problem has nothing to do with your webapp . So I

sending http request from azure web app to my machine

可紊 提交于 2021-02-11 13:21:56
问题 I created an azure web app which send an http request: axios.post('http://*mypublicip*:3000/write/' + Name, { content: data[1] }) meanwhile my computer has a running express server: app.listen(3000, () => console.log(`Server running on port ${port}`)); all my functionality works when I use it locally by sending the request to localhost instead of my ip. I also tried adding host '0.0.0.0' to my app.listen. what am I missing? thanks 回答1: This problem has nothing to do with your webapp . So I

Azure Linux App Service with .Net Core Stack. Unable to use NodeJS

和自甴很熟 提交于 2021-02-11 13:21:29
问题 I am hosting a .NET Core Application on MS Azure (on a Linux Service Plan) and I want to run some NodeJS code in the .NET Core Application. I did this a while ago on a Windows Service Plan, there it was working. Now I am trying with a Linux Plan and it is not working. First I was trying to use "Jering.Javascript.NodeJS" and then also "INodeServices" from Microsoft (which is obsolete). But "node" was not found. I also tried to start directly a Process (Code below), but also not working. "node"

How can I create a Azure Web Application to authenticate User and acquire its Access Token?

ぃ、小莉子 提交于 2021-02-11 13:18:18
问题 I want to create an Azure Web Application that can authenticate an external/internal (from any Organization) user upon opening the Web Application link through Azure AD Credentials and acquire its Access token in return. I want to use that Access Token to programmatically create an application registration in User's tenant. 回答1: First, you need to register an application and set it as a multi-tenant application, then use the auth code flow to authenticate the user and obtain an access token.

How to reconnect redis client after redis server reboot/scale

别来无恙 提交于 2021-02-11 12:55:52
问题 I have an azure app service (based on Docker) that uses Redis as a cache memory. When I reboot/scale redis server, redis client inside azure app service lose connection with server and throws the following exception: Timeout awaiting response (outbound=0KiB, inbound=0KiB, 2852ms elapsed, timeout is 2000ms), command=SETEX, next: GET test, inst: 0, qu: 0, qs: 45, aw: False, rs: ReadAsync, ws: Idle, in: 0, serverEndpoint: Unspecified/redis-server-com:6380, mgr: 10 of 10 available, clientName:

Django: Module not Found on Azure App Service - Azure DevOps CD

谁都会走 提交于 2021-02-11 12:51:53
问题 I am looking to set up a simple Django application on Azure App Service (Linux OS) by running an Azure Devops Build and Release pipeline. The application builds and creates a release without a problem. However when the application has been released it runs into runtime errors. 2019-10-15T09:48:16.161816610Z ModuleNotFoundError: No module named 'django' I run pip3 install -r requirements.txt as part of the bash post deployment script, and requirements.txt contains Django but it claims the