M365 app commands #2832
Replies: 6 comments 7 replies
-
I'd love to see that in the CLI for 2 reasons:
|
Beta Was this translation helpful? Give feedback.
-
Sounds like a great idea 💡. One thing that is a bit unclear to me is how you would track multiple apps in your .m365rc.json and (I get how to store multiple items in an array but not sure how the commands would now what app you are referring to in case of getting details). |
Beta Was this translation helpful? Give feedback.
-
I like the idea too. The question I am not able to answer is if you want to limit the scope to specific use cases and make it as simple as possible for users without deep knowledge of apps or if you want to provide a swiss-army-knife. If the last option is desired you might have to consider creating more granular commands for all possible settings |
Beta Was this translation helpful? Give feedback.
-
Idea is brilliant 🔥.
In this case, I am assuming if we have multiple Apps in the
My opinion is to start with the single command with all the manifest details. Not sure whether we can use JMES query to get the specific details if needed from the output of the single command. Maybe not. Just wondering 🤔 |
Beta Was this translation helpful? Give feedback.
-
wow this seems like a lot of work (actually had to read it twice to fully understand this 😉... not actually sure if I still fully got it 😅). |
Beta Was this translation helpful? Give feedback.
-
Thinking of possible
In all cases, I don't really care about the distinction between application and delegated permissions, and wouldn't mind them being throw on one pile where I can see and manage them with one command, similarly to how they're displayed in the Azure portal. What do you think folks, would this help you too? |
Beta Was this translation helpful? Give feedback.
-
Hey folks, we're thinking about adding a series of enhancements/commands that would help developers work with M365 apps.
The first one is extending the
aad app add
command with the ability to save the information about the created app registration in a local file #2815. No matter how you create your app and what kind of app you build, when you want to connect it to M365, you need an AAD app registration. You can easily create one using CLI for M365. If you build a larger solution, you can also create multiple app registrations (eg. bot, API, web app, etc.) and keep track of all of them.Once you have a list of AAD apps linked to your solution through the .m365rc.json file, what if you could easily manage them without having to look them up in the AAD portal.
If you need to add a delegated permission, you'd call:
If you need to add an app-only permission, you'd call:
To quickly navigate to the AAD app in the Azure Portal, you'd call:
And we'd give you the deeplink to the app page, or maybe even open it for you in your default browser.
If you need to get information about the app (redirect URIs, permissions, etc.), you'd call:
In all these commands, you don't need to specify the appId because CLI for M365 can get it from the .m365rc.json file. If you have multiple apps, you'd be prompted to choose which one you want to work with.
What do you think about this? Would it help you? Would it be enough to have just one get-command that returns the whole manifest or would you rather have more specialized commands that return pieces of it, like
redirectUri list
,oauth2grant list
,approleassignment list
, etc.? Which other commands could we introduce to help you work with M365 apps?Beta Was this translation helpful? Give feedback.
All reactions