< Back
Export-AzureRmRedisCache
Post
NAME Export-AzureRmRedisCache
SYNOPSIS
Exports data from Azure Redis Cache to a container.
SYNTAX
Export-AzureRmRedisCache -Container <String> [-DefaultProfile <IAzureContextContainer>] [-Format <String>] -Name <String> [-PassThru] -Prefix
<String> [-ResourceGroupName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Export-AzureRmRedisCache cmdlet exports data from Azure Redis Cache to a container.
PARAMETERS
-Container <String>
Specifies the Service SAS URL of container where this cmdlet exports data. You can generate a Service SAS URL using the following PowerShell
commands:
$storageAccountContext = New-AzureStorageContext -StorageAccountName "storageName" -StorageAccountKey "key"
$sasKeyForContainer = New-AzureStorageContainerSASToken -Name "containername" -Permission "rwdl" -StartTime
([System.DateTime]::Now).AddMinutes(-15) -ExpiryTime ([System.DateTime]::Now).AddHours(5) -Context $storageAccountContext -FullUri
Export-AzureRmRedisCache -ResourceGroupName "ResourceGroupName" -Name "cacheName" -Prefix "blobprefix" -Container ($sasKeyForContainer)
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Format <String>
Specifies a format for the blob. Currently rdb is the only supported format.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String>
Specifies the name of a cache.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-PassThru [<SwitchParameter>]
Indicates that this cmdlet returns a Boolean that indicates whether the operation succeeds. By default, this cmdlet does not generate any
output.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Prefix <String>
Specifies a prefix to use for blob names.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group that contains the cache.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
You can pipe input to this cmdlet by property name, but not by value.
OUTPUTS
None
NOTES
* Keywords: azure, azurerm, arm, resource, management, manager, redis, cache, web, webapp, website
Example 1: Export data
PS C:\\>Export-AzureRmRedisCache -ResourceGroupName "ResourceGroup13" -Name "RedisCache06" -Prefix "blobprefix" -Container "https://mystorageaccount
.blob.core.windows.net/container18?sv=2015-04-05&sr=c&sig=HezZtBZ3DURmEGDduauE7pvETY4kqlPI8JCNa8ATmaw%3D&st=2016-05-27T00%3A00%3A00Z&se=2016-05-28T
00%3A00%3A00Z&sp=rwdl"
This command exports data from an Azure Redis Cache instance into the container that is specified by the SAS URL.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... rediscache
Import-AzureRmRedisCache
New-AzureRmRedisCache
Remove-AzureRmRedisCache
Reset-AzureRmRedisCache
Reset-AzureRmRedisCache
SYNOPSIS
Exports data from Azure Redis Cache to a container.
SYNTAX
Export-AzureRmRedisCache -Container <String> [-DefaultProfile <IAzureContextContainer>] [-Format <String>] -Name <String> [-PassThru] -Prefix
<String> [-ResourceGroupName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Export-AzureRmRedisCache cmdlet exports data from Azure Redis Cache to a container.
PARAMETERS
-Container <String>
Specifies the Service SAS URL of container where this cmdlet exports data. You can generate a Service SAS URL using the following PowerShell
commands:
$storageAccountContext = New-AzureStorageContext -StorageAccountName "storageName" -StorageAccountKey "key"
$sasKeyForContainer = New-AzureStorageContainerSASToken -Name "containername" -Permission "rwdl" -StartTime
([System.DateTime]::Now).AddMinutes(-15) -ExpiryTime ([System.DateTime]::Now).AddHours(5) -Context $storageAccountContext -FullUri
Export-AzureRmRedisCache -ResourceGroupName "ResourceGroupName" -Name "cacheName" -Prefix "blobprefix" -Container ($sasKeyForContainer)
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Format <String>
Specifies a format for the blob. Currently rdb is the only supported format.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String>
Specifies the name of a cache.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-PassThru [<SwitchParameter>]
Indicates that this cmdlet returns a Boolean that indicates whether the operation succeeds. By default, this cmdlet does not generate any
output.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Prefix <String>
Specifies a prefix to use for blob names.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group that contains the cache.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
You can pipe input to this cmdlet by property name, but not by value.
OUTPUTS
None
NOTES
* Keywords: azure, azurerm, arm, resource, management, manager, redis, cache, web, webapp, website
Example 1: Export data
PS C:\\>Export-AzureRmRedisCache -ResourceGroupName "ResourceGroup13" -Name "RedisCache06" -Prefix "blobprefix" -Container "https://mystorageaccount
.blob.core.windows.net/container18?sv=2015-04-05&sr=c&sig=HezZtBZ3DURmEGDduauE7pvETY4kqlPI8JCNa8ATmaw%3D&st=2016-05-27T00%3A00%3A00Z&se=2016-05-28T
00%3A00%3A00Z&sp=rwdl"
This command exports data from an Azure Redis Cache instance into the container that is specified by the SAS URL.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... rediscache
Import-AzureRmRedisCache
New-AzureRmRedisCache
Remove-AzureRmRedisCache
Reset-AzureRmRedisCache
Reset-AzureRmRedisCache