Skip to content

Commit

Permalink
update ehub runtime v3 to v4 (alertlogic#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
imranalisyed506 authored Oct 11, 2022
1 parent a0b5168 commit 228371d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion al-ehub-collector.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Runtime": {
"FUNCTIONS_EXTENSION_VERSION": "~3",
"FUNCTIONS_EXTENSION_VERSION": "~4",
"WEBSITE_NODE_DEFAULT_VERSION": "~14"
}
}
6 changes: 3 additions & 3 deletions extensions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<WarningsAsErrors />
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.EventHubs" Version="3.0.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="3.0.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator" Version="1.0.*" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.EventHubs" Version="4.3.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="4.0.4" />
<PackageReference Include="Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator" Version="4.0.*" />
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions host.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"version": "2.0",
"functionTimeout": "00:10:00",
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[2.*, 3.0.0)"
},
"extensions": {
"eventHubs": {
"batchCheckpointFrequency": 1,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "ehub-collector",
"version": "1.6.1",
"version": "1.6.2",
"dependencies": {
"@alertlogic/al-azure-collector-js": "3.0.4",
"@alertlogic/al-azure-collector-js": "3.0.5",
"@alertlogic/al-collector-js": "3.0.1",
"@azure/arm-eventhub": "3.2.0",
"@azure/arm-monitor": "6.0.0",
Expand Down
9 changes: 2 additions & 7 deletions templates/ehub.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.1",
"parameters": {
"Application Name": {
Expand Down Expand Up @@ -95,7 +95,7 @@
"repo": "https://github.com/alertlogic/ehub-collector.git",
"branch": "v1",
"nodeRuntimeVersion": "~14",
"azureFunctionExtensionsVersion": "~3",
"azureFunctionExtensionsVersion": "~4",
"dlContainerName": "alertlogic-dl",
"statsQueueName": "alertlogic-stats",
"newEhubMaxThroughputUnits": 20,
Expand Down Expand Up @@ -123,10 +123,6 @@
"name": "FUNCTIONS_WORKER_RUNTIME",
"value": "node"
},
{
"name": "AzureWebJobsDashboard",
"value": "[concat('DefaultEndpointsProtocol=https;AccountName=',variables('webAppStorageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('webAppStorageAccountName')), '2015-06-15').key1)]"
},
{
"name": "AzureWebJobsStorage",
"value": "[concat('DefaultEndpointsProtocol=https;AccountName=',variables('webAppStorageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('webAppStorageAccountName')), '2015-06-15').key1)]"
Expand Down Expand Up @@ -231,7 +227,6 @@
],
"properties": {
"FUNCTIONS_WORKER_RUNTIME": "node",
"AzureWebJobsDashboard": "[concat('DefaultEndpointsProtocol=https;AccountName=',variables('webAppStorageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('webAppStorageAccountName')), '2015-06-15').key1)]",
"AzureWebJobsStorage": "[concat('DefaultEndpointsProtocol=https;AccountName=',variables('webAppStorageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('webAppStorageAccountName')), '2015-06-15').key1)]",
"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING": "[concat('DefaultEndpointsProtocol=https;AccountName=',variables('webAppStorageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('webAppStorageAccountName')), '2015-06-15').key1)]",
"WEBSITE_CONTENTSHARE": "[concat(toLower(parameters('Application Name')), '9546')]",
Expand Down

0 comments on commit 228371d

Please sign in to comment.