Last active
January 14, 2021 07:57
-
-
Save binduchinnasamy/aac787793ddc2454e870f0d0e0e91def to your computer and use it in GitHub Desktop.
Revisions
-
binduchinnasamy revised this gist
Aug 22, 2019 . 1 changed file with 2 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,6 @@ $connectionName = "AzureRunAsConnection" $servicePrincipalConnection=Get-AutomationConnection -Name $connectionName Add-AzureRmAccount -ServicePrincipal -TenantId $servicePrincipalConnection.TenantId -ApplicationId $servicePrincipalConnection.ApplicationId -CertificateThumbprint $servicePrincipalConnection.CertificateThumbprint $functionname="<<FunctionAppName>>" $resourceGroupName ="<<Resource Group Name>>" $webApp = Get-AzureRmWebApp -ResourceGroupName $resourceGroupName -Name $functionname @@ -15,4 +11,4 @@ ForEach ($kvp in $appSettingList) { } $appSettings["AzureWebJobs.<<Function App Name>>.Disabled"] = "true" $res = Set-AzureRmWebApp -AppSettings $appSettings -ResourceGroupName $resourceGroupName -Name $functionname Write-Output "Done!" -
binduchinnasamy revised this gist
Aug 19, 2019 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,14 +5,14 @@ Add-AzureRmAccount -ServicePrincipal ` -TenantId $servicePrincipalConnection.TenantId ` -ApplicationId $servicePrincipalConnection.ApplicationId ` -CertificateThumbprint $servicePrincipalConnection.CertificateThumbprint $functionname="<<FunctionAppName>>" $resourceGroupName ="<<Resource Group Name>>" $webApp = Get-AzureRmWebApp -ResourceGroupName $resourceGroupName -Name $functionname $appSettingList =$webApp.SiteConfig.AppSettings $appSettings = @{} ForEach ($kvp in $appSettingList) { $appSettings[$kvp.Name] = $kvp.Value } $appSettings["AzureWebJobs.<<Function App Name>>.Disabled"] = "true" $res = Set-AzureRmWebApp -AppSettings $appSettings -ResourceGroupName $resourceGroupName -Name $functionname Write-Output "Done! Please refer " $resourceGroupName " On your subscription" -
binduchinnasamy created this gist
Aug 19, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ $connectionName = "AzureRunAsConnection" $servicePrincipalConnection=Get-AutomationConnection -Name $connectionName Add-AzureRmAccount -ServicePrincipal ` -TenantId $servicePrincipalConnection.TenantId ` -ApplicationId $servicePrincipalConnection.ApplicationId ` -CertificateThumbprint $servicePrincipalConnection.CertificateThumbprint $functionname="functionpremium" $resourceGroupName ="elastic" $webApp = Get-AzureRmWebApp -ResourceGroupName $resourceGroupName -Name $functionname $appSettingList =$webApp.SiteConfig.AppSettings $appSettings = @{} ForEach ($kvp in $appSettingList) { $appSettings[$kvp.Name] = $kvp.Value } $appSettings["AzureWebJobs.Processevents.Disabled"] = "true" $res = Set-AzureRmWebApp -AppSettings $appSettings -ResourceGroupName $resourceGroupName -Name $functionname Write-Output "Done! Please refer " $resourceGroupName " On your subscription"