Refactor existing solution to production ready state.
https://github.com/MichalJankowskii/Azure-Workshop-Lodz-5.git
Please follow manual that is available under the following link: Sending emails from Azure Functions โ SendGrid
Please follow manual that is available under the following link: Sending SMSes from Azure Functions โ Twilio
- Go to folder
src\Provisioning
- Edit
azuredeploy.parameters.json
and update all parameters. Remember that appName must be unique for whole Azure cloud - Open PowerShell
- Login to Azure:
Login-AzureRmAccount
- Create resource group:
New-AzureRmResourceGroup -Name AzureLodz -Location "West Europe"
- Provision environment:
New-AzureRmResourceGroupDeployment -Name AzureLodzDeployment -ResourceGroupName AzureLodz -TemplateFile azuredeploy.json -TemplateParameterFile azuredeploy.parameters.json
- Open solution and update the following files:
local.settings.json
(only for local debugging)SignCustomer.cs
- Publish it to already created Function App. Please note that table will be automatically created before the first usage.
You can use the following json in body:
{
"name": "Name",
"surname": "Surname",
"country": "UK",
"email":"[email protected]",
"birthyear" : 1980
}
Could you please refactor provided solution, that is a proof of concept solution, to shape that would be ready for deployment to production environment.
What would you change in this code?
You can work in groups!!!