Get-AzStorageCacheTarget
Returns a Storage Target from a cache.
Syntax
Get-AzStorageCacheTarget
-CacheName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzStorageCacheTarget
-CacheName <String>
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzStorageCacheTarget
-InputObject <IStorageCacheIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Returns a Storage Target from a cache.
Examples
Example 1: List Storage Target by Cache Name.
Get-AzStorageCacheTarget -CacheName azps-storagecache -ResourceGroupName azps_test_gp_storagecache
Name Location ResourceGroupName State
---- -------- ----------------- -----
azps-cachetarget eastus azps_test_gp_storagecache Ready
List Storage Target by Cache Name.
Example 2: Get a Storage Target by Storage Target Name.
Get-AzStorageCacheTarget -CacheName azps-storagecache -ResourceGroupName azps_test_gp_storagecache -Name azps-cachetarget
Name Location ResourceGroupName State
---- -------- ----------------- -----
azps-cachetarget eastus azps_test_gp_storagecache Ready
Get a Storage Target by Storage Target Name.
Parameters
-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 |
-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 |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IStorageCacheIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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 |
-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 |
-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 |