|
| 1 | +--- |
| 2 | +title: Batch Certificate Migration Guide |
| 3 | +description: Describes the migration steps for the batch certificates and the end of support details. |
| 4 | +author: harperche |
| 5 | +ms.author: harpercheng |
| 6 | +ms.service: batch |
| 7 | +ms.topic: how-to #Required; leave this attribute/value as-is. |
| 8 | +ms.date: 08/15/2022 |
| 9 | +--- |
| 10 | +# Batch Certificate Migration Guide |
| 11 | + |
| 12 | +Securing the application and critical information has become essential in today's needs. With growing customers and increasing demand for security, managing key information plays a significant role in securing data. Many customers need to store secure data in the application, and it needs to be managed to avoid any leakage. In addition, only legitimate administrators or authorized users should access it. Azure Batch offers Certificates created and managed by the Batch service. Azure Batch also provides a Key Vault option, and it's considered an azure-standard method for delivering more controlled secure access management. |
| 13 | + |
| 14 | +Azure Batch provides certificates feature at the account level. Customers must generate the Certificate and upload it manually to the Azure Batch via the portal. To access the Certificate, it must be associated and installed for the 'Current User.' The Certificate is usually valid for one year and must follow a similar procedure every year. |
| 15 | + |
| 16 | +For Azure Batch customers, a secure way of access should be provided in a more standardized way, reducing any manual interruption and reducing the readability of key generated. Therefore, we'll retire the certificate feature on **29 February 2024** to reduce the maintenance effort and better guide customers to use Azure Key Vault as a standard and more modern method with advanced security. After it's retired, the Certificate functionality may cease working properly. Additionally, pool creation with certificates will be rejected and possibly resize up. |
| 17 | + |
| 18 | +## Retirement alternatives |
| 19 | + |
| 20 | +Azure Key Vault is the service provided by Microsoft Azure to store and manage secrets, certificates, tokens, keys, and other configuration values that authenticated users access the applications and services. The original idea was to remove the hard-coded storing of these secrets and keys in the application code. |
| 21 | + |
| 22 | +Azure Key Vault provides security at the transport layer by ensuring any data flow from the key vault to the client application is encrypted. Azure key vault stores the secrets and keys with such strong encryption that even Microsoft itself won't see the keys or secrets in any way. |
| 23 | + |
| 24 | +Azure Key Vault provides a secure way to store the information and define the fine-grained access control. All the secrets can be managed from one dashboard. Azure Key Vault can store the key in the software-protected or hardware protected by hardware security module (HSMs) mechanism. In addition, it has a mechanism to auto-renew the Key Vault certificates. |
| 25 | + |
| 26 | +## Migration steps |
| 27 | + |
| 28 | +Azure Key Vault can be created in three ways: |
| 29 | + |
| 30 | +1. Using Azure portal |
| 31 | + |
| 32 | +2. Using PowerShell |
| 33 | + |
| 34 | +3. Using CLI |
| 35 | + |
| 36 | +**Create Azure Key Vault step by step procedure using Azure portal:** |
| 37 | + |
| 38 | +__Prerequisite__: Valid Azure subscription and owner/contributor access on Key Vault service. |
| 39 | + |
| 40 | + 1. Log in to the Azure portal. |
| 41 | + |
| 42 | + 2. In the top-level search box, look for **Key Vaults**. |
| 43 | + |
| 44 | + 3. In the Key Vault dashboard, click on create and provide all the details like subscription, resource group, Key Vault name, select the pricing tier (standard/premium), and select region. Once all these details are provided, click on review, and create. This will create the Key Vault account. |
| 45 | + |
| 46 | + 4. Key Vault names need to be unique across the globe. Once any user has taken a name, it won’t be available for other users. |
| 47 | + |
| 48 | + 5. Now go to the newly created Azure Key Vault. There you can see the vault name and the vault URI used to access the vault. |
| 49 | + |
| 50 | +**Create Azure Key Vault step by step using the Azure PowerShell:** |
| 51 | + |
| 52 | + 1. Log in to the user PowerShell using the following command - Login-AzAccount |
| 53 | + |
| 54 | + 2. Create an 'azure secure' resource group in the 'eastus' location. You can change the name and location as per your need. |
| 55 | +``` |
| 56 | + New-AzResourceGroup -Name "azuresecure" -Location "EastUS" |
| 57 | +``` |
| 58 | + 3. Create the Azure Key Vault using the cmdlet. You need to provide the key vault name, resource group, and location. |
| 59 | +``` |
| 60 | + New-AzKeyVault -Name "azuresecureKeyVault" -ResourceGroupName "azuresecure" -Location "East US" |
| 61 | +``` |
| 62 | + |
| 63 | + 4. Created the Azure Key Vault successfully using the PowerShell cmdlet. |
| 64 | + |
| 65 | +**Create Azure Key Vault step by step using the Azure CLI bash:** |
| 66 | + |
| 67 | + 1. Create an 'azure secure' resource in the 'eastus' location. You can change the name and location as per your need. Use the following bash command. |
| 68 | +``` |
| 69 | + az group create –name "azuresecure" -l "EastUS." |
| 70 | +``` |
| 71 | + |
| 72 | + 2. Create the Azure Key Vault using the bash command. You need to provide the key vault name, resource group, and location. |
| 73 | +``` |
| 74 | + az keyvault create –name “azuresecureKeyVault” –resource-group “azure” –location “EastUS” |
| 75 | +``` |
| 76 | + 3. Successfully created the Azure Key Vault using the Azure CLI bash command. |
| 77 | + |
| 78 | +## FAQ |
| 79 | + |
| 80 | + 1. Is Certificates or Azure Key Vault recommended? |
| 81 | + Azure Key Vault is recommended and essential to protect the data in the cloud. |
| 82 | + |
| 83 | + 2. Does user subscription mode support Azure Key Vault? |
| 84 | + Yes, it's mandatory to create Key Vault while creating the Batch account in user subscription mode. |
| 85 | + |
| 86 | + 3. Are there best practices to use Azure Key Vault? |
| 87 | + Best practices are covered [here](../key-vault/general/best-practices.md). |
| 88 | + |
| 89 | +## Next steps |
| 90 | + |
| 91 | +For more information, see [Certificate Access Control](../key-vault/certificates/certificate-access-control.md). |
0 commit comments