Skip to content

Commit 859a19d

Browse files
committed
Cleaned up text / wordiness
1 parent 9ab2817 commit 859a19d

File tree

2 files changed

+23
-18
lines changed

2 files changed

+23
-18
lines changed

articles/iot-hub/iot-hub-rm-rest.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ You can use the [IoT Hub resource provider REST API](/rest/api/iothub/iothubreso
1919

2020
[!INCLUDE [updated-for-az](../../includes/updated-for-az.md)]
2121

22-
To complete this tutorial, you need the following:
22+
## Prerequisites
2323

2424
* Visual Studio.
2525

26-
* An active Azure account. If you don't have an account, you can create a [free account](https://azure.microsoft.com/pricing/free-trial/) in just a couple of minutes.
27-
2826
* [Azure PowerShell 1.0](/powershell/azure/install-Az-ps) or later.
2927

3028
[!INCLUDE [iot-hub-prepare-resource-manager](../../includes/iot-hub-prepare-resource-manager.md)]

includes/iot-hub-prepare-resource-manager.md

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,24 @@ The following steps show how to set up password authentication for an AD applica
1818
Connect-AzAccount
1919
```
2020
21-
1. If you have multiple Azure subscriptions, signing in to Azure grants you access to all the Azure subscriptions associated with your credentials. Use the following command to list the Azure subscriptions available for you to use:
21+
1. If you have multiple Azure subscriptions, signing in to Azure grants you access to all the Azure subscriptions associated with your credentials.
2222
23-
```powershell
24-
Get-AzSubscription
25-
```
23+
List the Azure subscriptions available for you to use:
2624
27-
Use the following command to select subscription that you want to use to run the commands to manage your IoT hub. You can use either the subscription name or ID from the output of the previous command:
25+
```powershell
26+
Get-AzSubscription
27+
```
2828

29-
```powershell
30-
Select-AzSubscription `
31-
-SubscriptionName "{your subscription name}"
32-
```
29+
Select the subscription you want to use. You can use either the subscription name or ID from the output of the previous command.
30+
31+
```powershell
32+
Select-AzSubscription `
33+
-SubscriptionName "{your subscription name}"
34+
```
3335

34-
2. Make a note of your **TenantId** and **SubscriptionId**. You need them later.
35-
3. Create a new Azure Active Directory application using the following command, replacing the place holders:
36+
1. Save your **TenantId** and **SubscriptionId**. You need them later.
37+
38+
1. Create a new Azure Active Directory application using the following command, replacing the placeholders:
3639

3740
* **{Display name}:** a display name for your application such as **MySampleApp**
3841
* **{Home page URL}:** the URL of the home page of your app such as **http:\//mysampleapp/home**. This URL does not need to point to a real application.
@@ -43,19 +46,23 @@ The following steps show how to set up password authentication for an AD applica
4346
$SecurePassword=ConvertTo-SecureString {password} –asplaintext –force
4447
New-AzADApplication -DisplayName {Display name} -HomePage {Home page URL} -IdentifierUris {Application identifier} -Password $SecurePassword
4548
```
46-
4. Make a note of the **ApplicationId** of the application you created. You need this later.
47-
5. Create a new service principal using the following command, replacing **{MyApplicationId}** with the **ApplicationId** from the previous step:
49+
1. Save the **ApplicationId** of the application you created. You need this later.
50+
51+
1. Create a new service principal using the following command, replacing **{MyApplicationId}** with the **ApplicationId** from the previous step:
4852
4953
```powershell
5054
New-AzADServicePrincipal -ApplicationId {MyApplicationId}
5155
```
52-
6. Set up a role assignment using the following command, replacing **{MyApplicationId}** with your **ApplicationId**.
56+
57+
1. Set up a role assignment using the following command, replacing **{MyApplicationId}** with your **ApplicationId**.
5358
5459
```powershell
5560
New-AzRoleAssignment -RoleDefinitionName Owner -ServicePrincipalName {MyApplicationId}
5661
```
5762
58-
You have now finished creating the Azure AD application that enables you to authenticate from your custom C# application. You need the following values later in this tutorial:
63+
You finished creating the Azure AD application that enables you to authenticate from your custom C# application.
64+
65+
You need the following values later in this tutorial:
5966
6067
* TenantId
6168
* SubscriptionId

0 commit comments

Comments
 (0)