Skip to content

Commit 74e7233

Browse files
Merge pull request #280748 from zfengms/zfeng/revertbyoskv
Revert "revert user subscription keyvault update temporarily"
2 parents 125c812 + d95f997 commit 74e7233

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

articles/batch/batch-account-create-portal.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ For detailed steps, see [Assign Azure roles by using the Azure portal](../role-b
120120

121121
### Create a key vault
122122

123-
User subscription mode requires [Azure Key Vault](/azure/key-vault/general/overview). The key vault must be in the same subscription and region as the Batch account and use a [Vault Access Policy](/azure/key-vault/general/assign-access-policy).
123+
User subscription mode requires [Azure Key Vault](/azure/key-vault/general/overview). The key vault must be in the same subscription and region as the Batch account.
124124

125125
To create a new key vault:
126126

127127
1. Search for and select **key vaults** from the Azure Search box, and then select **Create** on the **Key vaults** page.
128128
1. On the **Create a key vault** page, enter a name for the key vault, and choose an existing resource group or create a new one in the same region as your Batch account.
129-
1. On the **Access configuration** tab, select **Vault access policy** under **Permission model**.
129+
1. On the **Access configuration** tab, select either **Azure role-based access control** or **Vault access policy** under **Permission model**, and under **Resource access**, check all 3 checkboxes for **Azure Virtual Machine for deployment**, **Azure Resource Manager for template deployment** and **Azure Disk Encryption for volume encryption**.
130130
1. Leave the remaining settings at default values, select **Review + create**, and then select **Create**.
131131

132132
### Create a Batch account in user subscription mode
@@ -157,8 +157,18 @@ To create a Batch account with authentication mode settings:
157157
158158
### Grant access to the key vault manually
159159

160-
You can also grant access to the key vault manually.
160+
You can also grant access to the key vault manually in [Azure portal](https://portal.azure.com).
161161

162+
#### If the Key Vault permission model is **Azure role-based access control**:
163+
1. Select **Access control (IAM)** from the left navigation of the key vault page.
164+
1. At the top of the **Access control (IAM)** page, select **Add** > **Add role assignment**.
165+
1. On the **Add role assignment** screen, under **Role** tab, under **Job function roles** sub tab, select either **Key Vault Secrets Officer** or **Key Vault Administrator** role for the Batch account, and then select **Next**.
166+
1. On the **Members** tab, select **Select members**. On the **Select members** screen, search for and select **Microsoft Azure Batch**, and then select **Select**.
167+
1. Click the **Review + create** button on the bottom to go to **Review + assign** tab, and click the **Review + create** button on the bottom again.
168+
169+
For detailed steps, see [Assign Azure roles by using the Azure portal](../role-based-access-control/role-assignments-portal.yml).
170+
171+
#### If the Key Vault permission model is **Vault access policy**:
162172
1. Select **Access policies** from the left navigation of the key vault page.
163173
1. On the **Access policies** page, select **Create**.
164174
1. On the **Create an access policy** screen, select a minimum of **Get**, **List**, **Set**, and **Delete** permissions under **Secret permissions**. For [key vaults with soft-delete enabled](/azure/key-vault/general/soft-delete-overview), also select **Recover**.

0 commit comments

Comments
 (0)