pnp/cli-microsoft365

Extend the `m365 spe containertype add` with more options to specify application

Offen

#5.990 geöffnet am 23.04.2024

 (6 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)TypeScript (399 Forks)auto 404
enhancementhelp wantedkeep-open

Repository-Metriken

Stars
 (1.390 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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'

Contributor Guide