AZ-900-Challenging Lab4- Run Commands by Using Azure Cloud Shell

preview_player
Показать описание
AZ-900 Challenge Lab 4 – Run Commands Using Azure Cloud Shell

Join us in this informative lab session where we explore running commands using Azure Cloud Shell, an essential part of the AZ-900 certification series. This tutorial provides a step-by-step guide to configuring Azure Cloud Shell, using Azure PowerShell, and CLI commands to create and manage virtual networks. Here's what you'll learn:

### Lab Introduction:
- Understand how to configure Azure Cloud Shell for the first time.
- Learn to use Azure PowerShell cmdlets and CLI commands.
- Create and manage virtual networks in Azure.

### Lab Scenario:
As an administrator for Exel, you are responsible for your organization's Azure environment. In this lab, you will use Azure Cloud Shell to run Azure PowerShell cmdlets and CLI commands. This scenario simulates a common task for administrators to automate and manage Azure resources efficiently.

### Key Tasks:

#### Step 1: Configure Azure Cloud Shell
- **Set Up Cloud Shell**: Configure Azure Cloud Shell for first-time use.
- **Create Storage Account**: Create a storage account for Cloud Shell.

#### Step 2: Use PowerShell CMDlets to Create a Virtual Network
- **Deploy Virtual Network**: Use Azure PowerShell cmdlets to create a virtual network in a specified resource group.
- **Retrieve and Store Values**: Retrieve the value of the virtual network and store it in a variable.
- **Add Subnet**: Add a subnet to the virtual network using PowerShell cmdlets.

#### Step 3: Use Azure CLI 2.0 Command to Create a Virtual Network
- **Switch to CLI**: Switch to Azure CLI in Cloud Shell.
- **Deploy Virtual Network**: Use Azure CLI commands to create a virtual network in the specified resource group and location.
- **Verify Deployment**: Ensure the virtual network is deployed successfully.

### Steps in Detail:

#### Step 1: Configure Cloud Shell
- Navigate to the Azure portal and open Cloud Shell.
- Configure Cloud Shell with a new storage account and file share.

#### Step 2: Create Virtual Network Using PowerShell
- Use `New-AzVirtualNetwork` cmdlet to create a virtual network.
- Retrieve the virtual network details with `Get-AzVirtualNetwork`.
- Add a subnet to the virtual network using `Add-AzVirtualNetworkSubnetConfig`.

#### Step 3: Create Virtual Network Using CLI
- Switch to Bash in Cloud Shell.
- Use `az network vnet create` command to create a virtual network.
- Verify the virtual network creation by checking the provisioning state.

### Why Watch?
This lab session is crucial for anyone preparing for the AZ-900 certification or looking to enhance their skills in using Azure Cloud Shell for resource management. By the end of this video, you'll have a thorough understanding of running commands using both Azure PowerShell and CLI in Cloud Shell.

### Resources:
- **Download Lab Files**
- **Azure Portal**

Make sure to like, comment, and subscribe for more tutorials and lab sessions on Azure certifications!
Рекомендации по теме