PowerShell

REST API using PowerShell

REST API using PowerShell Hello Everyone Welcome to CloudAffaire and this is Debjeet. You can interact with a REST API endpoint using PowerShell Invoke-WebRequest or Invoke-RestMethod modules. But for backward compatibility we will use Invoke-WebRequest to make different REST API requests like HEAD, GET, POST, PUT, PATCH, and DELETE. If you wonder what REST API is, you can refer this blog post where I have given all the details to clear your doubts. REST…

Comments Off on REST API using PowerShell

How To Create An Azure Virtual Machine Using PowerShell

How To Create An Azure Virtual Machine Using PowerShell Hello Everyone Welcome to CloudAffaire and this is Debjeet. In this blog post, we will discuss how to create an Azure Virtual Machine using PowerShell. What Is PowerShell: PowerShell is a cross-platform task automation and configuration management framework, consisting of a command-line shell and scripting language. What is Azure Virtual Machine: Azure Virtual Machine or Azure VM is the compute service offered by Azure to…

Comments Off on How To Create An Azure Virtual Machine Using PowerShell

How To Install And Configure PowerShell For Azure

How To Install And Configure PowerShell For Azure Hello Everyone Welcome to CloudAffaire and this is Debjeet. In this blog post, we will discuss how to install and configure PowerShell for Azure cloud. What Is PowerShell? PowerShell is a cross-platform task automation and configuration management framework, consisting of a command-line shell and scripting language. What is Azure? Microsoft Azure is one of the leading cloud service providers in the market with 18% market share.…

Comments Off on How To Install And Configure PowerShell For Azure

How To Create A GCP Compute Engine VM Instance Using PowerShell

How To Create A GCP Compute Engine VM Instance Using PowerShell Hello Everyone Welcome to CloudAffaire and this is Debjeet. In this blog post, we will discuss how to create a GCP compute VM instance using PowerShell. We will create a new VM instance from scratch including network and firewall rule. Prerequisites: One Windows system with PowerShell. PowerShell module for GCP installed and configured with proper access. You can follow the below blog post…

Comments Off on How To Create A GCP Compute Engine VM Instance Using PowerShell

How To Install And Configure PowerShell For GCP

How To Install And Configure PowerShell For GCP Hello Everyone Welcome to CloudAffaire and this is Debjeet. In this blog post, we will discuss how to install and configure PowerShell for GCP cloud. What Is PowerShell? PowerShell is a cross-platform task automation and configuration management framework, consisting of a command-line shell and scripting language. What is GCP? GCP or Google Cloud Platform is the leading cloud service provider in the market with 9% market…

Comments Off on How To Install And Configure PowerShell For GCP

How To Create An AWS EC2 Instance Using PowerShell

How To Create An AWS EC2 Instance Using PowerShell Hello Everyone Welcome to CloudAffaire and this is Debjeet. In this blog post, we will discuss how to create an AWS EC2 instance using PowerShell. We will create a new EC2 instance from scratch including VPC, Subnets, Security Groups, etc. Prerequisites: One Windows system with PowerShell version 5.0 or higher. AWSPowerShell module installed and configured with proper access. You can follow the below blog post…

Comments Off on How To Create An AWS EC2 Instance Using PowerShell

How To Install And Configure PowerShell For AWS

How To Install And Configure PowerShell For AWS Hello Everyone Welcome to CloudAffaire and this is Debjeet. In this blog post, we will discuss how to install and configure PowerShell for AWS cloud. What Is PowerShell? PowerShell is a cross-platform task automation and configuration management framework, consisting of a command-line shell and scripting language. What is AWS? AWS or Amazon Web Services is the leading cloud service provider in the market with 35% market…

Comments Off on How To Install And Configure PowerShell For AWS

PowerShell Remove-PSSession Cmdlet

PowerShell Remove-PSSession Cmdlet Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed Connect-PSSession cmdlet in PowerShell. https://cloudaffaire.com/powershell-Remove-PSSession-cmdlet/ In this blog post, we will discuss Remove-PSSession cmdlet in PowerShell. You can use Remove-PSSession cmdlet to close a PowerShell session (PSSession) to a local or remote computer. When you invoke Remove-PSSEssion cmdlet, PowerShell stops all the running command in the PSSession, closes the PSSession, and then releases all…

Comments Off on PowerShell Remove-PSSession Cmdlet

PowerShell Connect-PSSession Cmdlet

PowerShell Connect-PSSession Cmdlet Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed Disconnect-PSSession cmdlet in PowerShell. https://cloudaffaire.com/powershell-disconnect-pssession-cmdlet/ In this blog post, we will discuss Connect-PSSession cmdlet in PowerShell. You can use Connect-PSSession cmdlet to connect to a disconnected PSSession. Using Connect-PSSession cmdlet, you can only connect to the session that were started by you and is in a disconnected state. Connect-PSSession cmdlet cannot be used to…

Comments Off on PowerShell Connect-PSSession Cmdlet

PowerShell Disconnect-PSSession Cmdlet

PowerShell Disconnect-PSSession Cmdlet Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed Exit-PSSession cmdlet in PowerShell. https://cloudaffaire.com/powershell-exit-pssession-cmdlet/ In this blog post, we will discuss Disconnect-PSSession cmdlet in PowerShell. You can use Disconnect-PSSession cmdlet to disconnect a PSSession from a local or remote computer. Using Disconnect-PSSession cmdlet, you can only disconnect open PSSessions that are connected to the current session. Disconnect-PSSession cmdlet cannot be used to disconnect…

Comments Off on PowerShell Disconnect-PSSession Cmdlet