-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[EventHub] MSI: Add identity, encryption cmdlets and edited namespace create cmdlet to include MSI properties. #21191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…to include MSI properties
|
event hubs |
…eed to be tested). Made minor changes to cmdlet.
|
@yonzhan , could you please add the February 2022 (2022-03-01) tag to this PR. We want this merged for the Feb release. Thanks |
|
@damodaravadhani, |
|
Could somebody please approve this PR? Thanks. |
|
Could we merge this PR if there aren't any additional concerns ? Thank you. |
Description
Adding MSI cmdlets. (az eventhubs namespace identity)
Adding MSI encryption cmdlets (az eventhubs namespace encryption)
Edited (az eventhubs namespace create) to include MSI properties
Testing Guide
Create namespace with user assigned identity encryption
az eventhubs namespace create --resource-group {resourcegroupname} --name {namespacename} --sku premium --capacity 1 --user-assigned {resourceIdOfMSI1} {resourceIdOfMSI2} --encryption-config key-name key1 key-vault-uri https://{uri} user-assigned-identity /subscriptions/{subscriptionid}/resourceGroups/{resourcegroupname}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{name} --encryption-config key-name {keyname} key-vault-uri {keyvaulturi} user-assigned-identity /subscriptions/{subscriptionid}/resourceGroups/{resourcegroupname}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{name}Add encryption configs to created namespace
az eventhubs namespace encryption add --resource-group damorg --namespace-name testCLIMSISdkRound1 --encryption-config key-name key1 key-vault-uri https://{name}.vault.azure.net user-assigned-identity /subscriptions/{subscriptionid}/resourceGroups/{resourcegroupname}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{name} --encryption-config key-name key2 key-vault-uri https://{name}.vault.azure.net user-assigned-identity /subscriptions/{subscriptionid}/resourceGroups/{resourcegroupname}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{name}Remove Encryption Configs from created namespace
az eventhubs namespace encryption remove --encryption-config key-name key1 key-vault-uri https://{name}.vault.azure.net user-assigned-identity /subscriptions/{subscriptionid}/resourceGroups/{resourcegroupname}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{name}Add system assigned and user assigned identity to namespace
az eventhubs namespace identity assign --resource-group {rgname} --namespace-name {name} --system-assigned --user-assigned /subscriptions/{subscriptionid}/resourceGroups/{resourcegroupname}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{name}Remove system assigned and user assigned identity from namespace
az eventhubs namespace identity remove --resource-group {rgname} --namespace-name {name} --system-assigned --user-assigned /subscriptions/{subscriptionid}/resourceGroups/{resourcegroupname}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{name}History Notes
[EventHub]
az eventhubs namespace create: Add--user-assigned,--system-assigned,--encryption-config[EventHub]
az eventhubs namespace identity: Cmdlets for event hubs identity[EventHub]
az eventhubs namespace encryption: Cmdlets for event hubs encryptionThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.