- 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
2K+ Views
To delete the azure resource group using PowerShell, we need to use the Remove-AZResourceGroup command. But before using this command, make sure that no usable resources exist in the resource group that you want to delete.To check if the resources are available in the resource group, use the below command. ... Read More
Chirag Nagrekar
1K+ Views
To export the azure VMs using PowerShell, we first need to get their desired properties. The cmdlet Get-AZVM will get all the VMs connected to the particular subscription. To export them to the CSV file we can use the below command.ExampleGet-AzVM | Export-Csv .\AZVMs.csv -NoTypeInformationOnce you run the above command, ... Read More
Chirag Nagrekar
2K+ Views
Azure Resource Group is a container that stores the resources like Virtual Machines, Storage, IP addresses, etc. To create a new Azure Resource group, we need to use the New-AZResourceGroup command.To use this cmdlet, you first need to connect to the Azure account, and then if you want to create ... Read More
Chirag Nagrekar
2K+ Views
To get the available resources from the resource groups using PowerShell, we need to use the Get-AZResource command. Suppose we have the resource group name AnsibleTestRG and we need to retrieve the resources from the resource group, then we will use the below command.ExampleGet-AzResource -ResourceGroupName AnsibleTestRGTo filter the output, OutputGet-AzResource ... Read More
Chirag Nagrekar
995 Views
To check if the resource group is empty or not we need to check if the resource group contains any resources.For this example, We have a resource group name called the TestRG and we need to check if it is empty.Example$resources = Get-AzResource -ResourceGroupName TestRG if($resources){"Resource group is not empty"} else{"Resource group is empty"}OutputResource group is emptyTo check if the resource ... Read More
Chirag Nagrekar
3K+ Views
To create a temporary file with the PowerShell, we can use the New-TemporaryFile command. This command creates a temporary file tmp.tmp where NNNN represents the random hexadecimal number.ExamplePS C:\> New-TemporaryFile Directory: C:\Users\Administrator.AUTOMATIONLAB\AppData\Local\Temp Mode LastWriteTime Length Name ---- ... Read More
Chirag Nagrekar
5K+ Views
To get the disk performance using PowerShell, we need to use the Performance counter of the disk. There are performance counters available for the Physical disk or the logical disk. To check what the disks related counter sets are available we can use the below command, ExamplePS C:\> Get-Counter -ListSet ... Read More
Chirag Nagrekar
342 Views
To get all the process-related counters, you need to use the below command.ExampleGet-Counter -ListSet "*Processor*" | Select CounterSetNameOutputCounterSetName -------------- Processor Information Per Processor Network Activity Cycles Per Processor Network Interface Card Activity Hyper-V Worker Virtual Processor Hyper-V Hypervisor Virtual Processor Hyper-V Hypervisor Root Virtual Processor Hyper-V Hypervisor Logical Processor Processor ... Read More
Chirag Nagrekar
693 Views
To get the Windows Performance counter using the Powershell, we can use the Get-Counter cmdlet.There are various performance counters available to measure the performance of the windows operating system. Get-Counter cmdlet is used to retrieve the performance of the local or the remote systems with the specific counter name.When you ... Read More
Chirag Nagrekar
606 Views
To delete all the tags of the Azure VM using PowerShell, we need to use the Remove-AZTag command.To delete the azure resource tags, we need its resource ID but before that, it is always better to take azure resource tags backup. You can search the question on the TutorialPoints site ... Read More
To Continue Learning Please Login
Login with Google