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!
-
{{resultItem.title}}
{{resultItem.url}}
{{docApp.libraryHomeViewProduct.title || docApp.libraryHomeViewProduct.id}}
{{docApp.libraryHomeViewProduct.description}}
{{group.title || group.id}}
{{group.description}}
Operation Information
This operation will add a virtual hard disk to a VMware vSphere Virtual Machine.
See https://code.vmware.com/docs/10197/cmdlet-reference/doc/New-HardDisk.html for detailed information regarding the operation-specific parameters.
Extra Credentials
This operation requires an extra credential to be provided, stored in KeySafe, to the following specification:
- Credential Reference: credential1
- Credential Keysafe Key Type: Username + Password
Input Parameters
Name | Type | Description | Required | Sensitive |
---|---|---|---|---|
VMName |
string |
The name of the Virtual Machine to perform the action against | Yes | No |
Port |
string |
Specifies the port on the server you want to use for the connection | No | No |
Protocol |
string |
Specifies the internet protocol you want to use for the connection. It can be either http or https | No | No |
NoTrustedCert |
boolean |
Specifies if the Connect-VIServer cmdlet will establish the connection without taking into account that the certificate is invalid | Yes | No |
CapacityGB |
decimal |
Specifies the size (GB) of the new HDD | No | No |
Persistence |
string |
Specifies the disk persistence mode. The valid values are Persistent, IndependentPersistent, and IndependentNonPersistent. This parameter is supported only when the DiskType is set to rawVirtual or flat | No | No |
DiskType |
string |
Specifies the type of file backing that you want to use. The valid values are rawVirtual, rawPhysical, flat, and unknown | No | No |
DeviceName |
string |
Specifies the host-specific device the Logical Unit Number (LUN) is being accessed through | No | No |
DiskPath |
string |
Specifies the path to the disk | No | No |
StorageFormat |
string |
Specifies the storage format of the new disk. This parameter accepts Thin, Thick, and EagerZeroedThick values | No | No |
StoragePolicy |
string |
Specifies the storage policy that you want to attach to the new disk. If the storage policy is an encryption policy, the new disk will be encrypted. If the storage policy is a non-encryption policy, the policy will be attached to the new disk | 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 |
storageFormat |
string |
Storage Format | No | No |
persistence |
string |
Persistence | No | No |
diskType |
string |
Disk Type | No | No |
filename |
string |
Filename | No | No |
capacityGB |
string |
The capacity of the new disk | No | No |
parentId |
string |
Parent ID | No | No |
uid |
string |
Unique ID | No | No |
id |
string |
Disk ID | No | No |
name |
string |
Disk Name | No | No |
- Version {{docApp.book.version}}
- Node {{docApp.node}} / {{docApp.build}}
In This Document