Skip to content

Commit 79e073b

Browse files
Merge pull request #252632 from dileepraotv-github/User_assigned_identity_update
Updated prerequisite steps.
2 parents b7ada29 + 1192fd2 commit 79e073b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

articles/cosmos-db/how-to-setup-customer-managed-keys.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ Not available
539539

540540
## Restore a continuous account that is configured with managed identity
541541

542-
A user-assigned identity is required in the restore request because the source account managed identity (User-assigned and System-assigned identities) cannot be carried over automatically to the target database account.
542+
A user-assigned identity is required in the restore request because the source account managed identity (User-assigned and System-assigned identities) can't be carried over automatically to the target database account.
543543

544544
### [Azure CLI](#tab/azure-cli)
545545

@@ -576,7 +576,7 @@ Use the Azure CLI to restore a continuous account that is already configured usi
576576
--default-identity "UserAssignedIdentity=$identityId" \
577577
```
578578
579-
1. Once the restore has completed, the target (restored) account will have the user-assigned identity. If desired, user can update the account to use System-Assigned managed identity.
579+
1. Once the restore has completed, the target (restored) account has the user-assigned identity. If desired, user can update the account to use System-Assigned managed identity.
580580
581581
582582
### [PowerShell / Azure Resource Manager template / Azure portal](#tab/azure-powershell+arm-template+azure-portal)
@@ -704,7 +704,16 @@ The following conditions are necessary to successfully restore a periodic backup
704704
705705
### How do customer-managed keys affect continuous backups?
706706
707-
Azure Cosmos DB gives you the option to configure [continuous backups](./continuous-backup-restore-introduction.md) on your account. With continuous backups, you can restore your data to any point in time within the past 30 days. To use continuous backups on an account where customer-managed keys are enabled, you must use a system-assigned or user-assigned managed identity in the Key Vault access policy. Azure Cosmos DB first-party identities is not currently supported on accounts using continuous backups.
707+
Azure Cosmos DB gives you the option to configure [continuous backups](./continuous-backup-restore-introduction.md) on your account. With continuous backups, you can restore your data to any point in time within the past 30 days. To use continuous backups on an account where customer-managed keys are enabled, you must use a system-assigned or user-assigned managed identity in the Key Vault access policy. Azure Cosmos DB first-party identities are not currently supported on accounts using continuous backups.
708+
709+
Prerequisite steps for Customer Managed Keys enabled accounts to update user assigned identity.
710+
711+
- Add a user-assigned identity to the Cosmos DB account, and grant permissions in key vault access policy.
712+
- Set the user-assigned as default identity via Azure CLI or ARM.
713+
714+
```azurecli
715+
az cosmosdb update --resource-group MyResourceGroup --name MyAccountName --default-identity UserAssignedIdentity=/subscriptions/MySubscriptionId/resourcegroups/MyResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MyUserAssignedIdentity
716+
```
708717

709718
The following conditions are necessary to successfully perform a point-in-time restore:
710719

0 commit comments

Comments
 (0)