Editar

Compartilhar via


New-AzStorageCacheTarget

Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache is healthy again.

Syntax

New-AzStorageCacheTarget
   -CacheName <String>
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String>]
   [-BlobNfTarget <String>]
   [-BlobNfUsageModel <String>]
   [-BlobNfVerificationTimer <Int32>]
   [-BlobNfWriteBackTimer <Int32>]
   [-ClfTarget <String>]
   [-Junction <INamespaceJunction[]>]
   [-Nfs3Target <String>]
   [-Nfs3UsageModel <String>]
   [-Nfs3VerificationTimer <Int32>]
   [-Nfs3WriteBackTimer <Int32>]
   [-State <OperationalStateType>]
   [-TargetType <StorageTargetType>]
   [-UnknownAttribute <Hashtable>]
   [-DefaultProfile <PSObject>]
   [-AsJob]
   [-NoWait]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache is healthy again.

Examples

Example 1: Create or update a Storage Target.

New-AzStorageCacheTarget -CacheName azps-storagecache -Name azps-cachetarget -ResourceGroupName azps_test_gp_storagecache -Nfs3Target "10.0.44.44" -Nfs3UsageModel "READ_WRITE" -Nfs3VerificationTimer 30 -TargetType 'nfs3'

Name             Location ResourceGroupName         State
----             -------- -----------------         -----
azps-cachetarget eastus   azps_test_gp_storagecache Ready

Create or update a Storage Target. This operation is allowed at any time, but if the cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache is healthy again.

Parameters

-AsJob

Run the command as a job

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

-BlobNfTarget

Resource ID of the storage container.

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

-BlobNfUsageModel

Identifies the StorageCache usage model to be used for this storage target.

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

-BlobNfVerificationTimer

Amount of time (in seconds) the cache waits before it checks the back-end storage for file updates.

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

-BlobNfWriteBackTimer

Amount of time (in seconds) the cache waits after the last file change before it copies the changed file to back-end storage.

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

-CacheName

Name of cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

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

-ClfTarget

Resource ID of storage container.

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Junction

List of cache namespace junctions to target for namespace associations. To construct, see NOTES section for JUNCTION properties and create a hash table.

Type:INamespaceJunction[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of Storage Target.

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

-Nfs3Target

IP address or host name of an NFSv3 host (e.g., 10.0.44.44).

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

-Nfs3UsageModel

Identifies the StorageCache usage model to be used for this storage target.

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

-Nfs3VerificationTimer

Amount of time (in seconds) the cache waits before it checks the back-end storage for file updates.

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

-Nfs3WriteBackTimer

Amount of time (in seconds) the cache waits after the last file change before it copies the changed file to back-end storage.

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

-NoWait

Run the command asynchronously

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

-ResourceGroupName

The name of the resource group. The name is case insensitive.

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

-State

Storage target operational state.

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

-SubscriptionId

The ID of the target subscription.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TargetType

Type of the Storage Target.

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

-UnknownAttribute

Dictionary of string->string pairs containing information about the Storage Target.

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IStorageTarget