{"id":18255263,"url":"https://github.com/arklab/auth0logs-applicationinsight","last_synced_at":"2025-04-08T21:49:50.386Z","repository":{"id":161453321,"uuid":"633911931","full_name":"ARKlab/Auth0Logs-ApplicationInsight","owner":"ARKlab","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-19T15:35:29.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-14T17:19:44.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ARKlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-28T15:07:42.000Z","updated_at":"2023-05-09T15:24:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"f16bf389-2e40-4d2d-a343-e88674c9ef30","html_url":"https://github.com/ARKlab/Auth0Logs-ApplicationInsight","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARKlab%2FAuth0Logs-ApplicationInsight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARKlab%2FAuth0Logs-ApplicationInsight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARKlab%2FAuth0Logs-ApplicationInsight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARKlab%2FAuth0Logs-ApplicationInsight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ARKlab","download_url":"https://codeload.github.com/ARKlab/Auth0Logs-ApplicationInsight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247934808,"owners_count":21020724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T10:15:18.111Z","updated_at":"2025-04-08T21:49:50.369Z","avatar_url":"https://github.com/ARKlab.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth0Logs-ApplicationInsight\nThis project is containing an azure function, written in .Net C# and the related pipeline.yml and deploy.json to create pipeline in DevOps and deploy the needed infrastructure in Azure environment. The azure function is usefull to receive **Event Grid Events** from **Auth0** (once the Event Grid it is created), and send the events to an **ApplicationInsight**.\n\n# Create Event Grid resources on Azure:\nTo create **Event Grid Partner Configuration** and **Event Grid Partner Topic** with **Auth0** subscription, follow the steps in the Microsoft Guide link below:\nhttps://learn.microsoft.com/en-us/azure/event-grid/auth0-how-to#authorize-partner-to-create-a-partner-topic\n- Register the Event Grid resource provider\n- Authorize partner to create a partner topic\n- Set up an Auth0 partner topic\n- Activate a partner topic\n\n# Step to use the project:\nDownload this project where are included 3 main components:\n- Infrastructure\\Pipeline.yml: It is used to create Azure infrastructure pipeline in your DevOps environment. Need to be imported to the Azure DevOps and set the following variables in the Library with variable group name **Auth0ToApplicationInsight**:\n\n  | Variable Name | Value |\n  | ------------- | ----- |\n  | subscriptionId | Subscription Id |\n  | resourceGroup | Resource group name |\n  | location | Location of app service |\n  | auth0LogConnectionString | The ApplicacionInsight for Auth0 logs connection string |\n  | uniquePrefixName | Unique Prefix Name |\n  | eventGridSubscriptionName | The EventGridSubscriptonName in Azure |\n  | eventGridTopicName | The EventGridTopicName in Azure |\n  | functionName | The Azure Function name |\n  | sharedLawId | The WorkspaceResourceId for the ApplicationInsight |\nSet **azureResurceManagerConnection** variable in the pipeline variable (not in the variable resource group)\n  | Variable Name | Value |\n  | ------------- | ----- |\n  | azureResurceManagerConnection | Service connection name |\n\n- Infrastructure\\ARM\\Deploy.json: It is the ARM template used to deploy all the resources in the Azure Portal, Application Service Plan, Function App (for the Azure Function), Application Insight to deploy custom events.\n- Auth0LogEventGridFunction project it is the Function to be deployed in the **Azure Function** (Function App) that will be the **Event Grid Event Handler** subscribed to the **Event Grid Events** that will manage the Events from Auth0 and send them to **Application Insight**.\n- Services\\Auth0toAI\\Pipeline.yml: This pipeline is building the azure function and deploying it in the Azure function app created with Infrastructure\\ARM\\Deploy.json.\n- Service\\Auth0toAI\\ARM\\Deploy.json: This Deploy.json is creating the **Event Subscription** in the **Event Grid Partner Topic** and subscribing the Azure Function previously deployed, to it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farklab%2Fauth0logs-applicationinsight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farklab%2Fauth0logs-applicationinsight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farklab%2Fauth0logs-applicationinsight/lists"}