Extend the `m365 spe containertype add` with more options to specify application
#5,990 opened on Apr 23, 2024
Repository metrics
- Stars
- (1,390 stars)
- PR merge metrics
- (PR metrics pending)
Description
in issue #5767
We added a new command m365 spe containertype add that allows only to specify the parent application by applicationId.
What we could do is extend this command with new options: applicationName and applicationObjectId.
This will allow a more user friendly approach to define new Container Type using names rather than guids.
Internally what we could do is try to resolve the app by name. If more than one will be found CLI should show a prompt (when interactive mode) to pick the correct app by id. After CLI will get the app by name or object id we should use the app id (client id) to create a new Container Type
We should add a remark with something generic like region needs to available for resource type 'Microsoft.Syntex/accounts'