See prerequisites below before following these steps.
- Create a production build with the Angular CLI:
ng build --prod
- Navigate to the folder containing the build output:
cd dist/graph-playground
- Log into the Azure CLI:
az login
- Upload the contents of the build output folder to azure storage:
Replace
az storage blob upload-batch -s . -d $web --account-name graphplayground
graphplayground
with the the name of your storage account.
- Set up a storage account in Azure.
- Configure the storage account for static webpage hosting.
- Install the Azure CLI.
- Register a new app on the Azure AD v2 Endpoint through the Application Registration Portal , and make note of the AppID.
- Copy the AppID from the portal into the
clientId
property ofAuthService
class (insrc/app/service/auth.service.ts
). - Add a redirect URL to the registration portal that corresponds with the address where you're hosting the app (e.g.
https://graphplayground.z22.web.core.windows.net/
).