> For the complete documentation index, see [llms.txt](https://docs.fenixpyre.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fenixpyre.com/fenixpyre-for-admins/admin-dashboard/key-management/master-encryption-keys/setup-bring-your-own-master-encryption-key-byomek-with-azure/create-a-master-encryption-key-and-store-in-azure-key-vault.md).

# Create a Master Encryption Key and Store in Azure Key Vault

Prerequisites

Before continuing, make sure you've completed the steps in the guide to set up an Azure Managed HSM:\
[Step-by-Step Guide for Setting Up an Encryption Key Provider with Azure](https://docs.fenixpyre.com/fenixpyre-for-admins/admin-dashboard/key-management/master-encryption-keys/setup-bring-your-own-master-encryption-key-byomek-with-azure/configure-azure-key-vault-as-bring-your-own-key-provider.md)

### Setting up Master Encryption Key with Azure

{% hint style="info" %}
Watch video tutorial [here](#video-tutorial)
{% endhint %}

{% stepper %}
{% step %}
**Log in to the FenixPyre Dashboard**

Use your credentials to access the FenixPyre Dashboard.
{% endstep %}

{% step %}

#### Navigate to Key Management

Go to `Security` → `Key Management`.
{% endstep %}

{% step %}

#### Create a Master Encryption Key

Select `Master Encryption Keys` tab and click on `Add New Master Encryption Key.`
{% endstep %}

{% step %}

#### Select Microsoft Azure from the Key Provider options

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FKGua8nqw6tT9UWbdmPWW%2Fimage.png?alt=media&amp;token=0bd54b4c-f1ef-4073-9ebd-71278f1f5485" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Select the key provider

From the dropdown, select the Azure Key Provider you have setup.

{% hint style="info" %}
Make sure you have a Azure Key Vault setup as a Key Provider on FenixPyre. [Read more](https://docs.fenixpyre.com/fenixpyre-for-admins/admin-dashboard/key-management/master-encryption-keys/setup-bring-your-own-master-encryption-key-byomek-with-azure/configure-azure-key-vault-as-bring-your-own-key-provider.md)
{% endhint %}
{% endstep %}

{% step %}

#### Enter the key details and create the key

* Provide a name for your key.
* Click `Create Key` to proceed.
  {% endstep %}

{% step %}
**Success Confirmation**

A confirmation message will appear indicating successful key creation.

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2F5bQiQGXjehoriddbBCA3%2Fimage.png?alt=media&amp;token=07ce5615-698e-452a-88da-46a737729edc" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Copy and Download the Master Key**

* Copy the master key and download it for safekeeping.
* Enter the key on the next page for verification.

{% hint style="warning" %}
**Important:** FenixPyre does not store the decrypted version of the master key. Please ensure you securely store the key, as it is essential for decrypting your data in the future.
{% endhint %}
{% endstep %}

{% step %}

#### Key Verification

Enter the key in the final step for verification to complete the master key creation process.

<figure><img src="https://3947089720-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOuMyGdeUQs2m5OYPFuwT%2Fuploads%2FsAdjqdGNxFBmOIxWBhzd%2Fimage.png?alt=media&amp;token=553591ca-a357-4d1a-ab46-cd86b5f790f3" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

### Video Tutorial

{% embed url="<https://www.loom.com/embed/b7edcb1bc29847c69871b752be6b593a?sid=cbe546dd-ee0a-49e4-82d3-3d0e9ea2d427>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fenixpyre.com/fenixpyre-for-admins/admin-dashboard/key-management/master-encryption-keys/setup-bring-your-own-master-encryption-key-byomek-with-azure/create-a-master-encryption-key-and-store-in-azure-key-vault.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
