Edit

Share via


Get-AzMediaService

Gets information about a media service.

Syntax

ResourceGroupParameterSet

Get-AzMediaService
    [-ResourceGroupName] <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

AccountNameParameterSet

Get-AzMediaService
    [-ResourceGroupName] <String>
    [-AccountName] <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The Get-AzMediaService cmdlet gets information about a media service.

Examples

Example 1: Get all media services in a resource group

Get-AzMediaService -ResourceGroupName "ResourceGroup001"

This command gets properties for all media services in the resource group named ResourceGroup001.

Example 2: Get media service properties

Get-AzMediaService -ResourceGroupName "ResourceGroup002" -AccountName "MediaService1"

This command gets the properties of the media service named MediaService1 that belongs to the resource group named ResourceGroup002.

Parameters

-AccountName

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Name, ResourceName

Parameter sets

AccountNameParameterSet
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceGroupName

Specifies the name of the resource group that contains the media service.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Outputs

PSMediaService