How to create Microsoft Entra application from azure cli

Ashwin Venkatesha 230 Reputation points
2024-03-20T17:51:39.0633333+00:00

I am following https://learn.microsoft.com/en-us/azure/azure-monitor/logs/tutorial-logs-ingestion-portal to create a solution that helps customers ingest data from s3 bucket.

I want to create a setup script that initializes,

  1. Data collection endpoint
  2. Data collection rules
  3. Custom tables and their schema
  4. A Microsoft Entra application used for authenticating log ingestion api.

I found instructions to create 1, 2 and 3 using powershell commands.

https://learn.microsoft.com/en-us/powershell/module/az.monitor/new-azdatacollectionendpoint?view=azps-11.4.0 - creates new data collection endpoint

https://learn.microsoft.com/en-us/powershell/module/az.monitor/new-azdatacollectionrule?view=azps-11.4.0 - creates new data collection rule 

https://learn.microsoft.com/en-us/cli/azure/monitor/log-analytics/workspace/table?view=azure-cli-latest#az-monitor-log-analytics-workspace-table-create - to create tables in workspace 

I need help with creating Microsoft Entra application from azure cli which is a prerequisite from the tutorial.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,037 questions
0 comments No comments
{count} votes

Accepted answer
  1. Babafemi Bulugbe 3,375 Reputation points MVP
    2024-03-20T18:10:29.26+00:00

    Hello @Ashwin Venkatesha

    To create a new Entra ID application, you need to use the command "az ad app create --display-name applicationname".

    However, there are steps to be completed before doing that. Follow this link to get more information about this. https://learn.microsoft.com/en-us/azure/healthcare-apis/register-application-cli-rest.

    Let me know if further assistance is needed.

    Kindly accept this answer if this helps

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful