Skip to content

Commit

Permalink
Update command alias. Closes #803 (#804)
Browse files Browse the repository at this point in the history
* Update command alias. Closes #803

Closes #803

* chore: Update app name in setup scripts
  • Loading branch information
garrytrinder authored Jun 21, 2024
1 parent efc5698 commit 4de8d71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions samples/scripts/setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Write-Output "Sign in to Microsoft 365..."
npx -p @pnp/cli-microsoft365 -- m365 login --authType browser

# create AAD app
Write-Output "Creating AAD app..."
$appId = npx -p @pnp/cli-microsoft365 -- "m365 aad app add --name graph-developer-proxy-samples --multitenant --redirectUris http://localhost:3000/withsdk.html,http://localhost:3000/nosdk.html --apisDelegated https://graph.microsoft.com/User.Read.All,https://graph.microsoft.com/Presence.Read.All --grantAdminConsent --platform spa --query appId -o text"
Write-Output "Creating Entra app..."
$appId = npx -p @pnp/cli-microsoft365 -- "m365 entra app add --name graph-developer-proxy-samples --multitenant --redirectUris http://localhost:3000/withsdk.html,http://localhost:3000/nosdk.html --apisDelegated https://graph.microsoft.com/User.Read.All,https://graph.microsoft.com/Presence.Read.All --grantAdminConsent --platform spa --query appId -o text"

Write-Output "AppId: $appId"

Expand Down
4 changes: 2 additions & 2 deletions samples/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ echo "Sign in to Microsoft 365..."
npx -p @pnp/cli-microsoft365 -- m365 login --authType browser

# create AAD app
echo "Creating AAD app..."
appId=$(npx -p @pnp/cli-microsoft365 -- m365 aad app add --name graph-developer-proxy-samples --multitenant --redirectUris http://localhost:3000/withsdk.html,http://localhost:3000/nosdk.html --apisDelegated https://graph.microsoft.com/User.Read.All,https://graph.microsoft.com/Presence.Read.All --grantAdminConsent --platform spa --query appId -o text)
echo "Creating Entra app..."
appId=$(npx -p @pnp/cli-microsoft365 -- m365 entra app add --name graph-developer-proxy-samples --multitenant --redirectUris http://localhost:3000/withsdk.html,http://localhost:3000/nosdk.html --apisDelegated https://graph.microsoft.com/User.Read.All,https://graph.microsoft.com/Presence.Read.All --grantAdminConsent --platform spa --query appId -o text)

# write app to env.js
echo "Writing app to env.js..."
Expand Down

0 comments on commit 4de8d71

Please sign in to comment.