<commit_before>// 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>
----<commit_msg>Update storage account name in Azure registry storage configuration<commit_after>// 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>
----
{'fraction_non_alphanumeric': 0.09069767441860466, 'fraction_numerical': 0.0, 'mean_word_length': 5.076271186440678, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5997824', 'n_tokens_mistral': 607, 'n_tokens_neox': 570, 'n_words': 180}