Skip to content

Commit 25064a4

Browse files
committed
Updates to include a blimp about RBAC and corrected linux env vars
1 parent b4e9980 commit 25064a4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/cognitive-services/cognitive-services-security.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ For .NET users, consider the <a href="https://docs.microsoft.com/dotnet/framewor
2727

2828
## Authentication
2929

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 <a href="https://en.wikipedia.org/wiki/Principal_(computer_security)" target="_blank">principal <span class="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 <a href="https://en.wikipedia.org/wiki/Principal_(computer_security)" target="_blank">principal <span class="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).
3131

3232
For more information on authentication with subscription keys, access tokens and Azure Active Directory (AAD), see <a href="https://docs.microsoft.com/azure/cognitive-services/authentication" target="_blank">authenticate requests to Azure Cognitive Services<span class="docon docon-navigate-external x-hidden-focus"></span></a>.
3333

@@ -83,15 +83,17 @@ Create and assign persisted environment variable, given the value.
8383

8484
```Bash
8585
# Assigns the env var to the value
86-
sudo -H gedit /etc/environment
87-
ENVIRONMENT_VARIABLE_KEY="value"
86+
echo export ENVIRONMENT_VARIABLE_KEY="value"" >> /etc/environment && source /etc/environment
8887
```
8988
9089
In a new instance of the **Bash**, read the environment variable.
9190
9291
```Bash
9392
# Prints the env var value
9493
echo "${ENVIRONMENT_VARIABLE_KEY}"
94+
95+
# Or use printenv:
96+
# printenv ENVIRONMENT_VARIABLE_KEY
9597
```
9698
9799
---

0 commit comments

Comments
 (0)