Get-AzApiManagementCache
Get the details of the Cache.
Syntax
Get-AzApiManagementCache
-Context <PsApiManagementContext>
[-CacheId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzApiManagementCache
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get the details of the Cache configured in Api Management service.
Examples
Example 1: Get all Caches
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementCache -Context $apimContext
CacheId : westus
Description : apim.redis.cache.windows.net
ConnectionString : {{5cc1848125a3f724dcf9a928}}
ResourceId : https://management.azure.com/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/Api-Default-West-US/providers/Microsoft.Cache/Redis/apim
Id : /subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/Api-Default-West-US/providers/Microsoft.ApiManagement/service/contoso/caches/westus
ResourceGroupName : Api-Default-West-US
ServiceName : contoso
Gets a list of all the Caches configured in the Api Management service.
Example 2: Get the Cache specified by the Identifier westus
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementCache -Context $apimContext -cacheId westus
CacheId : westus
Description : apim.redis.cache.windows.net
ConnectionString : {{5cc1848125a3f724dcf9a928}}
ResourceId : https://management.azure.com/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/Api-Default-West-US/providers/Microsoft.Cache/Redis/apim
Id : /subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/Api-Default-WestUS/providers/Microsoft.ApiManagement/service/contoso/caches/westus
ResourceGroupName : Api-Default-WestUS
ServiceName : contoso
Get the details of the specified Cache configured for westus
Parameters
-CacheId
Identifier of a cache. If specified will try to find cache by the identifier. This parameter is optional.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Context
Instance of PsApiManagementContext. This parameter is required.
Type: | PsApiManagementContext |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceId
Arm Resource Identifier of a cache. If specified will try to find cache by the identifier. This parameter is required.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
Outputs
Related Links
Azure PowerShell