< Back
Set-AzureRmMediaServiceKey
Post
NAME Set-AzureRmMediaServiceKey
SYNOPSIS
Regenerates a key used for accessing the REST endpoint associated with the media service.
SYNTAX
Set-AzureRmMediaServiceKey [-ResourceGroupName] <String> [-AccountName] <String> [-KeyType] {Primary | Secondary} [-DefaultProfile
<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Set-AzureRmMediaServiceKey cmdlet regenerates a key used for accessing the Representational State Transfer (REST) endpoint associated with the
media service.
PARAMETERS
-AccountName <String>
Specifies the name of the media service that this cmdlet regenerates.
Required? true
Position? 1
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
-KeyType <KeyType>
Specifies the key type of the media service. The acceptable values for this parameter are: Primary or Secondary.
Required? true
Position? 2
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group that contains the media service.
Required? true
Position? 0
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
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Media.Models.PSServiceKey
NOTES
Example 1: Regenerate the primary key used for accessing the Media Service
PS C:\\>Set-AzureRmMediaServiceKey -ResourceGroupName "ResourceGroup004" -AccountName "MediaService001" -KeyType Primary
This command regenerates the primary key for the media service named MediaService001 that belongs to the resource group named ResourceGroup004.
Example 2: Regenerates the secondary key used for accessing the Media Service
PS C:\\>Set-AzureRmMediaServiceKey -ResourceGroupName "Resourcegroup123" -AccountName "MediaService002" -KeyType Secondary
This command regenerates the secondary key for the media service named MediaService002 that belongs to the resource group named Resourcegroup123.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... servicekey
Get-AzureRmMediaServiceKeys
SYNOPSIS
Regenerates a key used for accessing the REST endpoint associated with the media service.
SYNTAX
Set-AzureRmMediaServiceKey [-ResourceGroupName] <String> [-AccountName] <String> [-KeyType] {Primary | Secondary} [-DefaultProfile
<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Set-AzureRmMediaServiceKey cmdlet regenerates a key used for accessing the Representational State Transfer (REST) endpoint associated with the
media service.
PARAMETERS
-AccountName <String>
Specifies the name of the media service that this cmdlet regenerates.
Required? true
Position? 1
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
-KeyType <KeyType>
Specifies the key type of the media service. The acceptable values for this parameter are: Primary or Secondary.
Required? true
Position? 2
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group that contains the media service.
Required? true
Position? 0
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
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Media.Models.PSServiceKey
NOTES
Example 1: Regenerate the primary key used for accessing the Media Service
PS C:\\>Set-AzureRmMediaServiceKey -ResourceGroupName "ResourceGroup004" -AccountName "MediaService001" -KeyType Primary
This command regenerates the primary key for the media service named MediaService001 that belongs to the resource group named ResourceGroup004.
Example 2: Regenerates the secondary key used for accessing the Media Service
PS C:\\>Set-AzureRmMediaServiceKey -ResourceGroupName "Resourcegroup123" -AccountName "MediaService002" -KeyType Secondary
This command regenerates the secondary key for the media service named MediaService002 that belongs to the resource group named Resourcegroup123.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... servicekey
Get-AzureRmMediaServiceKeys