< Back

New-AzureRmContainerRegistryReplication

Tue Jan 29, 2019 9:40 pm

NAME New-AzureRmContainerRegistryReplication



SYNOPSIS

Creates a container registry replication.





SYNTAX

New-AzureRmContainerRegistryReplication [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Location <String> [-Name <String>] -Registry

<PSContainerRegistry> [-Tag <Hashtable>] [-WhatIf] [<CommonParameters>]



New-AzureRmContainerRegistryReplication [-ResourceGroupName] <String> [-RegistryName] <String> [-Confirm] [-DefaultProfile

<IAzureContextContainer>] -Location <String> [-Name <String>] [-Tag <Hashtable>] [-WhatIf] [<CommonParameters>]



New-AzureRmContainerRegistryReplication [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Location <String> [-Name <String>] -ResourceId

<String> [-Tag <Hashtable>] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The New-AzureRmContainerRegistryReplication cmdlet creates a new container registry replication.





PARAMETERS

-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



-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



-Location <String>

Container Registry Location. Default to the location of the resource group.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Container Registry Replication Name. Default to the location name.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Registry <PSContainerRegistry>

Container Registry Object.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RegistryName <String>

Container Registry Name.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Resource Group Name.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceId <String>

The container registry resource id



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Tag <Hashtable>

Container Registry Tags.



Required? false

Position? named

Default value None

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

System.String







OUTPUTS

Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryReplication







NOTES









Example 1: Create a new container registry replication.



PS C:\\>New-AzureRmContainerRegistryReplication -ResourceGroupName "MyResourceGroup" -RegistryName "MyRegistry" -Name replication001 -Location

'west us' -Tag @{tagName='MyTag'}



Name Location Provisioni Status StatusTimestamp Tags

ngState

---- -------- ---------- ------ --------------- ----

replication001 westus Succeeded Ready 11/17/2017 10:19:45 PM {[tagName, MyTag]}



Create a new container registry replication.







RELATED LINKS

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

Get-AzureRmContainerRegistryReplication

Remove-AzureRmContainerRegistryReplication