diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions.sln b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions.sln new file mode 100644 index 0000000..5881e96 --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.10.35004.147 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HTML-to-PDF-Azure-Functions", "HTML-to-PDF-Azure-Functions\HTML-to-PDF-Azure-Functions.csproj", "{26FAC187-68EB-4293-85AD-8B64529C7F9D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {26FAC187-68EB-4293-85AD-8B64529C7F9D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {26FAC187-68EB-4293-85AD-8B64529C7F9D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {26FAC187-68EB-4293-85AD-8B64529C7F9D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {26FAC187-68EB-4293-85AD-8B64529C7F9D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6BD0F272-89B8-47F6-9159-B0835465120D} + EndGlobalSection +EndGlobal diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/.gitignore b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/.gitignore new file mode 100644 index 0000000..ff5b00c --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/.gitignore @@ -0,0 +1,264 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# Azure Functions localsettings file +local.settings.json + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2015 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# DNX +project.lock.json +project.fragment.lock.json +artifacts/ + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# TODO: Comment the next line if you want to checkin your web deploy settings +# but database connection strings (with potential passwords) will be unencrypted +#*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config +# NuGet v3's project.json files produces more ignoreable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +node_modules/ +orleans.codegen.cs + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush +.cr/ + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc \ No newline at end of file diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Function1.cs b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Function1.cs new file mode 100644 index 0000000..efbed71 --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Function1.cs @@ -0,0 +1,65 @@ +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Azure.Functions.Worker; +using Microsoft.Extensions.Logging; +using Syncfusion.HtmlConverter; +using Syncfusion.Pdf.Graphics; +using Syncfusion.Pdf; + +namespace HTML_to_PDF_Azure_Functions +{ + public class Function1 + { + private readonly ILogger _logger; + + public Function1(ILogger logger) + { + _logger = logger; + } + + [Function("Function1")] + public async Task Run([HttpTrigger(AuthorizationLevel.Function, "get", "post")] HttpRequest req) + { + + MemoryStream ms = new MemoryStream(); + try + { + //Initialize HTML to PDF converter. + HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.Cef); + CefConverterSettings settings = new CefConverterSettings(); + //Assign WebKit settings to HTML converter. + htmlConverter.ConverterSettings = settings; + //Convert URL to PDF. + PdfDocument document = htmlConverter.Convert("https://www.google.com/"); + //Save and close the PDF document. + document.Save(ms); + document.Close(); + ms.Position = 0; + } + + catch (Exception ex) + { + //Create a new PDF document. + PdfDocument document = new PdfDocument(); + //Add a page to the document. + PdfPage page = document.Pages.Add(); + //Create PDF graphics for the page. + PdfGraphics graphics = page.Graphics; + + //Set the standard font. + PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 5); + //Draw the text. + graphics.DrawString(ex.ToString(), font, PdfBrushes.Black, new Syncfusion.Drawing.PointF(0, 0)); + + //Creating the stream object. + ms = new MemoryStream(); + //Save the document into memory stream. + document.Save(ms); + //Close the document. + document.Close(true); + ms.Position = 0; + } + return new FileStreamResult(ms, "application/pdf"); + } + } +} diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/HTML-to-PDF-Azure-Functions.csproj b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/HTML-to-PDF-Azure-Functions.csproj new file mode 100644 index 0000000..0359ad3 --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/HTML-to-PDF-Azure-Functions.csproj @@ -0,0 +1,32 @@ + + + net6.0 + v4 + Exe + enable + enable + HTML_to_PDF_Azure_Functions + + + + + + + + + + + + + + PreserveNewest + + + PreserveNewest + Never + + + + + + \ No newline at end of file diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Program.cs b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Program.cs new file mode 100644 index 0000000..c2df7fb --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Program.cs @@ -0,0 +1,14 @@ +using Microsoft.Azure.Functions.Worker; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; + +var host = new HostBuilder() + .ConfigureFunctionsWebApplication() + .ConfigureServices(services => + { + services.AddApplicationInsightsTelemetryWorkerService(); + services.ConfigureFunctionsApplicationInsights(); + }) + .Build(); + +host.Run(); diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/PublishProfiles/HTML-to-PDF-Azure-Sample - Web Deploy.pubxml b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/PublishProfiles/HTML-to-PDF-Azure-Sample - Web Deploy.pubxml new file mode 100644 index 0000000..05ad660 --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/PublishProfiles/HTML-to-PDF-Azure-Sample - Web Deploy.pubxml @@ -0,0 +1,24 @@ + + + + + MSDeploy + AzureWebSite + Release + Any CPU + https://html-to-pdf-azure-sample.azurewebsites.net + false + /subscriptions/349260c9-c5a3-4c13-8f1c-7a9f185aa74d/resourcegroups/HTMLToPDFAzureFunction/providers/Microsoft.Web/sites/HTML-to-PDF-Azure-Sample + $HTML-to-PDF-Azure-Sample + <_SavePWD>true + false + html-to-pdf-azure-sample.scm.azurewebsites.net:443 + WMSVC + false + true + true + HTML-to-PDF-Azure-Sample + + \ No newline at end of file diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/ServiceDependencies/HTML-to-PDF-Azure-Sample - Web Deploy/appInsights1.arm.json b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/ServiceDependencies/HTML-to-PDF-Azure-Sample - Web Deploy/appInsights1.arm.json new file mode 100644 index 0000000..fc9f32a --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/ServiceDependencies/HTML-to-PDF-Azure-Sample - Web Deploy/appInsights1.arm.json @@ -0,0 +1,67 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "resourceGroupName": { + "type": "string", + "defaultValue": "HTMLToPDFAzureFunction", + "metadata": { + "_parameterType": "resourceGroup", + "description": "Name of the resource group for the resource. It is recommended to put resources under same resource group for better tracking." + } + }, + "resourceGroupLocation": { + "type": "string", + "defaultValue": "eastus", + "metadata": { + "_parameterType": "location", + "description": "Location of the resource group. Resource groups could have different location than resources." + } + }, + "resourceLocation": { + "type": "string", + "defaultValue": "[parameters('resourceGroupLocation')]", + "metadata": { + "_parameterType": "location", + "description": "Location of the resource. By default use resource group's location, unless the resource provider is not supported there." + } + } + }, + "resources": [ + { + "type": "Microsoft.Resources/resourceGroups", + "name": "[parameters('resourceGroupName')]", + "location": "[parameters('resourceGroupLocation')]", + "apiVersion": "2019-10-01" + }, + { + "type": "Microsoft.Resources/deployments", + "name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat('HtmltoPDFAzureSample', subscription().subscriptionId)))]", + "resourceGroup": "[parameters('resourceGroupName')]", + "apiVersion": "2019-10-01", + "dependsOn": [ + "[parameters('resourceGroupName')]" + ], + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [ + { + "kind": "web", + "name": "HtmltoPDFAzureSample", + "type": "microsoft.insights/components", + "location": "[parameters('resourceLocation')]", + "properties": {}, + "apiVersion": "2015-05-01" + } + ] + } + } + } + ], + "metadata": { + "_dependencyType": "appInsights.azure" + } +} \ No newline at end of file diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/ServiceDependencies/HTML-to-PDF-Azure-Sample - Web Deploy/profile.arm.json b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/ServiceDependencies/HTML-to-PDF-Azure-Sample - Web Deploy/profile.arm.json new file mode 100644 index 0000000..33c8af8 --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/ServiceDependencies/HTML-to-PDF-Azure-Sample - Web Deploy/profile.arm.json @@ -0,0 +1,113 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_dependencyType": "compute.appService.windows" + }, + "parameters": { + "resourceGroupName": { + "type": "string", + "defaultValue": "HTMLToPDFAzureFunction", + "metadata": { + "description": "Name of the resource group for the resource. It is recommended to put resources under same resource group for better tracking." + } + }, + "resourceGroupLocation": { + "type": "string", + "defaultValue": "eastus", + "metadata": { + "description": "Location of the resource group. Resource groups could have different location than resources, however by default we use API versions from latest hybrid profile which support all locations for resource types we support." + } + }, + "resourceName": { + "type": "string", + "defaultValue": "HTML-to-PDF-Azure-Sample", + "metadata": { + "description": "Name of the main resource to be created by this template." + } + }, + "resourceLocation": { + "type": "string", + "defaultValue": "[parameters('resourceGroupLocation')]", + "metadata": { + "description": "Location of the resource. By default use resource group's location, unless the resource provider is not supported there." + } + } + }, + "variables": { + "appServicePlan_name": "[concat('Plan', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]", + "appServicePlan_ResourceId": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', parameters('resourceGroupName'), '/providers/Microsoft.Web/serverFarms/', variables('appServicePlan_name'))]" + }, + "resources": [ + { + "type": "Microsoft.Resources/resourceGroups", + "name": "[parameters('resourceGroupName')]", + "location": "[parameters('resourceGroupLocation')]", + "apiVersion": "2019-10-01" + }, + { + "type": "Microsoft.Resources/deployments", + "name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]", + "resourceGroup": "[parameters('resourceGroupName')]", + "apiVersion": "2019-10-01", + "dependsOn": [ + "[parameters('resourceGroupName')]" + ], + "properties": { + "mode": "Incremental", + "template": { + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [ + { + "location": "[parameters('resourceLocation')]", + "name": "[parameters('resourceName')]", + "type": "Microsoft.Web/sites", + "apiVersion": "2015-08-01", + "tags": { + "[concat('hidden-related:', variables('appServicePlan_ResourceId'))]": "empty" + }, + "dependsOn": [ + "[variables('appServicePlan_ResourceId')]" + ], + "kind": "app", + "properties": { + "name": "[parameters('resourceName')]", + "kind": "app", + "httpsOnly": true, + "reserved": false, + "serverFarmId": "[variables('appServicePlan_ResourceId')]", + "siteConfig": { + "metadata": [ + { + "name": "CURRENT_STACK", + "value": "dotnetcore" + } + ] + } + }, + "identity": { + "type": "SystemAssigned" + } + }, + { + "location": "[parameters('resourceLocation')]", + "name": "[variables('appServicePlan_name')]", + "type": "Microsoft.Web/serverFarms", + "apiVersion": "2015-08-01", + "sku": { + "name": "S1", + "tier": "Standard", + "family": "S", + "size": "S1" + }, + "properties": { + "name": "[variables('appServicePlan_name')]" + } + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/ServiceDependencies/HTML-to-PDF-Azure-Sample - Web Deploy/storage1.arm.json b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/ServiceDependencies/HTML-to-PDF-Azure-Sample - Web Deploy/storage1.arm.json new file mode 100644 index 0000000..816daa6 --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/ServiceDependencies/HTML-to-PDF-Azure-Sample - Web Deploy/storage1.arm.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "resourceGroupName": { + "type": "string", + "defaultValue": "HTMLToPDFAzureFunction", + "metadata": { + "_parameterType": "resourceGroup", + "description": "Name of the resource group for the resource. It is recommended to put resources under same resource group for better tracking." + } + }, + "resourceGroupLocation": { + "type": "string", + "defaultValue": "eastus", + "metadata": { + "_parameterType": "location", + "description": "Location of the resource group. Resource groups could have different location than resources." + } + }, + "resourceLocation": { + "type": "string", + "defaultValue": "[parameters('resourceGroupLocation')]", + "metadata": { + "_parameterType": "location", + "description": "Location of the resource. By default use resource group's location, unless the resource provider is not supported there." + } + } + }, + "resources": [ + { + "type": "Microsoft.Resources/resourceGroups", + "name": "[parameters('resourceGroupName')]", + "location": "[parameters('resourceGroupLocation')]", + "apiVersion": "2019-10-01" + }, + { + "type": "Microsoft.Resources/deployments", + "name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat('htmltopdfazurefunct9c88', subscription().subscriptionId)))]", + "resourceGroup": "[parameters('resourceGroupName')]", + "apiVersion": "2019-10-01", + "dependsOn": [ + "[parameters('resourceGroupName')]" + ], + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [ + { + "sku": { + "name": "Standard_LRS", + "tier": "Standard" + }, + "kind": "Storage", + "name": "htmltopdfazurefunct9c88", + "type": "Microsoft.Storage/storageAccounts", + "location": "[parameters('resourceLocation')]", + "apiVersion": "2017-10-01" + } + ] + } + } + } + ], + "metadata": { + "_dependencyType": "storage.azure" + } +} \ No newline at end of file diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/launchSettings.json b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/launchSettings.json new file mode 100644 index 0000000..5b609f0 --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/launchSettings.json @@ -0,0 +1,9 @@ +{ + "profiles": { + "HTML_to_PDF_Azure_Functions": { + "commandName": "Project", + "commandLineArgs": "--port 7061", + "launchBrowser": false + } + } +} \ No newline at end of file diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/serviceDependencies.HTML-to-PDF-Azure-Sample - Web Deploy.json b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/serviceDependencies.HTML-to-PDF-Azure-Sample - Web Deploy.json new file mode 100644 index 0000000..a2becaa --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/serviceDependencies.HTML-to-PDF-Azure-Sample - Web Deploy.json @@ -0,0 +1,14 @@ +{ + "dependencies": { + "storage1": { + "resourceId": "/subscriptions/[parameters('subscriptionId')]/resourceGroups/[parameters('resourceGroupName')]/providers/Microsoft.Storage/storageAccounts/htmltopdfazurefunct9c88", + "type": "storage.azure", + "connectionId": "AzureWebJobsStorage" + }, + "appInsights1": { + "resourceId": "/subscriptions/[parameters('subscriptionId')]/resourceGroups/[parameters('resourceGroupName')]/providers/microsoft.insights/components/HtmltoPDFAzureSample", + "type": "appInsights.azure", + "connectionId": "APPLICATIONINSIGHTS_CONNECTION_STRING" + } + } +} \ No newline at end of file diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/serviceDependencies.json b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/serviceDependencies.json new file mode 100644 index 0000000..ce1d90c --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/serviceDependencies.json @@ -0,0 +1,12 @@ +{ + "dependencies": { + "storage1": { + "type": "storage", + "connectionId": "AzureWebJobsStorage" + }, + "appInsights1": { + "type": "appInsights", + "connectionId": "APPLICATIONINSIGHTS_CONNECTION_STRING" + } + } +} \ No newline at end of file diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/serviceDependencies.local.json b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/serviceDependencies.local.json new file mode 100644 index 0000000..b804a28 --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/Properties/serviceDependencies.local.json @@ -0,0 +1,11 @@ +{ + "dependencies": { + "appInsights1": { + "type": "appInsights.sdk" + }, + "storage1": { + "type": "storage.emulator", + "connectionId": "AzureWebJobsStorage" + } + } +} \ No newline at end of file diff --git a/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/host.json b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/host.json new file mode 100644 index 0000000..ee5cf5f --- /dev/null +++ b/Azure/HTML-to-PDF-Azure-Function-Windows-CefSharp/HTML-to-PDF-Azure-Functions/host.json @@ -0,0 +1,12 @@ +{ + "version": "2.0", + "logging": { + "applicationInsights": { + "samplingSettings": { + "isEnabled": true, + "excludedTypes": "Request" + }, + "enableLiveMetricsFilters": true + } + } +} \ No newline at end of file