Azure / Azure/azure-cli

How to remove API permissions from App Registration using Microsoft graph ?

Open
#22,701 2 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-identity-squad Auto-Assign customer-reported Graph Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

az ad app permission delete --id <> --api <>

Azure Ad Graph API is no longer supported ,need the Microsoft graph API equivalent of the command to delete API permissions from App registrations

Run this on Azure powershell az ad app permission delete --id <> --api <>

The requested API permission should had been deleted

Azure powershell , owner of the application

**Looking for Azure CLI commands in Microsoft Graph API to delete API permissions from App registration.**

Documentation missing this scenario/unclear - https://docs.microsoft.com/en-us/cli/azure/microsoft-graph-migration

Current error -

This command or command group has been migrated to Microsoft Graph API. Please carefully review all breaking changes introduced during this migration: https://docs.microsoft.com/cli/azure/microsoft-graph-migration
The size of the object has exceeded its limit. Please reduce the number of values and retry your request.

![image](https://user-images.githubusercontent.com/5651864/171504208-0a790fc4-503a-4417-9dcc-79a61353d988.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.