Skip to content

Commit

Permalink
Merge pull request #7 from Dashlane/deploy-button
Browse files Browse the repository at this point in the history
Add Azure deployment template & Deployment button
  • Loading branch information
ludwidmer authored Oct 6, 2023
2 parents 4f0f280 + 44fa65c commit ac73870
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 2 deletions.
117 changes: 117 additions & 0 deletions AzureTemplates/Log Analytics Workspace/azuredeploy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"Name": {
"type": "String",
"defaultValue": "dashlane-audit-logs-law",
"allowedValues": ["dashlane-audit-logs-law"]
},
"location": {
"type": "string",
"metadata": {
"description": "Location of the container. We recommend to use the same value as the \"Region\" parameter."
}
},
"Dashlane team UUID": {
"type": "secureString",
"metadata": {
"description": "Dashlane's team UUID"
},
"minLength": 36,
"maxLength": 36
},
"Dashlane team access key": {
"type": "secureString",
"metadata": {
"description": "Dashlane's team access key"
},
"minLength": 16,
"maxLength": 16
},
"Dashlane team secret key": {
"type": "secureString",
"metadata": {
"description": "Dashlane's team secret key"
},
"minLength": 64,
"maxLength": 64
},
"Workspace ID": {
"type": "string",
"metadata": {
"description": "Log analytics Workspace ID"
},
"minLength": 36,
"maxLength": 36
},
"Shared key": {
"type": "string",
"metadata": {
"description": "Log analytics shared key"
},
"minLength": 88,
"maxLength": 88
}

},
"variables": {},
"resources": [
{
"type": "Microsoft.ContainerInstance/containerGroups",
"apiVersion": "2023-05-01",
"name": "[parameters('Name')]",
"location": "[parameters('location')]",
"properties": {
"sku": "Standard",
"containers": [
{
"name": "[parameters('Name')]",
"properties": {
"image": "dashlane/audit-logs:latest",
"ports": [],
"environmentVariables": [
{
"name": "DASHLANE_TEAM_UUID",
"value": "[parameters('Dashlane team UUID')]"
},
{
"name": "DASHLANE_TEAM_ACCESS_KEY",
"value": "[parameters('Dashlane team access key')]"
},
{
"name": "DASHLANE_TEAM_SECRET_KEY",
"value": "[parameters('Dashlane team secret key')]"
},
{
"name": "WORKSPACE_ID",
"value": "[parameters('Workspace ID')]"
},
{
"name": "SHARED_KEY",
"value": "[parameters('Shared key')]"
}

],
"resources": {
"requests": {
"memoryInGB": 1.5,
"cpu": 1
}
}
}
}
],
"diagnostics": {
"logAnalytics": {
"logType": "ContainerInstanceLogs",
"workspaceId": "[parameters('Workspace ID')]",
"workspaceKey": "[parameters('Shared key')]"
}
},
"restartPolicy": "Always",
"osType": "Linux"
}
}
]
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ To send your Dashlane audit logs on Azure in a Log Analytics Workspace, you can

>**Click on the button to start the deployment**
>
>![Deploy to Azure](https://aka.ms/deploytoazurebutton)
> [![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FDashlane%2Fdashlane-audit-logs%2Fmain%2FAzureTemplates%2FLog%20Analytics%20Workspace%2Fazuredeploy.json)
### Azure blob storage

Expand Down

0 comments on commit ac73870

Please sign in to comment.