< Back

Set-AzureRmMediaService

Tue Jan 29, 2019 9:52 pm

NAME Set-AzureRmMediaService



SYNOPSIS

Modifies specified properties of an existing media service.





SYNTAX

Set-AzureRmMediaService [-ResourceGroupName] <String> [-AccountName] <String> [-DefaultProfile <IAzureContextContainer>] [-StorageAccounts

<PSStorageAccount[]>] [-Tag <Hashtable>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Set-AzureRmMediaService cmdlet modifies specified properties of an existing media service.





PARAMETERS

-AccountName <String>

Specifies the name of the media service that this cmdlet modifies.



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



-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



-StorageAccounts <PSStorageAccount[]>

Specifies an array of storage accounts that this cmdlet associates with the media service.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Tag <Hashtable>

The tags associated with the media account.



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

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.Media.Models.PSMediaService







NOTES









Example 1: Modify an existing media service



PS C:\\>$Tags = @{"tag1" = "value1"; "tag2" = "value2"}

Set-AzureRmMediaService -ResourceGroupName "ResourceGroup123" -AccountName "MediaService001" -Tags $Tags -StorageAccounts $StorageAccounts



The first command creates a series of tags and stores those tags in the variable named $Tags.



This second command updates the media service named MediaService001 that belongs to the resource group named ResourceGroup123 with the tags stored

in $Tags variable. The command also uses an array of storage configuration objects stored in $StorageAccounts variable.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... diaservice

Get-AzureRmMediaService

New-AzureRmMediaService

Remove-AzureRmMediaService