You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To complete this tutorial, you need the following:
22
+
## Prerequisites
23
23
24
24
* Visual Studio.
25
25
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
26
*[Azure PowerShell 1.0](/powershell/azure/install-Az-ps) or later.
Copy file name to clipboardExpand all lines: includes/iot-hub-prepare-resource-manager.md
+22-15Lines changed: 22 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,21 +18,24 @@ The following steps show how to set up password authentication for an AD applica
18
18
Connect-AzAccount
19
19
```
20
20
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.
22
22
23
-
```powershell
24
-
Get-AzSubscription
25
-
```
23
+
List the Azure subscriptions available for you to use:
26
24
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
+
```
28
28
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
+
```
33
35
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:
36
39
37
40
***{Display name}:** a display name for your application such as **MySampleApp**
38
41
***{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
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:
0 commit comments