Citrix Virtual Apps and Desktops SDK

New-Hypstorage

Creates a new storage tier definition for use in a subsequent New-Item operation.

Syntax

New-HypStorage [-JobGroup] <Guid> -StorageType <StorageType> -StoragePath <String[]> [-BearerToken <String>] [-TraceParent <String>] [-TraceState <String>] [-VirtualSiteId <String>] [-AdminAddress <String>] [<CommonParameters>]
<!--NeedCopy-->

Detailed Description

Use this command to create a new storage tier definition, this definition can then be associated with a subsequent New-Item operation via the JobGroup reference.

Parameters

Name Description Required? Pipeline Input Default Value
JobGroup Specifies the JobGroup uid that is used to associate data from calls to this cmdlet with the subsequent New-Item operation. true false  
StorageType The type of the new storage tier. Currently the only storage type is TemporaryStorage. true false  
StoragePath Specifies the path to the storage that will be added. The path must be in one of the following formats: :\Connections\\MyStorage.storage or :\Connections\{}\MyStorage.storage true false  
BearerToken Specifies the bearer token assigned to the calling user false false  
TraceParent Specifies the trace parent assigned for internal diagnostic tracing use false false  
TraceState Specifies the trace state assigned for internal diagnostic tracing use false false  
VirtualSiteId Specifies the virtual site the PowerShell snap-in will connect to. false false  
AdminAddress Specifies the address of a XenDesktop controller the PowerShell snap-in will connect to. You can provide this as a host name or an IP address. false false Localhost. Once a value is provided by any cmdlet, this value becomes the default.

Input Type

Return Values

Examples

Example 1

c:\PS>$job = [Guid]::NewGuid()

c:\PS>New-HypStorage -JobGroup $job -StorageType TemporaryStorage -StoragePath @('XDHyp:\Connections\MyConnection\Primary Storage.storage')
<!--NeedCopy-->

Description

The command creates a new job group with the unique id specified by $job which can subsequently be fed into the New-Item cmdlet. It defines a TemporaryStorage tier which will cause disks to be added to the storage path ‘XDHyp:\Connections\MyConnection\Primary Storage.storage’.

New-Hypstorage