Skip to content

Commit

Permalink
[AZI-1884] added azure deploy script subscription level
Browse files Browse the repository at this point in the history
  • Loading branch information
ava-silver committed Oct 11, 2023
1 parent 4346eea commit 7a4a9a1
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions azure/deploy-to-azure/azure-integration/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,55 @@
"azPowerShellVersion": "8.1",
"scriptContent": "Invoke-WebRequest -SkipCertificateCheck -ContentType \"application/json\" -Method Post -Uri \"https://api.$Env:datadogSite/api/v1/integration/azure/filtering\" -Headers @{\"Accept\"=\"application/json\"; \"DD-APPLICATION-KEY\"=$Env:datadogApplicationKey; \"DD-API-KEY\"=$Env:datadogApiKey} -Body (@{\"client_id\"=$Env:clientId; \"tenant_id\"=$Env:tenantName; \"namespace\"=$Env:namespace; \"filters\"=$Env:appServicePlanFilters} | ConvertTo-Json )"
}
},
{
"condition": "[not(empty(parameters('containerAppFilters')))]",
"type": "Microsoft.Resources/deploymentScripts",
"apiVersion": "2020-10-01",
"name": "[concat('datadog-app-filter-script-', parameters('newguid'))]",
"location": "[parameters('location')]",
"kind": "AzurePowerShell",
"dependsOn": [
"[resourceId('Microsoft.Resources/deploymentScripts', concat('datadog-integration-script-', parameters('newguid')))]"
],
"properties": {
"environmentVariables": [
{
"name": "datadogApplicationKey",
"secureValue": "[parameters('datadogApplicationKey')]"
},
{
"name": "datadogApiKey",
"secureValue": "[parameters('datadogApiKey')]"
},
{
"name": "datadogSite",
"value": "[parameters('datadogSite')]"
},
{
"name": "containerAppFilters",
"value": "[parameters('containerAppFilters')]"
},
{
"name": "namespace",
"value": "container_app"
},
{
"name": "clientId",
"value": "[parameters('servicePrincipalClientId')]"
},
{
"name": "tenantName",
"value": "[subscription().tenantId]"
}
],
"retentionInterval": "PT1H",
"timeout": "PT2M",
"containerSettings": {},
"cleanupPreference": "Always",
"azPowerShellVersion": "8.1",
"scriptContent": "Invoke-WebRequest -SkipCertificateCheck -ContentType \"application/json\" -Method Post -Uri \"https://api.$Env:datadogSite/api/v1/integration/azure/filtering\" -Headers @{\"Accept\"=\"application/json\"; \"DD-APPLICATION-KEY\"=$Env:datadogApplicationKey; \"DD-API-KEY\"=$Env:datadogApiKey} -Body (@{\"client_id\"=$Env:clientId; \"tenant_id\"=$Env:tenantName; \"namespace\"=$Env:namespace; \"filters\"=$Env:containerAppFilters} | ConvertTo-Json )"
}
}
],
"outputs": {
Expand Down

0 comments on commit 7a4a9a1

Please sign in to comment.