File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ You can use the [IoT Hub resource provider REST API](/rest/api/iothub/iothubreso
23
23
24
24
* Visual Studio.
25
25
26
- * [ Azure PowerShell 1.0 ] ( /powershell/azure/install-Az-ps ) or later .
26
+ * [ Azure Az PowerShell module ] ( /powershell/azure/install-Az-ps ) .
27
27
28
28
[ !INCLUDE [ iot-hub-prepare-resource-manager] ( ../../includes/iot-hub-prepare-resource-manager.md )]
29
29
Original file line number Diff line number Diff line change @@ -29,8 +29,7 @@ The following steps show how to set up password authentication for an AD applica
29
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
30
31
31
``` powershell
32
- Select-AzSubscription `
33
- -SubscriptionName "{your subscription name}"
32
+ Select-AzSubscription -SubscriptionName "{your subscription name}"
34
33
```
35
34
36
35
1 . Save your ** TenantId** and ** SubscriptionId** . You need them later.
@@ -43,7 +42,7 @@ The following steps show how to set up password authentication for an AD applica
43
42
* ** {Password}:** A password that you use to authenticate with your app.
44
43
45
44
``` powershell
46
- $SecurePassword=ConvertTo-SecureString {password} – asplaintext – force
45
+ $SecurePassword=ConvertTo-SecureString {password} - asplaintext - force
47
46
New-AzADApplication -DisplayName {Display name} -HomePage {Home page URL} -IdentifierUris {Application identifier} -Password $SecurePassword
48
47
```
49
48
1. Save the **ApplicationId** of the application you created. You need this later.
@@ -60,7 +59,7 @@ The following steps show how to set up password authentication for an AD applica
60
59
New-AzRoleAssignment -RoleDefinitionName Owner -ServicePrincipalName {MyApplicationId}
61
60
```
62
61
63
- You finished creating the Azure AD application that enables you to authenticate from your custom C# application.
62
+ With your new Azure AD application, you can now authenticate from your custom C# application.
64
63
65
64
You need the following values later in this tutorial:
66
65
You can’t perform that action at this time.
0 commit comments