Skip to content

Commit 3ff3183

Browse files
Split Az.DeviceProvisioningServices Examples (#17094)
1 parent 82c20eb commit 3ff3183

27 files changed

+171
-109
lines changed

src/DeviceProvisioningServices/DeviceProvisioningServices/help/Add-AzIoTDeviceProvisioningServiceAccessPolicy.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.DeviceProvisioningServices.dll-Help.xml
33
Module Name: Az.DeviceProvisioningServices
44
online version: https://docs.microsoft.com/powershell/module/az.deviceprovisioningservices/add-aziotdeviceprovisioningserviceaccesspolicy
@@ -38,9 +38,11 @@ For an introduction to Azure IoT Hub Device Provisioning Service, see https://do
3838
## EXAMPLES
3939

4040
### Example 1
41+
```powershell
42+
Add-AzIoTDeviceProvisioningServiceAccessPolicy -ResourceGroupName "myresourcegroup" -Name "myiotdps" -KeyName "mypolicy" -Permissions "ServiceConfig, EnrollmentWrite"
4143
```
42-
PS C:\> Add-AzIoTDeviceProvisioningServiceAccessPolicy -ResourceGroupName "myresourcegroup" -Name "myiotdps" -KeyName "mypolicy" -Permissions "ServiceConfig, EnrollmentWrite"
4344

45+
```output
4446
ResourceGroupName : myresourcegroup
4547
Name : myiotdps
4648
KeyName : mypolicy
@@ -52,9 +54,11 @@ Rights : ServiceConfig, EnrollmentWrite
5254
Add a new shared access policy in an Azure IoT Hub device provisioning service with EnrollmentWrite and ServiceConfig rights.
5355

5456
### Example 2
57+
```powershell
58+
Add-AzIoTDpsAccessPolicy -ResourceGroupName "myresourcegroup" -Name "myiotdps" -KeyName "mypolicy2" -Permissions "EnrollmentRead"
5559
```
56-
PS C:\> Add-AzIoTDpsAccessPolicy -ResourceGroupName "myresourcegroup" -Name "myiotdps" -KeyName "mypolicy2" -Permissions "EnrollmentRead"
5760

61+
```output
5862
KeyName Rights
5963
------- ------
6064
mypolicy1 ServiceConfig, EnrollmentWrite

src/DeviceProvisioningServices/DeviceProvisioningServices/help/Add-AzIoTDeviceProvisioningServiceCertificate.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.DeviceProvisioningServices.dll-Help.xml
33
Module Name: Az.DeviceProvisioningServices
44
online version: https://docs.microsoft.com/powershell/module/az.deviceprovisioningservices/add-aziotdeviceprovisioningservicecertificate
@@ -40,9 +40,11 @@ For a detailed explanation of CA certificates in Azure IoT Hub Device Provisioni
4040
## EXAMPLES
4141

4242
### Example 1
43+
```powershell
44+
Add-AzIoTDeviceProvisioningServiceCertificate -ResourceGroupName "myresourcegroup" -Name "myiotdps" -CertificateName "mycertificate" -Path "c:\mycertificate.cer"
4345
```
44-
PS C:\> Add-AzIoTDeviceProvisioningServiceCertificate -ResourceGroupName "myresourcegroup" -Name "myiotdps" -CertificateName "mycertificate" -Path "c:\mycertificate.cer"
4546

47+
```output
4648
Id : /subscriptions/377cxxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Devices/provisioningServices/myiotdps/certificates/mycertificate
4749
ResourceGroupName : myresourcegroup
4850
Name : myiotdps
@@ -58,9 +60,11 @@ Etag : AAAAAAFpGcA=
5860
Upload a CA certificate CER file to an Azure IoT Hub device provisioning service.
5961

6062
### Example 2
63+
```powershell
64+
Add-AzIoTDpsCertificate -ResourceGroupName "myresourcegroup" -Name "myiotdps" -CertificateName "mycertificate" -Path "c:\mycertificate.cer" -Etag "AAAAAAFpGcA="
6165
```
62-
PS C:\> Add-AzIoTDpsCertificate -ResourceGroupName "myresourcegroup" -Name "myiotdps" -CertificateName "mycertificate" -Path "c:\mycertificate.cer" -Etag "AAAAAAFpGcA="
6366

67+
```output
6468
Id : /subscriptions/377cxxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Devices/provisioningServices/myiothub/certificates/mycertificate
6569
ResourceGroupName : myresourcegroup
6670
Name : myiotdps

src/DeviceProvisioningServices/DeviceProvisioningServices/help/Add-AzIoTDeviceProvisioningServiceEnrollment.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.DeviceProvisioningServices.dll-Help.xml
33
Module Name: Az.DeviceProvisioningServices
44
online version: https://docs.microsoft.com/powershell/module/az.deviceprovisioningservices/add-aziotdeviceprovisioningserviceenrollment
@@ -55,32 +55,32 @@ Create a device enrollment in an Azure IoT Hub Device Provisioning Service.
5555

5656
### Example 1
5757
```powershell
58-
PS C:\> Add-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1" -AttestationType SymmetricKey
58+
Add-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1" -AttestationType SymmetricKey
5959
```
6060

6161
Create an enrollment with attestation type SymmetricKey
6262

6363
### Example 2
6464
```powershell
65-
PS C:\> Add-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1" -AttestationType Tpm -EndorsementKey "endorementkey"
65+
Add-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1" -AttestationType Tpm -EndorsementKey "endorementkey"
6666
```
6767

6868
Create an enrollment with TPM attestation.
6969

7070
### Example 3
7171
```powershell
72-
PS C:\> Add-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1" -AttestationType X509 -PrimaryCertificate "D:/primary.cer"
72+
Add-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1" -AttestationType X509 -PrimaryCertificate "D:/primary.cer"
7373
```
7474

7575
Create an enrollment with attestation type X509
7676

7777
### Example 4
7878
```powershell
79-
PS C:\> $tag = @{}
80-
PS C:\> $tag.Add("environment","test")
81-
PS C:\> $desired = @{}
82-
PS C:\> $desired.add("version_dps", "dps1")
83-
PS C:\> Add-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1" -AttestationType SymmetricKey -tag $tag -Desired $desired
79+
$tag = @{}
80+
$tag.Add("environment","test")
81+
$desired = @{}
82+
$desired.add("version_dps", "dps1")
83+
Add-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1" -AttestationType SymmetricKey -tag $tag -Desired $desired
8484
```
8585

8686
Create an enrollment with attestation type SymmetricKey and initial twin state.

src/DeviceProvisioningServices/DeviceProvisioningServices/help/Add-AzIoTDeviceProvisioningServiceEnrollmentGroup.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.DeviceProvisioningServices.dll-Help.xml
33
Module Name: Az.DeviceProvisioningServices
44
online version: https://docs.microsoft.com/powershell/module/az.deviceprovisioningservices/add-aziotdeviceprovisioningserviceenrollmentgroup
@@ -52,25 +52,25 @@ Create an enrollment group in an Azure IoT Hub Device Provisioning Service.
5252

5353
### Example 1
5454
```powershell
55-
PS C:\> Add-AzIoTDeviceProvisioningServiceEnrollmentGroup -ResourceGroupName "myresourcegroup" -DpsName "mydps" -Name "enroll1" -AttestationType SymmetricKey
55+
Add-AzIoTDeviceProvisioningServiceEnrollmentGroup -ResourceGroupName "myresourcegroup" -DpsName "mydps" -Name "enroll1" -AttestationType SymmetricKey
5656
```
5757

5858
Create an enrollment with attestation type SymmetricKey
5959

6060
### Example 2
6161
```powershell
62-
PS C:\> Add-AzIoTDeviceProvisioningServiceEnrollmentGroup -ResourceGroupName "myresourcegroup" -DpsName "mydps" -Name "enroll1" -AttestationType X509 -PrimaryCertificate "D:/primary.cer"
62+
Add-AzIoTDeviceProvisioningServiceEnrollmentGroup -ResourceGroupName "myresourcegroup" -DpsName "mydps" -Name "enroll1" -AttestationType X509 -PrimaryCertificate "D:/primary.cer"
6363
```
6464

6565
Create an enrollment with attestation type X509
6666

6767
### Example 3
6868
```powershell
69-
PS C:\> $tag = @{}
70-
PS C:\> $tag.Add("environment","test")
71-
PS C:\> $desired = @{}
72-
PS C:\> $desired.add("version_dps", "dps1")
73-
PS C:\> Add-AzIoTDeviceProvisioningServiceEnrollmentGroup -ResourceGroupName "myresourcegroup" -DpsName "mydps" -Name "enroll1" -AttestationType SymmetricKey -tag $tag -Desired $desired
69+
$tag = @{}
70+
$tag.Add("environment","test")
71+
$desired = @{}
72+
$desired.add("version_dps", "dps1")
73+
Add-AzIoTDeviceProvisioningServiceEnrollmentGroup -ResourceGroupName "myresourcegroup" -DpsName "mydps" -Name "enroll1" -AttestationType SymmetricKey -tag $tag -Desired $desired
7474
```
7575

7676
Create an enrollment with attestation type SymmetricKey and initial twin state.

src/DeviceProvisioningServices/DeviceProvisioningServices/help/Add-AzIoTDeviceProvisioningServiceLinkedHub.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.DeviceProvisioningServices.dll-Help.xml
33
Module Name: Az.DeviceProvisioningServices
44
online version: https://docs.microsoft.com/powershell/module/az.deviceprovisioningservices/add-aziotdeviceprovisioningservicelinkedhub
@@ -39,9 +39,11 @@ For an introduction to Azure IoT Hub Device Provisioning Service, see https://do
3939
## EXAMPLES
4040

4141
### Example 1
42+
```powershell
43+
Add-AzIoTDeviceProvisioningServiceLinkedHub -ResourceGroupName "myresourcegroup" -Name "myiotdps" -IotHubConnectionString $hubConnectionString -IotHubLocation "eastus"
4244
```
43-
PS C:\> Add-AzIoTDeviceProvisioningServiceLinkedHub -ResourceGroupName "myresourcegroup" -Name "myiotdps" -IotHubConnectionString $hubConnectionString -IotHubLocation "eastus"
4445

46+
```output
4547
ResourceGroupName : myresourcegroup
4648
Name : myiotdps
4749
LinkedHubName : myiothub.azure-devices.net
@@ -54,9 +56,11 @@ Location : eastus
5456
Linked IoT hub to an Azure IoT Hub device provisioning service.
5557

5658
### Example 2
59+
```powershell
60+
Add-AzIoTDpsHub -ResourceGroupName "myresourcegroup" -Name "myiotdps" -IotHubConnectionString $hubConnectionString -IotHubLocation "eastus" -AllocationWeight 10 -ApplyAllocationPolicy $false
5761
```
58-
PS C:\> Add-AzIoTDpsHub -ResourceGroupName "myresourcegroup" -Name "myiotdps" -IotHubConnectionString $hubConnectionString -IotHubLocation "eastus" -AllocationWeight 10 -ApplyAllocationPolicy $false
5962

63+
```output
6064
LinkedHubName Location AllocationWeight ApplyAllocationPolicy
6165
------------- -------- ---------------- ---------------------
6266
myiothub1.azure-devices.net eastus 2 true

src/DeviceProvisioningServices/DeviceProvisioningServices/help/Get-AzIoTDeviceProvisioningService.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.DeviceProvisioningServices.dll-Help.xml
33
Module Name: Az.DeviceProvisioningServices
44
online version: https://docs.microsoft.com/powershell/module/az.deviceprovisioningservices/get-aziotdeviceprovisioningservice
@@ -30,9 +30,11 @@ For an introduction to Azure IoT Hub Device Provisioning Service, see https://do
3030
## EXAMPLES
3131

3232
### Example 1
33+
```powershell
34+
Get-AzIoTDeviceProvisioningService
3335
```
34-
PS C:\> Get-AzIoTDeviceProvisioningService
3536

37+
```output
3638
ResourceGroupName Name Location ServiceOperationsHostName IotHubs AllocationPolicy Tags State
3739
----------------- ---- -------- ------------------------- ------- ---------------- ---- -----
3840
myresourcegroup0 myiotdps0 eastus myiotdps0.azure-devices-provisioning.net 0 Static 0 Active
@@ -43,9 +45,11 @@ myresourcegroup1 myiotdps2 westus myiotdps2.azure-devices-provisioning.net 4
4345
List all Azure IoT Hub device provisioning services in a subscription.
4446

4547
### Example 2
48+
```powershell
49+
Get-AzIoTDeviceProvisioningService -ResourceGroupName "myresourcegroup"
4650
```
47-
PS C:\> Get-AzIoTDeviceProvisioningService -ResourceGroupName "myresourcegroup"
4851

52+
```output
4953
ResourceGroupName Name Location ServiceOperationsHostName IotHubs AllocationPolicy Tags State
5054
----------------- ---- -------- ------------------------- ------- ---------------- ---- -----
5155
myresourcegroup myiotdps1 eastus myiotdps1.azure-devices-provisioning.net 1 Hashed 0 Active
@@ -55,9 +59,11 @@ myresourcegroup myiotdps2 westus myiotdps2.azure-devices-provisioning.net 4
5559
List all Azure IoT Hub device provisioning services in the resource group 'myresourcegroup'.
5660

5761
### Example 3
62+
```powershell
63+
Get-AzIoTDeviceProvisioningService -ResourceGroupName "myresourcegroup" -Name "myiotdps"
5864
```
59-
PS C:\> Get-AzIoTDeviceProvisioningService -ResourceGroupName "myresourcegroup" -Name "myiotdps"
6065

66+
```output
6167
ResourceGroupName : myresourcegroup
6268
Name : myiotdps
6369
Location : eastus

src/DeviceProvisioningServices/DeviceProvisioningServices/help/Get-AzIoTDeviceProvisioningServiceAccessPolicy.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.DeviceProvisioningServices.dll-Help.xml
33
Module Name: Az.DeviceProvisioningServices
44
online version: https://docs.microsoft.com/powershell/module/az.deviceprovisioningservices/get-aziotdeviceprovisioningserviceaccesspolicy
@@ -36,9 +36,11 @@ For an introduction to Azure IoT Hub Device Provisioning Service, see https://do
3636
## EXAMPLES
3737

3838
### Example 1
39+
```powershell
40+
Get-AzIoTDeviceProvisioningServiceAccessPolicy -ResourceGroupName "myresourcegroup" -Name "myiotdps"
3941
```
40-
PS C:\> Get-AzIoTDeviceProvisioningServiceAccessPolicy -ResourceGroupName "myresourcegroup" -Name "myiotdps"
4142

43+
```output
4244
KeyName Rights
4345
------- ------
4446
mypolicy1 ServiceConfig, DeviceConnect, EnrollmentWrite
@@ -48,9 +50,11 @@ mypolicy2 EnrollmentWrite
4850
List all shared access policies in "myiotdps".
4951

5052
### Example 2
53+
```powershell
54+
Get-AzIoTDeviceProvisioningServiceAccessPolicy -ResourceGroupName "myresourcegroup" -Name "myiotdps" -KeyName "mypolicy"
5155
```
52-
PS C:\> Get-AzIoTDeviceProvisioningServiceAccessPolicy -ResourceGroupName "myresourcegroup" -Name "myiotdps" -KeyName "mypolicy"
5356

57+
```output
5458
ResourceGroupName : myresourcegroup
5559
Name : myiotdps
5660
KeyName : mypolicy

src/DeviceProvisioningServices/DeviceProvisioningServices/help/Get-AzIoTDeviceProvisioningServiceCertificate.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.DeviceProvisioningServices.dll-Help.xml
33
Module Name: Az.DeviceProvisioningServices
44
online version: https://docs.microsoft.com/powershell/module/az.deviceprovisioningservices/get-aziotdeviceprovisioningservicecertificate
@@ -36,9 +36,11 @@ For a detailed explanation of CA certificates in Azure IoT Hub Device Provisioni
3636
## EXAMPLES
3737

3838
### Example 1
39+
```powershell
40+
Get-AzIoTDeviceProvisioningServiceCertificate -ResourceGroupName "myresourcegroup" -Name "myiotdps" -CertificateName "mycertificate"
3941
```
40-
PS C:\> Get-AzIoTDeviceProvisioningServiceCertificate -ResourceGroupName "myresourcegroup" -Name "myiotdps" -CertificateName "mycertificate"
4142

43+
```output
4244
Id : /subscriptions/377cxxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Devices/provisioningServices/myiotdps/certificates/mycertificate
4345
ResourceGroupName : myresourcegroup
4446
Name : myiotdps
@@ -54,9 +56,11 @@ Etag : AAAAAAFpGcA=
5456
Show details about "mycertificate" in an Azure IoT Hub device provisioning service.
5557

5658
### Example 2
59+
```powershell
60+
Get-AzIoTDps -ResourceGroupName "myresourcegroup" -Name "myiotdps" | Get-AzIoTDpsCertificate
5761
```
58-
PS C:\> Get-AzIoTDps -ResourceGroupName "myresourcegroup" -Name "myiotdps" | Get-AzIoTDpsCertificate
5962

63+
```output
6064
ResourceGroupName Name CertificateName Status Expiry
6165
----------------- ---- --------------- ------ ------
6266
myresourcegroup myiotdps mycert1 Unverified 12/04/2027 13:12

src/DeviceProvisioningServices/DeviceProvisioningServices/help/Get-AzIoTDeviceProvisioningServiceEnrollment.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.DeviceProvisioningServices.dll-Help.xml
33
Module Name: Az.DeviceProvisioningServices
44
online version: https://docs.microsoft.com/powershell/module/az.deviceprovisioningservices/get-aziotdeviceprovisioningserviceenrollment
@@ -37,14 +37,14 @@ Get device enrollment details or List device enrollments in an Azure IoT Hub Dev
3737

3838
### Example 1
3939
```powershell
40-
PS C:\> Get-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1"
40+
Get-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1"
4141
```
4242

4343
Get device enrollment details in an Azure IoT Hub Device Provisioning Service.
4444

4545
### Example 2
4646
```powershell
47-
PS C:\> Get-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps"
47+
Get-AzIoTDeviceProvisioningServiceEnrollment -ResourceGroupName "myresourcegroup" -DpsName "mydps"
4848
```
4949

5050
List device enrollments in an Azure IoT Hub Device Provisioning Service.

src/DeviceProvisioningServices/DeviceProvisioningServices/help/Get-AzIoTDeviceProvisioningServiceEnrollmentGroup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.DeviceProvisioningServices.dll-Help.xml
33
Module Name: Az.DeviceProvisioningServices
44
online version: https://docs.microsoft.com/powershell/module/az.deviceprovisioningservices/get-aziotdeviceprovisioningserviceenrollmentgroup
@@ -37,14 +37,14 @@ Get the details of an enrollment group or list all enrollment groups in an Azure
3737

3838
### Example 1
3939
```powershell
40-
PS C:\> Get-AzIoTDeviceProvisioningServiceEnrollmentGroup -ResourceGroupName "myresourcegroup" -DpsName "mydps" -Name "enroll1"
40+
Get-AzIoTDeviceProvisioningServiceEnrollmentGroup -ResourceGroupName "myresourcegroup" -DpsName "mydps" -Name "enroll1"
4141
```
4242

4343
Get device enrollment group in an Azure IoT Hub Device Provisioning Service.
4444

4545
### Example 2
4646
```powershell
47-
PS C:\> Get-AzIoTDeviceProvisioningServiceEnrollmentGroup -ResourceGroupName "myresourcegroup" -DpsName "mydps"
47+
Get-AzIoTDeviceProvisioningServiceEnrollmentGroup -ResourceGroupName "myresourcegroup" -DpsName "mydps"
4848
```
4949

5050
List all device enrollment groups in an Azure IoT Hub Device Provisioning Service.

src/DeviceProvisioningServices/DeviceProvisioningServices/help/Get-AzIoTDeviceProvisioningServiceLinkedHub.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.DeviceProvisioningServices.dll-Help.xml
33
Module Name: Az.DeviceProvisioningServices
44
online version: https://docs.microsoft.com/powershell/module/az.deviceprovisioningservices/get-aziotdeviceprovisioningservicelinkedhub
@@ -36,9 +36,11 @@ For an introduction to Azure IoT Hub Device Provisioning Service, see https://do
3636
## EXAMPLES
3737

3838
### Example 1
39+
```powershell
40+
Get-AzIoTDeviceProvisioningServiceLinkedHub -ResourceGroupName "myresourcegroup" -Name "myiotdps"
3941
```
40-
PS C:\> Get-AzIoTDeviceProvisioningServiceLinkedHub -ResourceGroupName "myresourcegroup" -Name "myiotdps"
4142

43+
```output
4244
LinkedHubName Location AllocationWeight ApplyAllocationPolicy
4345
------------- -------- ---------------- ---------------------
4446
myiothub1.azure-devices.net eastus 2
@@ -48,9 +50,11 @@ myiothub2.azure-devices.net westus2 true
4850
List all linked IoT hubs in "myiotdps".
4951

5052
### Example 2
53+
```powershell
54+
Get-AzIoTDpsHub -ResourceGroupName "myresourcegroup" -Name "myiotdps" -LinkedHubName "myiothub1"
5155
```
52-
PS C:\> Get-AzIoTDpsHub -ResourceGroupName "myresourcegroup" -Name "myiotdps" -LinkedHubName "myiothub1"
5356

57+
```output
5458
ResourceGroupName : myresourcegroup
5559
Name : myiotdps
5660
LinkedHubName : myiothub1.azure-devices.net

src/DeviceProvisioningServices/DeviceProvisioningServices/help/Get-AzIoTDeviceProvisioningServiceRegistration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.DeviceProvisioningServices.dll-Help.xml
33
Module Name: Az.DeviceProvisioningServices
44
online version: https://docs.microsoft.com/powershell/module/az.deviceprovisioningservices/get-aziotdeviceprovisioningserviceregistration
@@ -39,14 +39,14 @@ Get the device registration state or the registration state of devices under the
3939

4040
### Example 1
4141
```powershell
42-
PS C:\> Get-AzIoTDeviceProvisioningServiceRegistration -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1"
42+
Get-AzIoTDeviceProvisioningServiceRegistration -ResourceGroupName "myresourcegroup" -DpsName "mydps" -RegistrationId "enroll1"
4343
```
4444

4545
Get the device registration state details in an Azure IoT Hub Device Provisioning Service.
4646

4747
### Example 2
4848
```powershell
49-
PS C:\> Get-AzIoTDeviceProvisioningServiceRegistration -ResourceGroupName "myresourcegroup" -DpsName "mydps" -EnrollmentId "grp-enroll1"
49+
Get-AzIoTDeviceProvisioningServiceRegistration -ResourceGroupName "myresourcegroup" -DpsName "mydps" -EnrollmentId "grp-enroll1"
5050
```
5151

5252
List all the registration state of devices in this enrollmentGroup.

0 commit comments

Comments
 (0)