共用方式為


New-AzHpcCacheStorageTarget

建立記憶體目標。

語法

New-AzHpcCacheStorageTarget
   -ResourceGroupName <String>
   -CacheName <String>
   -Name <String>
   [-CLFS]
   [-StorageContainerID <String>]
   [-Junction <Hashtable[]>]
   [-AsJob]
   [-Force]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzHpcCacheStorageTarget
   -ResourceGroupName <String>
   -CacheName <String>
   -Name <String>
   [-NFS]
   [-HostName <String>]
   [-UsageModel <String>]
   [-Junction <Hashtable[]>]
   [-AsJob]
   [-Force]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

New-AzHpcCacheStorageTarget Cmdlet 會將記憶體目標新增至 Azure HPC Cache。

範例

範例 1

New-AzHpcCacheStorageTarget -ResourceGroupName testRG -CacheName testCache -StorageTargetName testST -CLFS -StorageContainerID "/subscriptions/testsub/resourceGroups/testRG/providers/Microsoft.Storage/storageAccounts/testdstorageaccount/blobServices/default/containers/testcontainer" -Junction @(@{"namespacePath"="/msazure";"targetPath"="/";"nfsExport"="/"})

範例 2

New-AzHpcCacheStorageTarget -ResourceGroupName testRG -CacheName testCache -StorageTargetName testST -NFS -UsageModel "READ_HEAVY_INFREQ" -Junction @(@{"namespacePath"="/msazure";"targetPath"="/";"nfsExport"="/"})

參數

-AsJob

在背景執行 Cmdlet

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-CacheName

快取的名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-CLFS

更新 CLFS 記憶體目標類型。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Force

指出 Cmdlet 不會提示您進行確認。 根據預設,此 Cmdlet 會提示您確認要排清快取。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-HostName

NFS 主機名。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Junction

結。

類型:Hashtable[]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

儲存體目標的名稱。

類型:String
別名:StorageTargetName
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-NFS

更新 NFS 記憶體目標類型。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

「您想要為指定快取建立記憶體目標的資源組名。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-StorageContainerID

StorageContainerID

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-UsageModel

NFS 使用模型。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

輸出

Microsoft.Azure.PowerShell.Cmdlets.HPCCache.Models.PsHpcStorageTarget