Set up PowerShell
Follow the steps below to configure PowerShell to install Azure and other related modules.
Last updated
Follow the steps below to configure PowerShell to install Azure and other related modules.
Last updated
Right-click on PowerShell -> Run as Administrator to open Windows PowerShell as an Administrator.
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.
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.
The Kubernetes command-line tool, kubectl, is needed to run commands against Kubernetes clusters. Follow the steps detailed below to establish a kubectl configuration:
Installing kubectl:
Download the .exe kubectl file for Windows.
Create a new folder in the C drive. Name it "kube" and paste the kubectl.exe file inside it.
Setting the path:
Select the Windows key+X to access the Power User Task Menu.
Select the System option.
In the About window, click the Advanced system settings link below under the Device specifications section.
In the System Properties window, click on the Advanced tab located at the top section.
Click on Environment Variables... on the bottom-right of the Advanced tab.
In the System variables section, select the Path variable and click on Edit.
Click New and type "C:\kube" in the text field. Click on OK to add the text as a new path.
Verifying the installation with the Command Prompt:
Click the Windows icon to open the Start Menu.
Search for the Command Prompt and open it.
Type and enter “kubectl” inside the Command Prompt to run it.
If you see the screen shown in the image below, you've successfully installed kubectl on your machine.