Documentation

{{docApp.title}}

{{docApp.description}}

How can we help?

{{docApp.searchError}}
{{product.name}}

Searching in {{docApp.searchFilterBySpecificBookTitle}}

{{docApp.searchResultFilteredItems.length}} results for: {{docApp.currentResultsSearchText}} in {{docApp.searchFilterBySpecificBookTitle}}
Search results have been limited. There are a total of {{docApp.searchResponse.totalResultsAvailable}} matches.

You have an odd number of " characters in your search terms - each one needs closing with a matching " character!

{{docApp.libraryHomeViewProduct.title || docApp.libraryHomeViewProduct.id}}

{{docApp.libraryHomeViewProduct.description}}

  1. {{book.title}}

{{group.title || group.id}}

{{group.description}}

  1. {{book.title}}

{{group.title}}

Set Memory

Operation Information

This operation will set the memory details for a specific Hyper-V Virtual Machine. The target VM must be in a shutdown state, as per the Set-VMMemory documentation: https://docs.microsoft.com/en-us/powershell/module/hyper-v/set-vmmemory?view=win10-ps

Input Parameters

Name Type Description Required Sensitive
VMName string The name of the Virtual Machine Yes No
HostName string Optionally provide the Hyper-V host to perform the action on. NetBIOS names, IP addresses, and fully qualified domain names are allowable No No
DynamicMemoryEnabled boolean Specifies whether dynamic memory is to be enabled on the virtual machine to be configured Yes No
MinimumBytes string Specifies the minimum amount of memory to be used by a virtual machine which has dynamic memory enabled. Examples: 1.5GB, 10GB, 1TB No No
StartupBytes string Specifies the initial amount of memory to be assigned to a virtual machine with dynamic memory enabled, or the total amount of memory to be assigned to a virtual machine with dynamic memory disabled. Examples: 1.5GB, 10GB, 1TB No No
MaximumBytes string Specifies the maximum amount of memory to be used by a virtual machine which has dynamic memory enabled. Examples: 1.5GB, 10GB, 1TB No No
Priority decimal Sets the priority for memory availability to this virtual machine relative to other virtual machines on the virtual machine host. Allowed values range from 0 to 100. Set to -1 to disable this parameter No No
Buffer decimal Specifies the percentage of memory to reserve as a buffer in the virtual machine to be configured. Allowed values range from 5 to 2000. Set to -1 to disable this parameter No No
MaximumAmountPerNumaNodeBytes string Specifies the maximum amount of memory per NUMA node in the virtual machine to be configured. Examples: 512MB, 1GB No No
ResourcePoolName string Specifies the name of the memory resource pool for this virtual machine No No

Output Parameters

Name Type Description Required Sensitive
outcome string Outcome of the operation. Can be OK, WARN or FAIL Yes No
errors string Any errors returned by the operation No No
warnings string Any warnings returned by the operation No No
In This Document