Found 975 Articles for Software & Coding

What is a computer hardware organization?

Bhanu Priya
Updated on 25-Nov-2021 11:27:52

4K+ Views

A computer has several modules, with possibly more than one instance of each.The system hardware consists of the following −KeyboardDisplayPrinterCPU BoardMemory BoardI/O BoardThe keyboard, display and printing devices need an interface so that it interacts with the system and the I/O board provides that interface for communication, that interacts is a system bus.The figure given below is of the computer hardware−Processor/CPUIt is the heart of the computer that controls the operations of the computer and also performs the data processing functions.CPU performs the operations like exchanging data with memory with the help of memory address register and memory buffer register.CPU ... Read More

What is the importance of operating systems?

Bhanu Priya
Updated on 25-Nov-2021 11:25:40

22K+ Views

The operating system (OS) acts as a manager for all the I/O device, memory, CPU, file storage resources and allocates them to specific programs and users, whenever necessary to perform a particular task. Therefore, the operating system is the resource manager that means it can manage the resources of a computer system internally.The operating systems are important and should be correctly used when writing the user applications. Large and complex systems have high economic impact and this result in interesting problems of management.Few systems are involved in the design and implementation of OS but, nevertheless many general techniques have to ... Read More

How to get the available Azure VM sizes for the availability set using PowerShell?

Chirag Nagrekar
Updated on 02-Sep-2021 12:04:54

217 Views

To get the Azure VM sizes available for the availability set, we can use the Get-AzVMSize command with the availability set name. Before running this command make sure that you are connected to the Azure Cloud (if not use Connect-AzAccount) and proper azure subscription (Set-AzContext to set the Azure subscription)Get-AzVMSize `    -ResourceGroupName MYRESOURCEGROUPAVAILABILITY `    -AvailabilitySetName myAvailabilitySetHere the Resource Group name is MyResourceGroupAvailability and the Availability set name is MyAvailabiltyset.Output

How to get the tags of the availability set using PowerShell?

Chirag Nagrekar
Updated on 02-Sep-2021 12:06:32

152 Views

There are two ways to retrieve the availability set tags. Using the Tags property inside the availability tag and the second by using the Get-AzTag command.Before running this command make sure that you are connected to the Azure Cloud (if not use ConnectAzAccount) and proper azure subscription (Set-AzContext to set the Azure subscription).First, we will get the availability set properties and retrieve the tag property as shown below.$availablityset = Get-AzAvailabilitySet -ResourceGroupName MYRESOURCEGROUPAVAILABILITY -Name myAvailabilitySet $availablityset.TagsOutputTo get the tags using resource ID, we need to retrieve the resource ID using the Get-AvailabilitySet command.$availablityset = Get-AzAvailabilitySet -ResourceGroupName MYRESOURCEGROUPAVAILABILITY -Name myAvailabilitySet Get-AzTag ... Read More

How to find the disk type of the Azure Availability set using PowerShell?

Chirag Nagrekar
Updated on 02-Sep-2021 11:58:58

212 Views

There are two types of disks available in the Availability Set.Aligned − for the managed disks.Classic − for the unmanaged disks.To get the disk types of the availability set, we first need to retrieve availability set information and then we need to retrieve the SKU property which stores the disk typesBefore running this command make sure that you are connected to the Azure Cloud (if not use ConnectAzAccount) and proper azure subscription (Set-AzContext to set the Azure subscription)To get the availability set information, $availablityset = Get-AzAvailabilitySet -ResourceGroupName MYRESOURCEGROUPAVAILABILITY -Name myAvailabilitySet if($availablityset.Sku -eq "Aligned"){"Managed disk"} else{"Unmanaged disk"}OutputRead More

How to get the update domain count of the Azure Availability set using PowerShell?

Chirag Nagrekar
Updated on 02-Sep-2021 11:54:09

182 Views

Virtual machines inside the Availability set get the update automatically, they reboot together and they are used for the patching of the virtual machines.To get the update domain count from the availability set, we can use the below command.Before running this command make sure that you are connected to the Azure Cloud (if not use ConnectAzAccount) and proper azure subscription (Set-AzContext to set the Azure subscription)To get the availability set,$availablityset = Get-AzAvailabilitySet -ResourceGroupName Resourcegroupname -Name AvailabilitySetNameTo get the update domain count,$availablityset.PlatformUpdateDomainCountOutput

How to get the fault domain count of the Azure Availability set using PowerShell?

Chirag Nagrekar
Updated on 02-Sep-2021 11:44:49

218 Views

The fault domain in the Azure Availability set describes the VMs in the availability set that share the common Power, Storage, network switch, etc. If there is a failure in the fault domain then all the resources in the fault domain will become unavailable.Before running the command make sure that you are connected to the Azure Cloud (if not use ConnectAzAccount) and proper azure subscription (Set-AzContext to set the Azure subscription)$availablityset = Get-AzAvailabilitySet -ResourceGroupName ResourceGroupName -Name AvailabilitySetNameTo get the Fault domain countm$availablityset.PlatformFaultDomainCountOutput

How to list the Azure VMs from the Availability set using PowerShell?

Chirag Nagrekar
Updated on 02-Sep-2021 11:50:46

585 Views

To list the Azure VMs under the availability set, we can use the command as shown belowBefore running the command make sure that you are connected to the Azure Cloud (if not use ConnectAzAccount) and proper azure subscription (Set-AzContext to set the Azure subscription)$availabilitySetVMs = Get-AzAvailabilitySet -ResourceGroupName MYRESOURCEGROUPAVAILABILITY -Name myAvailabilitySetTo get the total number of Virtual machines in the availability set, PS C:\> $availabilitySetVMs.VirtualMachinesReferences.id.countOutputTo get all the VM names from the list, we can use the below command.$VMlist = Get-AzAvailabilitySet -ResourceGroupName MYRESOURCEGROUPAVAILABILITY -Name myAvailabilitySet $i=0 foreach($vm in $VMlist.VirtualMachinesReferences){    "VM{0}: {1}" -f $i, ($vm.Id.Split('/'))[-1]    $i++ }OutputRead More

How to open port for the Azure VM using Azure CLI in PowerShell?

Chirag Nagrekar
Updated on 02-Sep-2021 11:37:04

2K+ Views

To open the specific port for the Azure VM using Azure CLI, we can use az vm open-port command. Before running this command, make sure that you are connected with the Azure Cloud account and the proper Azure subscription.To open port 80 we can use the below command.az vm open-port -n Win2k16VM1 -g testvmrg --port 80The above command will open port 80 on the VM win2k16vm1 and the resource group testvmrg.To open the port with the highest priority, you can add the --priority parameteraz vm open-port -n Win2k16VM1 -g testvmrg --port 80 --priority 100To open the port range, az vm open-port ... Read More

How to resize the Azure VM using Azure CLI in PowerShell?

Chirag Nagrekar
Updated on 02-Sep-2021 11:35:32

1K+ Views

To resize the Azure VM using az CLI, we can use “az vm resize” command. Before running this command, make sure you are connected to the Azure cloud and the proper Azure subscription.To get the current size of the VM, PS C:\> az vm show -n Win2k16VM1 -g testvmrg --query 'hardwareProfile.vmSize'Output"Standard_B2ms"Here, -n is the VM name, and -g is the resource group name.To get the VM location, PS C:\> az vm show -n Win2k16VM1 -g testvmrg --query 'location'Output"eastus" We will now get all the sizes available at the particular location so that we can resize the VM from the sizes ... Read More

Advertisements