You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hide CustomerManagedKeyEncryption types as internal; add V4 Foundations replacements
Mark CustomerManagedKeyEncryption, KeyEncryptionKeyIdentity, and
KeyEncryptionKeyIdentityType as internal in the CommonTypes namespace,
preventing direct use in service specifications.
Add CustomerManagedKeyEncryptionV4, KeyEncryptionKeyIdentityV4, and
KeyEncryptionKeyIdentityTypeV4 in Azure.ResourceManager.Foundations as
public replacement types.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Hide `CustomerManagedKeyEncryption`, `KeyEncryptionKeyIdentity`, and `KeyEncryptionKeyIdentityType` common types by marking them `internal`. Add public replacement types `CustomerManagedKeyEncryptionV4`, `KeyEncryptionKeyIdentityV4`, and `KeyEncryptionKeyIdentityTypeV4` in the `Azure.ResourceManager.Foundations` namespace.
8
+
9
+
```tsp
10
+
// Use the new Foundations types instead of the internal CommonTypes types:
/** All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. */
20
+
modelKeyEncryptionKeyIdentityV4 {
21
+
/** The type of identity to use. Values can be systemAssignedIdentity, userAssignedIdentity, or delegatedResourceIdentity. */
22
+
identityType?:KeyEncryptionKeyIdentityTypeV4;
23
+
24
+
/** User assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity. */
/** application client identity to use for accessing key encryption key Url in a different tenant. Ex: f83c6b1b-4d34-47e4-bb34-9d83df58b540 */
28
+
federatedClientId?:uuid;
29
+
30
+
/** delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only. */
31
+
delegatedIdentityClientId?:uuid;
32
+
}
33
+
34
+
/** Customer-managed key encryption properties for the resource. */
35
+
modelCustomerManagedKeyEncryptionV4 {
36
+
/** All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. */
Copy file name to clipboardExpand all lines: website/src/content/docs/docs/libraries/azure-resource-manager/reference/data-types.md
+52-19Lines changed: 52 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1979,21 +1979,6 @@ model Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse
1979
1979
| reason? |[`CheckNameAvailabilityReason`](./data-types.md#Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason)| The reason why the given name is not available. |
1980
1980
| message? |`string`| Detailed reason why the given name is not available. |
| keyEncryptionKeyIdentity? |[`KeyEncryptionKeyIdentity`](./data-types.md#Azure.ResourceManager.CommonTypes.KeyEncryptionKeyIdentity)| All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. |
1995
-
| keyEncryptionKeyUrl? |`string`| key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.|
| infrastructureEncryption? |[`InfrastructureEncryption`](./data-types.md#Azure.ResourceManager.CommonTypes.InfrastructureEncryption)| Values are enabled and disabled. |
2041
-
| customerManagedKeyEncryption? |[`CustomerManagedKeyEncryption`](./data-types.md#Azure.ResourceManager.CommonTypes.CustomerManagedKeyEncryption)| All Customer-managed key encryption properties for the resource. |
| infrastructureEncryption? |[`InfrastructureEncryption`](./data-types.md#Azure.ResourceManager.CommonTypes.InfrastructureEncryption)| Values are enabled and disabled. |
2026
+
| customerManagedKeyEncryption? |`Azure.ResourceManager.CommonTypes.CustomerManagedKeyEncryption`| All Customer-managed key encryption properties for the resource. |
| keyEncryptionKeyIdentity? |[`KeyEncryptionKeyIdentityV4`](./data-types.md#Azure.ResourceManager.Foundations.KeyEncryptionKeyIdentityV4)| All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. |
3793
+
| keyEncryptionKeyUrl? |`string`| key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek.|
| identityType? |[`KeyEncryptionKeyIdentityTypeV4`](./data-types.md#Azure.ResourceManager.Foundations.KeyEncryptionKeyIdentityTypeV4)| The type of identity to use. Values can be systemAssignedIdentity, userAssignedIdentity, or delegatedResourceIdentity. |
3869
+
| userAssignedIdentityResourceId? |`Azure.Core.armResourceIdentifier`| User assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resourcegroup>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity. |
3870
+
| federatedClientId? |`Azure.Core.uuid`| application client identity to use for accessing key encryption key Url in a different tenant. Ex: f83c6b1b-4d34-47e4-bb34-9d83df58b540 |
3871
+
| delegatedIdentityClientId? |`Azure.Core.uuid`| delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resourcegroup>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only. |
0 commit comments