---
description: >-
  Follow the steps below to configure PowerShell to install Azure and other
  related modules.
---

# Set up PowerShell

## Set up Powershell

1. Search and open the **Windows PowerShell ISE** with right-click on **Windows PowerShell ISE** -> **Run as Administrator** to open Windows PowerShell as an Administrator.
2. Run the “**Install-Module -Name Az -AllowClobber -Force**” command on the Windows PowerShell terminal. This command installs the "Az" module in PowerShell, allowing us to use the PowerShell cmdlets provided by the module to manage Azure Services.&#x20;
3. Run the “**Install-Module -Name SqlServer -AllowClobber -Force**” command on the Windows PowerShell terminal. This command is used to install the “SqlServer” module in PowerShell.

## Install kubectl

The Kubernetes command-line tool, **kubectl**, is needed to run commands against Kubernetes clusters. Follow the steps detailed below to establish a kubectl configuration:&#x20;

1. Installing kubectl:
   1. Download the [.exe kubectl file](https://dl.k8s.io/v1.32.3/bin/windows/amd64/kubectl.exe) for Windows.
   2.  Create a new folder in the C drive. Name it "**kube"** and paste the kubectl.exe file inside it.&#x20;

       <figure><img src="https://2147433183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3Am7TO0x29a6l1P0wMUg%2Fuploads%2FGlqcU6591R45L82pk4eq%2F3.1.png?alt=media&#x26;token=20d57b9d-a37f-4b9e-9bbc-601af0680df9" alt=""><figcaption></figcaption></figure>
2. Setting the path:
   1. Select the **Windows key+X** to access the Power User Task Menu.
   2. Select the **System** option.&#x20;
   3.  In the **About** window, click the **Advanced system settings** link below under the **Device specifications** section.&#x20;

       <figure><img src="https://2147433183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3Am7TO0x29a6l1P0wMUg%2Fuploads%2FAjKJTNvYLTGU2zDQXJWv%2F3.2.png?alt=media&#x26;token=ccd92e81-bbd9-43e7-8f30-0ffe4691f13d" alt=""><figcaption></figcaption></figure>
   4. In the **System Properties** window, click on the **Advanced** tab located at the top section.
   5.  Click on **Environment Variables...** on the bottom-right of the **Advanced** tab.&#x20;

       <figure><img src="https://2147433183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3Am7TO0x29a6l1P0wMUg%2Fuploads%2F1LboYE4LGLN8Lj8sFopz%2F3.3.png?alt=media&#x26;token=ef607c88-2d21-439a-b7b0-70752808e743" alt=""><figcaption></figcaption></figure>
   6.  In the **System variables** section, select the **Path** variable and click on **Edit**.&#x20;

       <figure><img src="https://2147433183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3Am7TO0x29a6l1P0wMUg%2Fuploads%2F35FuuPs3OSQRWQjSTF48%2F3.4.png?alt=media&#x26;token=ca803357-426d-4e97-b3c2-138fc120a457" alt=""><figcaption></figcaption></figure>
   7.  Click **New** and type "**C:\kube**" in the text field. Click on **OK** to add the text as a new path.

       <figure><img src="https://2147433183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3Am7TO0x29a6l1P0wMUg%2Fuploads%2FBHSU8puNe1WbwscHeVmt%2F3.5.png?alt=media&#x26;token=f7c45c22-0d97-4b02-97a3-a1f010d6c45e" alt=""><figcaption></figcaption></figure>
3. Verifying the installation with the Command Prompt:
   1. Click the **Windows icon** to open the **Start Menu**.
   2. Search for the **Command Prompt** and open it.
   3. Type and enter “**kubectl**” inside the Command Prompt to run it.&#x20;
   4.  If you see the screen shown in the image below, you've successfully installed kubectl on your machine.

       <figure><img src="https://2147433183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3Am7TO0x29a6l1P0wMUg%2Fuploads%2FNHqDrNVoIQrrY5ZvaPQt%2F3.6.png?alt=media&#x26;token=0278b98b-e99d-4e35-a4e5-ba3ad196f694" alt=""><figcaption></figcaption></figure>
