# 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.
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:

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.

      <figure><img src="https://2147433183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3Am7TO0x29a6l1P0wMUg%2Fuploads%2Fgit-blob-1e48f9455422e22010e61299eeeba23640e623c2%2F3.1.png?alt=media" 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.
   3. In the **About** window, click the **Advanced system settings** link below under the **Device specifications** section.

      <figure><img src="https://2147433183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3Am7TO0x29a6l1P0wMUg%2Fuploads%2Fgit-blob-daa0de323e88f547e35584c3638bfec4e0e709fd%2F3.2.png?alt=media" 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.

      <figure><img src="https://2147433183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3Am7TO0x29a6l1P0wMUg%2Fuploads%2Fgit-blob-4d38b885e38f21b413e7137b38874245181f9bee%2F3.3.png?alt=media" alt=""><figcaption></figcaption></figure>
   6. In the **System variables** section, select the **Path** variable and click on **Edit**.

      <figure><img src="https://2147433183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3Am7TO0x29a6l1P0wMUg%2Fuploads%2Fgit-blob-6ca6b8e9ec3e4e9a69b2bb7c5d641f17d35c1c93%2F3.4.png?alt=media" 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%2Fgit-blob-abf43e7a86fbb479ba22d434850ab6bea4a71479%2F3.5.png?alt=media" 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.
   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%2Fgit-blob-c2144880ac067c172fd83538708ba2d5fd12a0f6%2F3.6.png?alt=media" alt=""><figcaption></figcaption></figure>
