File tree Expand file tree Collapse file tree 2 files changed +21
-34
lines changed
EventHub/EventHub.Autorest/examples
ServiceBus/ServiceBus.Autorest/examples Expand file tree Collapse file tree 2 files changed +21
-34
lines changed Original file line number Diff line number Diff line change 1
- ### Example 1: {{ Add title here }}
1
+ ### Example 1: Construct an in-memory KeyVaultProperties object
2
2
``` powershell
3
- {{ Add code here }}
3
+ New-AzEventHubKeyVaultPropertiesObject -KeyName key1 -KeyVaultUri https://testkeyvault.vault.azure.net
4
4
```
5
5
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.
Original file line number Diff line number Diff line change 1
- ### Example 1: {{ Add title here }}
1
+ ### Example 1: Construct an in-memory KeyVaultProperties object
2
2
``` powershell
3
- {{ Add code here }}
3
+ New-AzServiceBusKeyVaultPropertiesObject -KeyName key1 -KeyVaultUri https://testkeyvault.vault.azure.net/
4
4
```
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/
8
9
```
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.
9
12
10
- {{ Add description here }}
11
-
12
- ### Example 2: {{ Add title here }}
13
+ ### Example 2: Construct an in-memory KeyVaultProperties object having UserassignedIdentity
13
14
``` 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
15
17
```
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
19
22
```
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.
You can’t perform that action at this time.
0 commit comments