Connect an AI assistant
Your AI assistant can read this documentation directly, so it answers from the current content instead of guessing. Add one of the servers below to your client — they use the Model Context Protocol (MCP). Each one covers a different body of content, so add the one you need.
The catalog did not load. Refresh the page to try again.
Loading…
{{server.name}}
{{server.summary}}
{{server.documentCount.toLocaleString()}} pages Not published to this site
- Name
-
{{server.name}} - URL
-
{{mcpServerUrl(server.path)}}
| Tool | What it does |
|---|---|
{{tool.name}} |
{{part.text}}{{part.text}} |
How can we help?
Searching in {{docApp.searchFilterBySpecificBookTitle}}
Searching for:
{{docApp.searchResultFilteredItems.length}} results for:
{{docApp.currentResultsSearchText}}
in {{docApp.searchFilterBySpecificBookTitle}}
Found {{docApp.searchResponse.totalResultsAvailable}} matches. Showing the top {{docApp.searchResponse.results ? docApp.searchResponse.results.length : 0}}. Use a more specific search to further narrow down the results.
No documentation pages match this search, so all content types are shown.
Most matches are in {{docApp.searchDocTypeRescue.best.name}}.
There is no book with the ID "{{docApp.searchBookRescue.bid}}", so the book filter from this link was ignored and results from all books are shown.
You have an odd number of " characters in your search terms - each one needs closing with a matching " character!
-
{{resultItem.title}} {{resultItem.matchedBy === 'semantic' ? 'semantic' : (resultItem.matchedBy === 'both' ? 'keyword + semantic' : 'keyword')}}
{{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}}