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
Copy file name to clipboardExpand all lines: articles/cognitive-services/cognitive-services-security.md
+28-7Lines changed: 28 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: IEvangelist
7
7
manager: nitinme
8
8
ms.service: cognitive-services
9
9
ms.topic: conceptual
10
-
ms.date: 03/18/2020
10
+
ms.date: 03/23/2020
11
11
ms.author: dapine
12
12
---
13
13
@@ -27,7 +27,7 @@ For .NET users, consider the <a href="https://docs.microsoft.com/dotnet/framewor
27
27
28
28
## Authentication
29
29
30
-
When discussing authentication, there are several common misconceptions. Authentication and authorization are often confused for one another. Identity is also a major component in security. An identity is a collection of information about a <ahref="https://en.wikipedia.org/wiki/Principal_(computer_security)"target="_blank">principal <spanclass="docon docon-navigate-external x-hidden-focus"></span></a>. Identity providers (IdP) provide identities to authentication services. Authentication is the act of verifying a user's identity. Authorization is the specification of access rights and privileges to resources for a given identity.
30
+
When discussing authentication, there are several common misconceptions. Authentication and authorization are often confused for one another. Identity is also a major component in security. An identity is a collection of information about a <ahref="https://en.wikipedia.org/wiki/Principal_(computer_security)"target="_blank">principal <spanclass="docon docon-navigate-external x-hidden-focus"></span></a>. Identity providers (IdP) provide identities to authentication services. Authentication is the act of verifying a user's identity. Authorization is the specification of access rights and privileges to resources for a given identity. Several of the Cognitive Services offerings, include role-based access control (RBAC). RBAC could be used to simplify some of the ceremony involved with manually managing principals. For more details, see [role-based access control for Azure resources](../role-based-access-control/overview.md).
31
31
32
32
For more information on authentication with subscription keys, access tokens and Azure Active Directory (AAD), see <ahref="https://docs.microsoft.com/azure/cognitive-services/authentication"target="_blank">authenticate requests to Azure Cognitive Services<spanclass="docon docon-navigate-external x-hidden-focus"></span></a>.
33
33
@@ -47,32 +47,53 @@ To set environment variables, use one the following commands - where the `ENVIRO
47
47
48
48
# [Command Line](#tab/command-line)
49
49
50
+
Create and assign persisted environment variable, given the value.
51
+
50
52
```CMD
51
53
:: Assigns the env var to the value
52
-
set ENVIRONMENT_VARIABLE_KEY=value
54
+
setx ENVIRONMENT_VARIABLE_KEY="value"
55
+
```
53
56
57
+
In a new instance of the **Command Prompt**, read the environment variable.
58
+
59
+
```CMD
54
60
:: Prints the env var value
55
61
echo %ENVIRONMENT_VARIABLE_KEY%
56
62
```
57
63
58
64
# [PowerShell](#tab/powershell)
59
65
66
+
Create and assign persisted environment variable, given the value.
0 commit comments