Skip to content

Commit 031fbc4

Browse files
Merge pull request #265377 from zfengms/main
update user subscription account key vault rbac permission grant
2 parents 70a7669 + cafb4de commit 031fbc4

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
@@ -140,8 +140,18 @@ To create a Batch account in user subscription mode:
140140

141141
### Grant access to the key vault manually
142142

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

145+
#### If the Key Vault permission model is **Azure role-based access control**:
146+
1. Select **Access control (IAM)** from the left navigation of the key vault page.
147+
1. At the top of the **Access control (IAM)** page, select **Add** > **Add role assignment**.
148+
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**.
149+
1. On the **Members** tab, select **Select members**. On the **Select members** screen, search for and select **Microsoft Azure Batch**, and then select **Select**.
150+
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.
151+
152+
For detailed steps, see [Assign Azure roles by using the Azure portal](../role-based-access-control/role-assignments-portal.md).
153+
154+
#### If the Key Vault permission model is **Vault access policy**:
145155
1. Select **Access policies** from the left navigation of the key vault page.
146156
1. On the **Access policies** page, select **Create**.
147157
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)