< Back

New-AzureRmMediaServiceStorageConfig

Tue Jan 29, 2019 9:52 pm

NAME New-AzureRmMediaServiceStorageConfig



SYNOPSIS

Create a storage account configuration for the media service cmdlets.





SYNTAX

New-AzureRmMediaServiceStorageConfig [-StorageAccountId] <String> [[-IsPrimary]] [-DefaultProfile <IAzureContextContainer>] [-Confirm] [-WhatIf]

[<CommonParameters>]





DESCRIPTION

The New-AzureRmMediaServiceStorageConfig cmdlet creates a storage account configuration for the media service cmdlets.





PARAMETERS

-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



-IsPrimary [<SwitchParameter>]

Indicates that the cmdlet creates the storage account as the primary storage for the media service.



Required? false

Position? 1

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-StorageAccountId <String>

Specifies the ID of the storage account.



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.PSStorageAccount







NOTES









Example 1: Create a storage account configuration for the media service cmdlets



PS C:\\>

$StorageAccount = New-AzureRmStorageAccount -ResourceGroupName $ResourceGroupName -Name "Storage1" -Location "East US" -Type "Standard_GRS"



PS C:\\> New-AzureRmMediaServiceStorageConfig -StorageAccountId $StorageAccount.Id -IsPrimary



The first command creates a storage account object by using the New-AzureRmStorageAccount cmdlet. The command names this storage account Storage1

and the type is named Standard_GRS and stores the result in the variable named $StorageAccount.



The second command creates a storage configuration object as the primary storage account associated with the media service using the storage

account ID information stored in the $StorageAccount variable.







RELATED LINKS

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

Sync-AzureRmMediaServiceStorageKeys