Skip to content

Commit 6c86083

Browse files
authored
Merge pull request #209086 from w-azure/winona-hub-rest
Cleaned up text / wordiness
2 parents ca7e23a + a806c64 commit 6c86083

File tree

2 files changed

+29
-25
lines changed

2 files changed

+29
-25
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ 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-
28-
* [Azure PowerShell 1.0](/powershell/azure/install-Az-ps) or later.
26+
* [Azure Az PowerShell module](/powershell/azure/install-Az-ps).
2927

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

@@ -39,7 +37,7 @@ To complete this tutorial, you need the following:
3937

4038
4. In NuGet Package Manager, search for **Microsoft.IdentityModel.Clients.ActiveDirectory**. Click **Install**, in **Review Changes** click **OK**, then click **I Accept** to accept the license.
4139
> [!IMPORTANT]
42-
> The [Microsoft.IdentityModel.Clients.ActiveDirectory](https://www.nuget.org/packages/Microsoft.IdentityModel.Clients.ActiveDirectory) NuGet package and Azure AD Authentication Library (ADAL) have been deprecated. No new features have been added since June 30, 2020. We strongly encourage you to upgrade, see the [migration guide](../active-directory/develop/msal-migration.md) for more details.
40+
> The [Microsoft.IdentityModel.Clients.ActiveDirectory](https://www.nuget.org/packages/Microsoft.IdentityModel.Clients.ActiveDirectory) NuGet package and Azure AD Authentication Library (ADAL) have been deprecated. No new features have been added since June 30, 2020. We strongly encourage you to upgrade. For more information see the [migration guide](../active-directory/develop/msal-migration.md).
4341
4442
5. In Program.cs, replace the existing **using** statements with the following code:
4543

@@ -170,7 +168,7 @@ You can now complete the application by calling the **CreateIoTHub** method befo
170168
171169
## Next steps
172170

173-
Now you have deployed an IoT hub using the resource provider REST API, you may want to explore further:
171+
Since you've deployed an IoT hub using the resource provider REST API, you may want to explore further:
174172

175173
* Read about the capabilities of the [IoT Hub resource provider REST API](/rest/api/iothub/iothubresource).
176174

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

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.topic: include
66
ms.date: 10/26/2018
77
---
88
## Prepare to authenticate Azure Resource Manager requests
9-
You must authenticate all the operations that you perform on resources using the [Azure Resource Manager][lnk-authenticate-arm] with Azure Active Directory (AD). The easiest way to configure this is to use PowerShell or Azure CLI.
9+
You must authenticate all the operations that you perform on resources using the [Azure Resource Manager][lnk-authenticate-arm] with Azure Active Directory (AD). The easiest way to configure Azure AD is to use PowerShell or Azure CLI.
1010

1111
Install the [Azure PowerShell cmdlets][lnk-powershell-install] before you continue.
1212

@@ -18,44 +18,50 @@ 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 -SubscriptionName "{your subscription name}"
33+
```
3334

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:
35+
1. Save your **TenantId** and **SubscriptionId** for later.
36+
37+
1. Create a new Azure Active Directory application using the following command, replacing the placeholders:
3638

3739
* **{Display name}:** a display name for your application such as **MySampleApp**
38-
* **{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.
39-
* **{Application identifier}:** A unique identifier such as **http:\//mysampleapp**. This URL does not need to point to a real application.
40+
* **{Home page URL}:** the URL of the home page of your app such as **http:\//mysampleapp/home**. This URL doesn't need to point to a real application.
41+
* **{Application identifier}:** A unique identifier such as **http:\//mysampleapp**. This URL doesn't need to point to a real application.
4042
* **{Password}:** A password that you use to authenticate with your app.
4143

4244
```powershell
43-
$SecurePassword=ConvertTo-SecureString {password} asplaintext force
45+
$SecurePassword=ConvertTo-SecureString {password} -asplaintext -force
4446
New-AzADApplication -DisplayName {Display name} -HomePage {Home page URL} -IdentifierUris {Application identifier} -Password $SecurePassword
4547
```
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:
48+
1. Save the **ApplicationId** of the application you created for later.
49+
50+
1. Create a new service principal using the following command, replacing **{MyApplicationId}** with the **ApplicationId** from the previous step:
4851
4952
```powershell
5053
New-AzADServicePrincipal -ApplicationId {MyApplicationId}
5154
```
52-
6. Set up a role assignment using the following command, replacing **{MyApplicationId}** with your **ApplicationId**.
55+
56+
1. Set up a role assignment using the following command, replacing **{MyApplicationId}** with your **ApplicationId**.
5357
5458
```powershell
5559
New-AzRoleAssignment -RoleDefinitionName Owner -ServicePrincipalName {MyApplicationId}
5660
```
5761
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:
62+
With your new Azure AD application, you can now authenticate from your custom C# application.
63+
64+
You need the following values later in this tutorial:
5965
6066
* TenantId
6167
* SubscriptionId

0 commit comments

Comments
 (0)