// Module included in the following assemblies:
//
//* registry/configuring_registry_storage-azure.adoc

[id="registry-configuring-storage-azure-user-infra_{context}"]
= Configuring registry storage for Azure

During installation, your cloud credentials are sufficient to create Azure Blob
Storage, and the Registry Operator automatically configures storage.

.Prerequisites

* A cluster on Azure with user-provisioned infrastructure.
* To configure registry storage for Azure, provide Registry Operator
cloud credentials.
* For Azure storage the secret is expected to contain one key:
** `REGISTRY_STORAGE_AZURE_ACCOUNTKEY`

.Procedure

. Create an link:https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-portal[Azure storage container].

. Fill in the storage configuration in `configs.imageregistry.operator.openshift.io/cluster`:
+
----
$ oc edit configs.imageregistry.operator.openshift.io/cluster

storage:
  azure:
    accountName: <account-name>
    container: <container-name>
----

// Module included in the following assemblies:
//
//* registry/configuring_registry_storage-azure.adoc

[id="registry-configuring-storage-azure-user-infra_{context}"]
= Configuring registry storage for Azure

During installation, your cloud credentials are sufficient to create Azure Blob
Storage, and the Registry Operator automatically configures storage.

.Prerequisites

* A cluster on Azure with user-provisioned infrastructure.
* To configure registry storage for Azure, provide Registry Operator
cloud credentials.
* For Azure storage the secret is expected to contain one key:
** `REGISTRY_STORAGE_AZURE_ACCOUNTKEY`

.Procedure

. Create an link:https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-portal[Azure storage container].

. Fill in the storage configuration in `configs.imageregistry.operator.openshift.io/cluster`:
+
----
$ oc edit configs.imageregistry.operator.openshift.io/cluster

storage:
  azure:
    accountName: <storage-account-name>
    container: <container-name>
----

Update storage account name in Azure registry storage configuration
Update storage account name in Azure registry storage configuration
