Skip to content

Commit d6c9cfb

Browse files
committed
Updates to the article
1 parent 2adea5b commit d6c9cfb

File tree

1 file changed

+44
-15
lines changed

1 file changed

+44
-15
lines changed

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

Lines changed: 44 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ author: IEvangelist
77
manager: nitinme
88
ms.service: cognitive-services
99
ms.topic: conceptual
10-
ms.date: 03/17/2020
10+
ms.date: 03/18/2020
1111
ms.author: dapine
1212
---
1313

1414
# Azure Cognitive Services security
1515

16-
< TODO: Add introduction details, consider changing title? >
16+
Security should be considered a top priority when developing any and all applications. With the onset of artificial intelligence enabled applications, security is even more important. In this article various aspects of Azure Cognitive Services security are outlined, such as the use of transport layer security, authentication, and securely configuring sensitive data.
1717

1818
## Transport Layer Security (TLS)
1919

@@ -83,32 +83,59 @@ To get an environment variable, it must be read into memory. Depending on the la
8383

8484
# [C#](#tab/csharp)
8585

86+
For more information, see <a href="https://docs.microsoft.com/dotnet/api/system.environment.getenvironmentvariable" target="_blank">`Environment.GetEnvironmentVariable` <span class="docon docon-navigate-external x-hidden-focus"></span></a>.
87+
8688
```csharp
87-
// Get the named env var, and assign it to the value variable
88-
var value =
89-
Environment.GetEnvironmentVariable(
90-
"ENVIRONMENT_VARIABLE_KEY");
89+
using static System.Environment;
90+
91+
class Program
92+
{
93+
static void Main()
94+
{
95+
// Get the named env var, and assign it to the value variable
96+
var value =
97+
GetEnvironmentVariable(
98+
"ENVIRONMENT_VARIABLE_KEY");
99+
}
100+
}
91101
```
92102

93103
# [C++](#tab/cpp)
94104

105+
For more information, see <a href="https://docs.microsoft.com/cpp/c-runtime-library/reference/getenv-wgetenv" target="_blank">`getenv` <span class="docon docon-navigate-external x-hidden-focus"></span></a>.
106+
95107
```cpp
96-
// Get the named env var, and assign it to the value variable
97-
auto value =
98-
getenv("ENVIRONMENT_VARIABLE_KEY");
108+
#include <stdlib.h>
109+
110+
int main()
111+
{
112+
// Get the named env var, and assign it to the value variable
113+
auto value =
114+
getenv("ENVIRONMENT_VARIABLE_KEY");
115+
}
99116
```
100117

101118
# [Java](#tab/java)
102119

120+
For more information, see <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/System.html#getenv(java.lang.String)" target="_blank">`System.getenv` <span class="docon docon-navigate-external x-hidden-focus"></span></a>.
121+
103122
```java
104-
// Get the named env var, and assign it to the value variable
105-
String value =
106-
System.getenv(
107-
"ENVIRONMENT_VARIABLE_KEY")
123+
import java.lang.*;
124+
125+
public class Program {
126+
public static void main(String[] args) throws Exception {
127+
// Get the named env var, and assign it to the value variable
128+
String value =
129+
System.getenv(
130+
"ENVIRONMENT_VARIABLE_KEY")
131+
}
132+
}
108133
```
109134

110135
# [Node.js](#tab/node-js)
111136

137+
For more information, see <a href="https://nodejs.org/api/process.html#process_process_env" target="_blank">`process.env` <span class="docon docon-navigate-external x-hidden-focus"></span></a>.
138+
112139
```javascript
113140
// Get the named env var, and assign it to the value variable
114141
const value =
@@ -117,6 +144,8 @@ const value =
117144

118145
# [Python](#tab/python)
119146

147+
For more information, see <a href="https://docs.python.org/2/library/os.html#os.environ" target="_blank">`os.environ` <span class="docon docon-navigate-external x-hidden-focus"></span></a>.
148+
120149
```python
121150
import os
122151

@@ -126,6 +155,8 @@ value = os.environ['ENVIRONMENT_VARIABLE_KEY']
126155

127156
# [Objective-C](#tab/objective-c)
128157

158+
For more information, see <a href="https://developer.apple.com/documentation/foundation/nsprocessinfo/1417911-environment?language=objc" target="_blank">`environment` <span class="docon docon-navigate-external x-hidden-focus"></span></a>.
159+
129160
```objectivec
130161
// Get the named env var, and assign it to the value variable
131162
NSString* value =
@@ -134,8 +165,6 @@ NSString* value =
134165

135166
---
136167

137-
For more information, see <a href="https://docs.microsoft.com/azure/azure-app-configuration/overview" target="_blank">Azure App Configuration <span class="docon docon-navigate-external x-hidden-focus"></span></a>.
138-
139168
## Next steps
140169

141170
* Explore the various [Cognitive Services](welcome.md)

0 commit comments

Comments
 (0)