Skip to content

Commit 950f7d4

Browse files
{EventHub} Fix #20562: Fix 'New-AzEventHubAuthorizationRuleSASToken' … (#20569)
* {EventHub} Fix #20562: Fix 'New-AzEventHubAuthorizationRuleSASToken' returned token has wrong skn value Fixes #20562 * Update ChangeLog.md * Update ChangeLog.md Co-authored-by: Jin Lei <[email protected]>
1 parent fc89a3b commit 950f7d4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/EventHub/EventHub/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
Fixed 'New-AzEventHubAuthorizationRuleSASToken' cmdlet which was returning wrong skn value
2122

2223
## Version 3.2.0
2324
* Added NamespaceV2 cmdlets for EventHub

src/EventHub/EventHub/Cmdlets/AuthorizationRule/NewAzureEventhubAuthorizationRuleSASToken.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public override void ExecuteCmdlet()
104104
HttpUtility.UrlEncode(resourceUri),
105105
HttpUtility.UrlEncode(signature),
106106
expiry,
107-
KeyType);
107+
identifier.ResourceName);
108108

109109
PSSharedAccessSignatureAttributes psSastoken = new PSSharedAccessSignatureAttributes(sasToken);
110110

0 commit comments

Comments
 (0)