New-AzContainerRegistryReplication
Creates a container registry replication.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
New-AzContainerRegistryReplication
[-ResourceGroupName] <String>
[-RegistryName] <String>
-Location <String>
[-Name <String>]
[-Tag <Hashtable>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzContainerRegistryReplication
-Registry <PSContainerRegistry>
-Location <String>
[-Name <String>]
[-Tag <Hashtable>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzContainerRegistryReplication
-Location <String>
[-Name <String>]
[-Tag <Hashtable>]
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The New-AzContainerRegistryReplication cmdlet creates a new container registry replication.
Examples
Example 1: Create a new container registry replication.
New-AzContainerRegistryReplication -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.
Parameters
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Container Registry Location. Default to the location of the resource group.
| Type: | String |
| Aliases: | ReplicationLocation |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Container Registry Replication Name. Default to the location name.
| Type: | String |
| Aliases: | ReplicationName, ResourceName |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Container Registry Object.
| Type: | PSContainerRegistry |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Container Registry Name.
| Type: | String |
| Aliases: | ContainerRegistryName |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Resource Group Name.
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The container registry resource id
| Type: | String |
| Aliases: | Id |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Container Registry Tags.
| Type: | Hashtable |
| Aliases: | Tags |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
Outputs
PSContainerRegistryReplication