Skip to content

Commit

Permalink
status (#3334)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganbradley authored Dec 2, 2024
1 parent 7d80a32 commit 884a0dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions azps-12.5.0/Az.IotHub/Add-AzIotHubRoutingEndpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ Add a new endpoint in your IoT Hub. To learn about the endpoints that are suppor

### Example 1
```powershell
Add-AzIotHubRoutingEndpoint -ResourceGroupName "myresourcegroup" -Name "myiothub" -EndpointName E2 -EndpointType EventHub -EndpointResourceGroup resourcegroup1 -EndpointSubscriptionId 91d12343-a3de-345d-b2ea-135792468abc -ConnectionString 'Endpoint=sb://myeventhub1.servicebus.windows.net/;SharedAccessKeyName=access1;SharedAccessKey=*****=;EntityPath=event11'
Add-AzIotHubRoutingEndpoint -ResourceGroupName "myresourcegroup" -Name "myiothub" -EndpointName E2 -EndpointType EventHub -EndpointResourceGroup resourcegroup1 -EndpointSubscriptionId aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e -ConnectionString 'Endpoint=sb://myeventhub1.servicebus.windows.net/;SharedAccessKeyName=access1;SharedAccessKey=*****=;EntityPath=event11'
```

```output
ResourceGroupName : resourcegroup1
SubscriptionId : 91d12343-a3de-345d-b2ea-135792468abc
SubscriptionId : aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
EndpointName : E2
ConnectionString : Endpoint=sb://myeventhub1.servicebus.windows.net:5671/;SharedAccessKeyName=iothubroutes_myeventhub1;SharedAccessKey=****;EntityPath=event1
```
Expand All @@ -57,12 +57,12 @@ Add a new endpoint "E2" of type EventHub to an "myiothub" IoT Hub.

### Example 2
```powershell
Add-AzIotHubRoutingEndpoint -ResourceGroupName "myresourcegroup" -Name "myiothub" -EndpointName S1 -EndpointType AzureStorageContainer -EndpointResourceGroup resourcegroup1 -EndpointSubscriptionId 91d12343-a3de-345d-b2ea-135792468abc -ConnectionString 'DefaultEndpointsProtocol=https;AccountName=mystorage1;AccountKey=*****;EndpointSuffix=core.windows.net' -ContainerName container -Encoding json
Add-AzIotHubRoutingEndpoint -ResourceGroupName "myresourcegroup" -Name "myiothub" -EndpointName S1 -EndpointType AzureStorageContainer -EndpointResourceGroup resourcegroup1 -EndpointSubscriptionId aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e -ConnectionString 'DefaultEndpointsProtocol=https;AccountName=mystorage1;AccountKey=*****;EndpointSuffix=core.windows.net' -ContainerName container -Encoding json
```

```output
ResourceGroupName : resourcegroup1
SubscriptionId : 91d12343-a3de-345d-b2ea-135792468abc
SubscriptionId : aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
EndpointName : S1
ContainerName : container
ConnectionString : DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName=mystorage1;AccountKey=****
Expand Down
8 changes: 4 additions & 4 deletions azps-12.5.0/Az.IotHub/Get-AzIotHubRoutingEndpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ Get-AzIotHubRoutingEndpoint -ResourceGroupName "myresourcegroup" -Name "myiothub
```output
ResourceGroupName SubscriptionId EndpointName
----------------- -------------- ------------
resourcegroup1 91d12343-a3de-345d-b2ea-135792468abc E1
resourcegroup1 91d12343-a3de-345d-b2ea-135792468abc E2
resourcegroup1 aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e E1
resourcegroup1 aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e E2
```

Get all the endpoints of type EventHub from "myiothub" IoT Hub.
Expand All @@ -73,7 +73,7 @@ Get-AzIotHubRoutingEndpoint -ResourceGroupName "myresourcegroup" -Name "myiothub

```output
ResourceGroupName : resourcegroup1
SubscriptionId : 91d12343-a3de-345d-b2ea-135792468abc
SubscriptionId : aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
EndpointName : E1
ConnectionString : Endpoint=sb://myeventhub1.servicebus.windows.net:5671/;SharedAccessKeyName=iothubroutes_myeventhub1;SharedAccessKey=****;EntityPath=event1
```
Expand All @@ -87,7 +87,7 @@ Get-AzIotHubRoutingEndpoint -ResourceGroupName "myresourcegroup" -Name "myiothub

```output
ResourceGroupName : resourcegroup1
SubscriptionId : 91d12343-a3de-345d-b2ea-135792468abc
SubscriptionId : aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
EndpointName : E1
ConnectionString : Endpoint=sb://myeventhub1.servicebus.windows.net:5671/;SharedAccessKeyName=iothubroutes_myeventhub1;SharedAccessKey=****;EntityPath=event1
```
Expand Down

0 comments on commit 884a0dc

Please sign in to comment.