exec.azurerm.containerregistry.replication

Azure Resource Manager (ARM) Container Registry Replication Execution Module

New in version 3.0.0.

maintainer:

<devops@eitr.tech>

configuration:

This module requires Azure Resource Manager credentials to be passed as keyword arguments to every function or via acct in order to work properly.

Required provider parameters:

if using username and password:
  • subscription_id
  • username
  • password
if using a service principal:
  • subscription_id
  • tenant
  • client_id
  • secret

Optional provider parameters:

cloud_environment: Used to point the cloud driver to different API endpoints, such as Azure GovCloud. Possible values:

  • AZURE_PUBLIC_CLOUD (default)
  • AZURE_CHINA_CLOUD
  • AZURE_US_GOV_CLOUD
  • AZURE_GERMAN_CLOUD
idem_azurerm.exec.azurerm.containerregistry.replication.create_or_update(hub, ctx, location, registry_name, resource_group, tags=None, **kwargs)

New in version 3.0.0.

Creates a replication for a container registry with the specified parameters.

Parameters:
  • location – The location of the replica. This cannot be changed after the resource is created and is also used for the replica name.
  • registry_name – The name of the container registry.
  • resource_group – The name of the resource group to which the container registry belongs.
  • tags – The tags of the resource.

CLI Example:

azurerm.containerregistry.replication.create_or_update eastus2 testrepo testgroup
idem_azurerm.exec.azurerm.containerregistry.replication.delete(hub, ctx, location, registry_name, resource_group, **kwargs)

New in version 3.0.0.

Deletes a replication from a container registry.

Parameters:
  • location – The location of the replica.
  • registry_name – The name of the container registry.
  • resource_group – The name of the resource group to which the container registry belongs.

CLI Example:

azurerm.containerregistry.replication.delete repl testrepo testgroup
idem_azurerm.exec.azurerm.containerregistry.replication.get(hub, ctx, location, registry_name, resource_group, **kwargs)

New in version 3.0.0.

Gets the properties of the specified replication.

Parameters:
  • location – The location of the replica.
  • registry_name – The name of the container registry.
  • resource_group – The name of the resource group to which the container registry belongs.

CLI Example:

azurerm.containerregistry.replication.get eastus2 testrepo testgroup
idem_azurerm.exec.azurerm.containerregistry.replication.list_(hub, ctx, registry_name, resource_group, **kwargs)

New in version 3.0.0.

Lists all the replications for the specified container registry.

Parameters:
  • registry_name – The name of the container registry.
  • resource_group – The name of the resource group to which the container registry belongs.

CLI Example:

azurerm.containerregistry.replication.list testrepo testgroup