Skip to content

Commit 00c7a4c

Browse files
updates
1 parent d247880 commit 00c7a4c

File tree

2 files changed

+21
-34
lines changed

2 files changed

+21
-34
lines changed
Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Construct an in-memory KeyVaultProperties object
22
```powershell
3-
{{ Add code here }}
3+
New-AzEventHubKeyVaultPropertiesObject -KeyName key1 -KeyVaultUri https://testkeyvault.vault.azure.net
44
```
55

6-
```output
7-
{{ Add output here (remove the output block if the example doesn't have an output) }}
8-
```
9-
10-
{{ Add description here }}
11-
12-
### Example 2: {{ Add title here }}
13-
```powershell
14-
{{ Add code here }}
15-
```
16-
17-
```output
18-
{{ Add output here (remove the output block if the example doesn't have an output) }}
19-
```
20-
21-
{{ Add description here }}
22-
6+
Creates an in-memory object of type `IKeyVaultProperties`. An array of `IKeyVaultProperties` can be fed as
7+
input to `KeyVaultProperty` parameter of New-AzEventHubNamespaceV2 and Set-AzEventHubNamespaceV2 to enable encryption.
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Construct an in-memory KeyVaultProperties object
22
```powershell
3-
{{ Add code here }}
3+
New-AzServiceBusKeyVaultPropertiesObject -KeyName key1 -KeyVaultUri https://testkeyvault.vault.azure.net/
44
```
5-
6-
```output
7-
{{ Add output here (remove the output block if the example doesn't have an output) }}
5+
```Output
6+
KeyName KeyVaultUri KeyVersion UserAssignedIdentity
7+
------- ----------- ---------- --------------------
8+
key4 https://testkeyvault.vault.azure.net/
89
```
10+
Creates an in-memory object of type `IKeyVaultProperties`. An array of `IKeyVaultProperties` can be fed as
11+
input to `KeyVaultProperty` parameter of New-AzServiceBusNamespaceV2 and Set-AzServiceBusNamespaceV2 to enable encryption.
912

10-
{{ Add description here }}
11-
12-
### Example 2: {{ Add title here }}
13+
### Example 2: Construct an in-memory KeyVaultProperties object having UserassignedIdentity
1314
```powershell
14-
{{ Add code here }}
15+
$ec1 = "/subscriptions/0000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myFirstIdentity"
16+
New-AzServiceBusKeyVaultPropertiesObject -KeyName key4 -KeyVaultUri https://testkeyvault.vault.azure.net/ -UserAssignedIdentity $ec1
1517
```
16-
17-
```output
18-
{{ Add output here (remove the output block if the example doesn't have an output) }}
18+
```Output
19+
KeyName KeyVaultUri KeyVersion UserAssignedIdentity
20+
------- ----------- ---------- --------------------
21+
key4 https://testkeyvault.vault.azure.net/ /subscriptions/0000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myFirstIdentity
1922
```
20-
21-
{{ Add description here }}
22-
23+
Creates an in-memory object of type `IKeyVaultProperties`. An array of `IKeyVaultProperties` can be fed as
24+
input to `KeyVaultProperty` parameter of New-AzServiceBusNamespaceV2 and Set-AzServiceBusNamespaceV2 to enable encryption.

0 commit comments

Comments
 (0)