編輯

共用方式為


New-AzStorageCacheTargetSpaceAllocationObject

Create an in-memory object for StorageTargetSpaceAllocation.

Syntax

New-AzStorageCacheTargetSpaceAllocationObject
   [-AllocationPercentage <Int32>]
   [-Name <String>]
   [<CommonParameters>]

Description

Create an in-memory object for StorageTargetSpaceAllocation.

Examples

Example 1: Create an in-memory object for StorageTargetSpaceAllocation.

New-AzStorageCacheTargetSpaceAllocationObject -AllocationPercentage 100 -Name azps-cachetarget

AllocationPercentage Name
-------------------- ----
100                  azps-cachetarget

Create an in-memory object for StorageTargetSpaceAllocation.

Parameters

-AllocationPercentage

The percentage of cache space allocated for this storage target.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of the storage target.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

StorageTargetSpaceAllocation