-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- .NET upgrade from .NET Core 3.1 to .NET 6.0 - Updated Azure App Service app to use .NET 6.0. - Updated Azure Function apps to use runtime version 4.x. - Capture the sender info in the Author app. - Bug fix for the issue with clean up function.
- Loading branch information
1 parent
fc5d04a
commit c3ccabe
Showing
65 changed files
with
2,531 additions
and
2,275 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
function UpdateAzureFunctions { | ||
param( | ||
[Parameter(Mandatory = $true)] [string] $subscriptionId, | ||
[Parameter(Mandatory = $true)] [string] $resourceGroupName, | ||
[Parameter(Mandatory = $true)] [string] $baseResourceName | ||
) | ||
|
||
try{ | ||
$prepFunctionName = $baseResourceName + "-prep-function" | ||
$sendFunctionName = $baseResourceName + "-function" | ||
$dataFunctionName = $baseResourceName + "-data-function" | ||
|
||
Write-Host "Please login with your Azure subscription account" | ||
az login | ||
az account set -s $subscriptionId | ||
Write-Host "Successfully logged in to Azure Subscription " -ForegroundColor Green | ||
|
||
Write-Host "****************************************************************************************************************************************************************************************************************************" | ||
Write-Host "Updating prep function to .NET 6 : $prepFunctionName" | ||
az functionapp config set --net-framework-version v6.0 -n $prepFunctionName -g $resourceGroupName | ||
Write-Host "Completed updating prep function to .NET 6 : $prepFunctionName" -ForegroundColor Green | ||
|
||
Write-Host "****************************************************************************************************************************************************************************************************************************" | ||
Write-Host "Updating send function to .NET 6 : $sendFunctionName" | ||
az functionapp config set --net-framework-version v6.0 -n $sendFunctionName -g $resourceGroupName | ||
Write-Host "Completed updating send function to .NET 6 : $sendFunctionName" -ForegroundColor Green | ||
|
||
Write-Host "****************************************************************************************************************************************************************************************************************************" | ||
Write-Host "Updating data function to .NET 6 : $dataFunctionName" | ||
az functionapp config set --net-framework-version v6.0 -n $dataFunctionName -g $resourceGroupName | ||
Write-Host "Completed updating data function to .NET 6 : $dataFunctionName" -ForegroundColor Green | ||
} | ||
catch { | ||
$errorMessage = $_.Exception.Message | ||
Write-Host "Failed to update the Azure functions. Error message: $errorMessage" -ForegroundColor Red | ||
} | ||
} | ||
|
||
|
||
function UpdateAzureAppService { | ||
param( | ||
[Parameter(Mandatory = $true)] [string] $resourceGroupName, | ||
[Parameter(Mandatory = $true)] [string] $baseResourceName | ||
) | ||
|
||
try{ | ||
|
||
Write-Host "****************************************************************************************************************************************************************************************************************************" | ||
Write-Host "Updating app service to .NET 6 $baseResourceName" | ||
az webapp config set --net-framework-version v6.0 -n $baseResourceName -g $resourceGroupName | ||
Write-Host "Completed updating app service to .NET 6 $baseResourceName" -ForegroundColor Green | ||
} | ||
catch { | ||
$errorMessage = $_.Exception.Message | ||
Write-Host "Failed to update the app service $baseResourceName. Error message: $errorMessage" -ForegroundColor Red | ||
} | ||
} | ||
|
||
$subscriptionId = Read-Host "Please enter the subscription id of the resources where Company Communicator deployed" | ||
$resourceGroupName = Read-Host "Please enter the resource group name" | ||
$baseResourceName = Read-Host "Please enter the base resource name used" | ||
|
||
UpdateAzureFunctions -subscriptionId $subscriptionId -resourceGroupName $resourceGroupName -baseResourceName $baseResourceName | ||
UpdateAzureAppService -resourceGroupName $resourceGroupName -baseResourceName $baseResourceName | ||
|
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Oops, something went wrong.