- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Chirag Nagrekar has Published 465 Articles
Chirag Nagrekar
1K+ Views
To start the stopped Azure VM using Az CLI, we can use the az vm start command. Before starting the azure VM, make sure that you are connected to the desired subscription and the Azure cloud account.To start the specific VM, we will use the command below.PS C:\> az vm start ... Read More
Chirag Nagrekar
2K+ Views
To deallocate the Azure VM using Azure CLI, we need to use the VM deallocation command az vm deallocate and need to provide the name of the VM and the resource group of the VM.Before running the deallocation command, make sure that you are connected to the proper azure subscription ... Read More
Chirag Nagrekar
6K+ Views
It is possible to connect the non-windows target machines with the PowerShell using the SSH command in PowerShell. For that, you need to use the below format.ssh username@servernameThe below example shows how we can connect the non-windows target machine.PS C:\> ssh ansible@192.168.0.104OutputOnce you run this command the first time for ... Read More
Chirag Nagrekar
6K+ Views
To delete the Windows certificate using PowerShell, we can use the Remove-Item command.Suppose you know the thumbprint of the certificate then to retrieve all the certificates that use that particular thumbprint, we will use the below command.PS C:\> gci cert:\ -Recurse | where{$_.Thumbprint -eqOutputTo remove the certificates, we will pipeline ... Read More
Chirag Nagrekar
835 Views
To retrieve the Azure VM NSG name using PowerShell, we first need to retrieve the NIC name of the VM.PS C:\> $vm = Get-AzVM -VMName Win2k16VM1 PS C:\> $vmnic = $vm.NetworkProfile.NetworkInterfaces.Id.Split('/')[-1]The above command will retrieve the name of the VM. To get the network security Group (NSG) name, we can ... Read More
Chirag Nagrekar
966 Views
To get the Azure VM deallocated date using PowerShell we can use the below command.PS C:\> Get-AzVM -VMName Win2k16VM1 -ResourceGroupName TestVMRG -StatusHere it will retrieve the PowerState of the VM.To retrieve the date when the VM was deallocated, we need to filter out the result.PS C:\> $vm = Get-AzVM -VMName ... Read More
Chirag Nagrekar
2K+ Views
There are the below Power State for the Azure VM.Starting − The virtual machine is being started.Running − The virtual machine is currently runningStopping − The virtual machine is being stoppedStopped − The virtual machine is currently stopped and but still incur compute charges.Deallocating − The virtual machine is being ... Read More
Chirag Nagrekar
410 Views
First, to retrieve the size of the Azure VM that is currently applied, we can use the below command.PS C:\> $vm = Get-AzVM -VMName VMName PS C:\> $vm.HardwareProfile.VmSizeOutputStandard_B1msNow to get the size of the Azure VMs available in the particular location we can use the below command.PS C:\> Get-AzVMSize -VMName ... Read More
Chirag Nagrekar
97 Views
To get the Azure images available from specific publishers like Microsoft at a specific location, we can use the Get-AzVMImageOffer command. For example, the below command will retrieve all the images available in the EastUs location and from the publisher MicrosoftWindowsServer.PS C:\> Get-AzVMImageOffer -Location Eastus -PublisherName "MicrosoftWindowsServer"OutputFrom the RedHat, PS ... Read More
Chirag Nagrekar
175 Views
You can get the Azure images and the Publisher name from the Azure MarketPlace. To get the Azure Images publishers available at the specific location using PowerShell, we can use the GetAzVMImagePublisher command and need to provide the location to get the available publishers.For Example, PS C:\> Get-AzVMImagePublisher -Location EastusThe ... Read More