Skip to main content

Lab# 2: Launch GitHub codespaces project

To expedite running the workspace and having a consistent project environment, we’ll be using GitHub codespaces. To start, open the azure-content-safety-workshop GitHub repo.

  1. Click the settings menu.
  2. Under the Secrets and variables, click on the code spaces option.
  3. Click the edit icon for AZURE_CONTENTSAFETY_ENDPOINT and paste the endpoint URL for yor azure content safety service.
  4. Click on the Update secret button.
  5. Click the edit icon for AZURE_CONTENTSAFETY_KEY and paste the key for your azure content safety service.
  6. Click on the Update secret button.
  7. To get started quickly, you can use a pre-built development environment. Click the button below to open the repo in GitHub Codespaces, and then continue the readme!

Open in GitHub Codespaces

This will launch a Codespaces environment with all the dependencies installed. Once the environment is ready, you can run the following commands to create the Azure resources and run the sample code.

Note: You can also access the codespaces by clicking on the green Code button in the top right of the repo. Then selecting the Codespaces tab and clicking on the Create codespace on main button to launch the Codespaces environement.

This will launch a Codespaces environment with all the dependencies installed. Once the environment is ready. This will take ~ 10 minutes.

When the environment is ready, a Visual Studio Code editor will open.