Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 1.43 KB

deployment_steps.md

File metadata and controls

29 lines (26 loc) · 1.43 KB

Instrutions to deploy this app to Azure Storage

See prerequisites below before following these steps.

  1. Create a production build with the Angular CLI:
    ng build --prod
    
  2. Navigate to the folder containing the build output:
    cd dist/graph-playground
    
  3. Log into the Azure CLI:
    az login
    
  4. Upload the contents of the build output folder to azure storage:
    az storage blob upload-batch -s . -d $web --account-name graphplayground
    
    Replace graphplayground with the the name of your storage account.

Prerequisites

  1. Set up a storage account in Azure.
  2. Configure the storage account for static webpage hosting.
  3. Install the Azure CLI.
  4. Register a new app on the Azure AD v2 Endpoint through the Application Registration Portal , and make note of the AppID.
  5. Copy the AppID from the portal into the clientId property of AuthService class (in src/app/service/auth.service.ts).
  6. 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/).