- Lab
- A Cloud Guru
Fixing Security Misconfigurations with Azure AI
In this hands-on lab, you are working as an Azure security engineer for Space Corp, a company that specializes in high-tech satellite launches. Recently, you’ve been called into several meetings where it’s been discovered that the AI resources have been misconfigured, and it's up to you to keep Space Corp safe! You’ll use Azure Key Vault, networking settings, and environment variables to help secure Azure Cognitive Services.
Path Info
Table of Contents
-
Challenge
Connect to the Virtual Machine and Log In to the Azure Portal
Use the instant terminal or SSH to connect to the Linux virtual machine.
-
Challenge
Explore the Code Directory in the Virtual Machine and Look at Cognitive Services in the Portal
- Look at the code of
text_analytics.py
and see if you can spot any issues. - Explore the Cognitive Services resource and determine if there is a way to help secure it.
- Look at the code of
-
Challenge
Update the Configuration of the Cognitive Services Resource
Enable the firewall to only allow the VM VNet to communitate to it.
-
Challenge
Update the Python Code to Make Use of Environment Variables
Convert the Cognitive Services key to be stored in an environment variable.
-
Challenge
Create an Azure Key Vault and Update the Python Code
Create a Key Vault with the Cognitive Services key as a secret and change the code to use the secret from the Key Vault.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.