The ARM template azurefunctionsdeploy.json
and its parameter file (azurefunctionsdeploy.parameters.json
) are used to deploy Marketing azure functions.
You can edit the azurefunctionsdeploy.parameters.parameters.json
file to set your values, but is not needed. The only parameter that can be set is:
SitesEshopfunctionsName
is a string that is used to create the Azure function app name.Once parameter file is edited you can deploy it using create-resources script.
i. e. if you are in Windows, to deploy the Azure Functions environment in a new resourcegroup located in westus, go to deploy\az
folder and type:
create-resources.cmd azurefunctions\azurefunctionsdeploy newResourceGroup -c westus
You need to deploy the Marketing azure function from Visual Studio 2017 15.3 from the the Marketing-functions project in the solution eShopOnContainers-AzureFunctions.sln (Visual Studio publish tool).
Once deployed, go to azure portal and set the connection string for the azure function under the name "SqlConnection". The value must be the connection string which points to MarketingDB.
Example:
"SqlConnection": "Server=tcp:eshopsql.database.windows.net,1433;Initial Catalog=marketingdb;"
In appsettings section, add a new entry named "MarketingStorageUri". The value must be the uri of the blob storage where the campaign images are stored.
Example:
"MarketingStorageUri": "https://marketingcampaign.blob.core.windows.net/pics/"