Skip to content

Commit 5510783

Browse files
committed
Fixis cred scan issue
1 parent fb0410c commit 5510783

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ResourceManager/IotHub/Commands.IotHub.Test/ScenarioTests/IotHubTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function Test-AzureRmIotHubLifecycle
102102
Assert-True { $eventubConsumerGroup.Count -eq 1 }
103103

104104
# Add Key
105-
Add-AzureRmIotHubKey -ResourceGroupName $ResourceGroupName -Name $IotHubName -KeyName iothubowner1 -PrimaryKey 4GT/3sQXHYLDVOG5c8GQCpxIAw+OQtE5RxpdFC6O5Jk= -SecondaryKey 4GT/3sQXHYLDVOG5c8GQCpxIAw+OQtE5RxpdFC6O5Jk= -Rights RegistryRead
105+
Add-AzureRmIotHubKey -ResourceGroupName $ResourceGroupName -Name $IotHubName -KeyName iothubowner1 -PrimaryKey primarykey -SecondaryKey secondarykey -Rights RegistryRead
106106

107107
# Get Keys
108108
$keys = Get-AzureRmIotHubKey -ResourceGroupName $ResourceGroupName -Name $IotHubName

src/ResourceManager/IotHub/Commands.IotHub/Microsoft.Azure.Commands.IotHub.dll-help.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
</maml:alert>
341341
</maml:alertSet>
342342
<command:examples><command:example><maml:title>Example 1 Add a Key to an IotHub</maml:title>
343-
<dev:code>PS C:\&gt; Add-AzureRmIotHubKey -ResourceGroupName "myresourcegroup" -Name "myiothub" -KeyName "newkey" -PrimaryKey "4GT/3sQXHYLDVOG5c8GQCpxIAw+OQtE5RxpdFC6O5Jk=" -SecondaryKey "4GT/3sQXHYLDVOG5c8GQCpxIAw+OQtE5RxpdFC6O5Jk=" -Rights RegistryRead</dev:code>
343+
<dev:code>PS C:\&gt; Add-AzureRmIotHubKey -ResourceGroupName "myresourcegroup" -Name "myiothub" -KeyName "newkey" -PrimaryKey "primarykey" -SecondaryKey "secondarykey" -Rights RegistryRead</dev:code>
344344
<dev:remarks><maml:para>Creates a key named "mykey" for the iothub "myiothub" with RegistryRead permissions.
345345
</maml:para>
346346
<maml:para></maml:para>

src/ResourceManager/IotHub/Commands.IotHub/help/Add-AzureRmIotHubKey.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Creates a Key for the provided IotHub. KeyNames are not unique and need to be ma
2323

2424
### Example 1 Add a Key to an IotHub
2525
```
26-
PS C:\> Add-AzureRmIotHubKey -ResourceGroupName "myresourcegroup" -Name "myiothub" -KeyName "newkey" -PrimaryKey "4GT/3sQXHYLDVOG5c8GQCpxIAw+OQtE5RxpdFC6O5Jk=" -SecondaryKey "4GT/3sQXHYLDVOG5c8GQCpxIAw+OQtE5RxpdFC6O5Jk=" -Rights RegistryRead
26+
PS C:\> Add-AzureRmIotHubKey -ResourceGroupName "myresourcegroup" -Name "myiothub" -KeyName "newkey" -PrimaryKey "primarykey" -SecondaryKey "secondarykey" -Rights RegistryRead
2727
```
2828

2929
Creates a key named "mykey" for the iothub "myiothub" with RegistryRead permissions.

0 commit comments

Comments
 (0)