Sunday, 21 July 2019


Azure App Service | Add/Modify/Update application settings using PowerShell


Issue:

·       How can I update Azure app service application settings through PowerShell?

·       Add/Modify/Update application settings for azure app service using PowerShell.


Solution:



$resourceGroupName ="Your resource group name"

$appServiceName = "Your web app name"

$webAppOutput = Get-AzureRmWebApp -ResourceGroupName $resourceGroupName -Name $ appServiceName

$ webAppOutput.SiteConfig.AppSettings

$newAppSettings = @{}

$newAppSettings.Add("new setting"  ,   "new Value")


Set-AzureRmWebApp -AppSettings $newAppSettings -Name $ appServiceName -ResourceGroupName $resourceGroupName



I hope this helps. Please share you query/feedback.




Other references,


Issue
: Azure Functions: The Consumption pricing tier is not allowed in this resource group




Issue:

1.     Unable to retrieve Functions Keys

2.     We are not able to retrieve the keys for function

3.     The function runtime is unable to start.

4.     Function host is not running.

5.     Internal Server error.

6.     Service Unavailable.





Issue: Disable Azure functions


No comments:

Post a Comment

Azure Functions | Microsoft.Azure.WebJobs.Script.WebHost: Repository has more than 10 non-decryptable secrets backups

Microsoft.Azure.WebJobs.Script.WebHost: Repository has more than 10 non-decryptable secrets backups Issue : ·        The function runtime is...