cli-microsoft365
cli-microsoft365 copied to clipboard
Refactor app commands to use getAppRegistrationByAppName util
Update the following commands to replace the duplicated code with the entraApp.getAppRegistrationByAppName util:
- entra app get
- entra app permission list
- entra app remove
- entra app role add
- entra app role list
- entra app role remove
- entra app set
- pp managementapp add (note: this one is a special case that needs additional attention)
Also, let's fix one that we missed before: update the following commands to replace the duplicated code with the entraApp.getAppRegistrationByAppId util:
- entra app permission add
I will take it