Skip to content

Commit abe565f

Browse files
committed
2 parents 55f93ef + 6d66717 commit abe565f

File tree

34 files changed

+210
-172
lines changed

34 files changed

+210
-172
lines changed

articles/cdn/cdn-storage-custom-domain-https.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Access storage blobs using an Azure CDN custom domain over HTTPS
3+
description: Learn how to add an Azure CDN custom domain and enable HTTPS on that domain for your custom blob storage endpoint.
34
services: cdn
45
documentationcenter: ''
56
author: mdgattuso

articles/cognitive-services/Bing-News-Search/go.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ type NewsAnswer struct {
6969
Width int `json: "width"`
7070
Height int `json: "height"`
7171
} `json: "thumbnail"`
72+
} `json: "image"`
7273
Description string `json: "description"`
7374
Provider []struct {
7475
Type string `json: "_type"`
7576
Name string `json: "name"`
7677
} `json: "provider"`
7778
DatePublished string `json: "datePublished"`
78-
} `json: "image"`
7979
} `json: "value"`
8080
}
8181

articles/cognitive-services/Translator/prevent-translation.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: translator-text
1010
ms.topic: conceptual
11-
ms.date: 11/21/2019
11+
ms.date: 03/20/2020
1212
ms.author: swmachan
1313
---
1414

@@ -17,9 +17,8 @@ ms.author: swmachan
1717
The Translator Text API allows you to tag content so that it isn't translated. For example, you may want to tag code, a brand name, or a word/phrase that doesn't make sense when localized.
1818

1919
## Methods for preventing translation
20-
1. Escape to a Twitter tag @somethingtopassthrough or #somethingtopassthrough. Un-escape after translation. This is the regular expression for valid twitter tags: `\B@[A-Za-z]+[A-Za-z0-9_]+)`. A tag should start with a "@" sign, followed by a character and then followed by one or many characters, digits or underscore. It is recommended to keep tags short and the opening tag must be preceded by a space.
2120

22-
2. Tag your content with `notranslate`. It's by design that this works only when the input textType is set as HTML
21+
1. Tag your content with `notranslate`. It's by design that this works only when the input textType is set as HTML
2322

2423
Example:
2524

@@ -33,11 +32,11 @@ The Translator Text API allows you to tag content so that it isn't translated. F
3332
<div>This will be translated. </div>
3433
```
3534

36-
3. Use the [dynamic dictionary](dynamic-dictionary.md) to prescribe a specific translation.
35+
2. Use the [dynamic dictionary](dynamic-dictionary.md) to prescribe a specific translation.
3736

38-
4. Don't pass the string to the Translator Text API for translation.
37+
3. Don't pass the string to the Translator Text API for translation.
3938

40-
5. Custom Translator: Use a [dictionary in Custom Translator](custom-translator/what-is-dictionary.md) to prescribe the translation of a phrase with 100% probability.
39+
4. Custom Translator: Use a [dictionary in Custom Translator](custom-translator/what-is-dictionary.md) to prescribe the translation of a phrase with 100% probability.
4140

4241

4342
## Next steps

articles/cognitive-services/Translator/reference/v3-0-translate.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: nitinme
99
ms.service: cognitive-services
1010
ms.subservice: translator-text
1111
ms.topic: reference
12-
ms.date: 11/12/2019
12+
ms.date: 03/20/2020
1313
ms.author: swmachan
1414
---
1515

@@ -475,14 +475,15 @@ The response is:
475475
The alignment information starts with `0:2-0:1`, which means that the first three characters in the source text (`The`) map to the first two characters in the translated text (`La`).
476476

477477
#### Limitations
478-
Note the following restrictions:
478+
Obtaining alignment information is an experimental feature that we have enabled for prototyping research and experiences with potential phrase mappings. We may choose to stop supporting this in the future. Here are some of the notable restrictions where alignments are not supported:
479479

480480
* Alignment is not available for text in HTML format i.e., textType=html
481481
* Alignment is only returned for a subset of the language pairs:
482482
- from English to any other language;
483483
- from any other language to English except for Chinese Simplified, Chinese Traditional, and Latvian to English;
484484
- from Japanese to Korean or from Korean to Japanese.
485485
* You will not receive alignment if the sentence is a canned translation. Example of a canned translation is "This is a test", "I love you" and other high frequency sentences.
486+
* Alignment is not available when you apply any of the approaches to prevent translation as described [here](../prevent-translation.md)
486487

487488
### Obtain sentence boundaries
488489

articles/governance/policy/how-to/guest-configuration-create-linux.md

Lines changed: 53 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: How to create Guest Configuration policies for Linux
33
description: Learn how to create an Azure Policy Guest Configuration policy for Linux.
4-
ms.date: 12/16/2019
4+
ms.date: 03/20/2020
55
ms.topic: how-to
66
---
77
# How to create Guest Configuration policies for Linux
@@ -12,29 +12,26 @@ at the page [Azure Policy Guest Configuration](../concepts/guest-configuration.m
1212
To learn about creating Guest Configuration policies for Windows, see the page
1313
[How to create Guest Configuration policies for Windows](/guest-configuration-create.md)
1414

15-
When auditing Linux, Guest Configuration uses
16-
[Chef InSpec](https://www.inspec.io/).
17-
The InSpec profile defines the
18-
condition that the machine should be in. If the evaluation of the configuration fails, the Policy
19-
effect **auditIfNotExists** is triggered and the machine is considered **non-compliant**.
15+
When auditing Linux, Guest Configuration uses [Chef InSpec](https://www.inspec.io/). The InSpec
16+
profile defines the condition that the machine should be in. If the evaluation of the configuration
17+
fails, the Policy effect **auditIfNotExists** is triggered and the machine is considered
18+
**non-compliant**.
2019

2120
[Azure Policy Guest Configuration](../concepts/guest-configuration.md) can only be used to audit
2221
settings inside machines. Remediation of settings inside machines isn't yet available.
2322

24-
Use the following actions to create your own configuration for validating the state of an Azure or non-Azure
25-
machine.
23+
Use the following actions to create your own configuration for validating the state of an Azure or
24+
non-Azure machine.
2625

2726
> [!IMPORTANT]
2827
> Custom policies with Guest Configuration is a Preview feature.
2928
3029
## Install the PowerShell module
3130

32-
The process of creating a Guest Configuration artifact, automated testing of the artifact,
33-
creating a policy definition, and publishing the policy,
34-
is entirely automatable using PowerShell.
35-
This module can be installed on a machine running Windows, macOS, or Linux with
36-
PowerShell 6.2 or later running locally, or with [Azure Cloud Shell](https://shell.azure.com), or
37-
with the
31+
The process of creating a Guest Configuration artifact, automated testing of the artifact, creating
32+
a policy definition, and publishing the policy, is entirely automatable using PowerShell. This
33+
module can be installed on a machine running Windows, macOS, or Linux with PowerShell 6.2 or later
34+
running locally, or with [Azure Cloud Shell](https://shell.azure.com), or with the
3835
[Azure PowerShell Core Docker image](https://hub.docker.com/r/azuresdk/azure-powershell-core).
3936

4037
> [!NOTE]
@@ -54,7 +51,7 @@ The Guest Configuration resource module requires the following software:
5451
[these instructions](/powershell/scripting/install/installing-powershell).
5552
- Azure PowerShell 1.5.0 or higher. If it isn't yet installed, follow
5653
[these instructions](/powershell/azure/install-az-ps).
57-
- Only the AZ modules 'Az.Accounts' and 'Az.Resources' are required.
54+
- Only the AZ modules 'Az.Accounts' and 'Az.Resources' are required.
5855

5956
### Install the module
6057

@@ -76,29 +73,29 @@ To install the **GuestConfiguration** module in PowerShell:
7673

7774
## Background information regarding Guest Configuration artifacts and policy for Linux
7875

79-
Even in Linux environments, Guest Configuration utilizes Desired State Configuration as a language abstraction.
80-
The implementation is based in native code (C++) so it does not require loading PowerShell at this time.
81-
However, it does require a configuration MOF file describing basic details about the environment. DSC is acting as a "wrapper" for InSpec to standardize how it is executed, how parameters are provided from Azure Resource Manager, and how output is captured and returned to the service.
82-
Little knowledge of DSC is required
83-
when working with custom InSpec content.
76+
Even in Linux environments, Guest Configuration utilizes Desired State Configuration as a language
77+
abstraction. The implementation is based in native code (C++) so it doesn't require loading
78+
PowerShell at this time. However, it does require a configuration MOF file describing basic details
79+
about the environment. DSC is acting as a "wrapper" for InSpec to standardize how it's executed, how
80+
parameters are provided from Azure Resource Manager, and how output is captured and returned to the
81+
service. Little knowledge of DSC is required when working with custom InSpec content.
8482

8583
#### Configuration requirements
8684

87-
The only requirement for Guest Configuration to use a custom configuration file is for the name of the
88-
configuration to be consistent everywhere it's used. This name requirement includes the name of the
89-
.zip file for the content package, the configuration name in the MOF file stored inside the content
90-
package, and the configuration name used in a Resource Manager template as the guest assignment
91-
name.
85+
The only requirement for Guest Configuration to use a custom configuration file is for the name of
86+
the configuration to be consistent everywhere it's used. This name requirement includes the name of
87+
the .zip file for the content package, the configuration name in the MOF file stored inside the
88+
content package, and the configuration name used in a Resource Manager template as the guest
89+
assignment name.
9290

9391
### Custom Guest Configuration configuration on Linux
9492

95-
Guest Configuration on Linux uses the `ChefInSpecResource` resource to
96-
provide the engine with the name of the [ InSpec profile](https://www.inspec.io/docs/reference/profiles/). **Name**
97-
is the only required resource property. Create a YaML file and a Ruby script file, as detailed below.
93+
Guest Configuration on Linux uses the `ChefInSpecResource` resource to provide the engine with the
94+
name of the [InSpec profile](https://www.inspec.io/docs/reference/profiles/). **Name** is the only
95+
required resource property. Create a YaML file and a Ruby script file, as detailed below.
9896

99-
First, create the YaML file used by InSpec.
100-
The file provides basic information about the environment.
101-
An example is given below:
97+
First, create the YaML file used by InSpec. The file provides basic information about the
98+
environment. An example is given below:
10299

103100
```YaML
104101
name: linux-path
@@ -123,8 +120,8 @@ end
123120

124121
Save this file in a new folder named `controls` inside the `linux-path` directory.
125122

126-
Finally, create a configuration, import the **GuestConfiguration**
127-
resource module, and use the `ChefInSpecResource` resource to set the name of the InSpec profile.
123+
Finally, create a configuration, import the **GuestConfiguration** resource module, and use the
124+
`ChefInSpecResource` resource to set the name of the InSpec profile.
128125

129126
```powershell
130127
# Define the configuration and import GuestConfiguration
@@ -145,7 +142,9 @@ Configuration AuditFilePathExists
145142
AuditFilePathExists -out ./Config
146143
```
147144

148-
The `Node AuditFilePathExists` command is not technically required but it produces a file named `AuditFilePathExists.mof` rather than the default, `localhost.mof`. Having the .mof file name follow the configuration makes it easy to organize many files when operating at scale.
145+
The `Node AuditFilePathExists` command isn't technically required but it produces a file named
146+
`AuditFilePathExists.mof` rather than the default, `localhost.mof`. Having the .mof file name follow
147+
the configuration makes it easy to organize many files when operating at scale.
149148

150149
You should now have a project structure as below:
151150

@@ -159,10 +158,11 @@ You should now have a project structure as below:
159158
linux-path.rb
160159
```
161160

162-
The supporting files must be packaged together. The completed package is
163-
used by Guest Configuration to create the Azure Policy definitions.
161+
The supporting files must be packaged together. The completed package is used by Guest Configuration
162+
to create the Azure Policy definitions.
164163

165-
The `New-GuestConfigurationPackage` cmdlet creates the package. Parameters of the `New-GuestConfigurationPackage` cmdlet when creating Linux content:
164+
The `New-GuestConfigurationPackage` cmdlet creates the package. Parameters of the
165+
`New-GuestConfigurationPackage` cmdlet when creating Linux content:
166166

167167
- **Name**: Guest Configuration package name.
168168
- **Configuration**: Compiled configuration document full path.
@@ -186,7 +186,8 @@ module includes a cmdlet `Test-GuestConfigurationPackage` that loads the same ag
186186
development environment as is used inside Azure machines. Using this solution, you can perform
187187
integration testing locally before releasing to billed cloud environments.
188188

189-
Since the agent is actually evaluating the local environment, in most cases you need to run the Test- cmdlet on the same OS platform as you plan to audit.
189+
Since the agent is actually evaluating the local environment, in most cases you need to run the
190+
Test- cmdlet on the same OS platform as you plan to audit.
190191

191192
Parameters of the `Test-GuestConfigurationPackage` cmdlet:
192193

@@ -208,7 +209,9 @@ The cmdlet also supports input from the PowerShell pipeline. Pipe the output of
208209
New-GuestConfigurationPackage -Name AuditFilePathExists -Configuration ./Config/AuditFilePathExists.mof -ChefProfilePath './' | Test-GuestConfigurationPackage
209210
```
210211

211-
The next step is to publish the file to blob storage. The script below contains a function you can use to automate this task. The commands used in the `publish` function require the `Az.Storage` module.
212+
The next step is to publish the file to blob storage. The script below contains a function you can
213+
use to automate this task. The commands used in the `publish` function require the `Az.Storage`
214+
module.
212215

213216
```azurepowershell-interactive
214217
function publish {
@@ -339,12 +342,14 @@ means that the values in the MOF file in the package don't have to be considered
339342
override values are provided through Azure Policy and don't impact how the Configurations are
340343
authored or compiled.
341344

342-
With InSpec, parameters are typically handled as input either at runtime or as code using attributes.
343-
Guest Configuration obfuscates this process so input can be provided to Azure Resource Manager when policy is assigned.
344-
An attributes file is automatically created within the machine. You do not need to create and add a file in your project.
345-
There are two steps to adding parameters to your Linux audit project.
345+
With InSpec, parameters are typically handled as input either at runtime or as code using
346+
attributes. Guest Configuration obfuscates this process so input can be provided to Azure Resource
347+
Manager when policy is assigned. An attributes file is automatically created within the machine. You
348+
don't need to create and add a file in your project. There are two steps to adding parameters to
349+
your Linux audit project.
346350

347-
Define the input in the Ruby file where you script what to audit on the machine. An example is given below.
351+
Define the input in the Ruby file where you script what to audit on the machine. An example is given
352+
below.
348353

349354
```Ruby
350355
attr_path = attribute('path', description: 'The file path to validate.')
@@ -359,7 +364,8 @@ parameter named **Parameters**. This parameter takes a hashtable definition incl
359364
about each parameter and automatically creates all the required sections of the files used to create
360365
each Azure Policy definition.
361366

362-
The following example creates an Azure Policy to audit a file path, where the user provides the path at the time of Policy assignment.
367+
The following example creates an Azure Policy to audit a file path, where the user provides the path
368+
at the time of Policy assignment.
363369

364370
```azurepowershell-interactive
365371
$PolicyParameterInfo = @(
@@ -407,8 +413,8 @@ Configuration AuditFilePathExists
407413

408414
## Policy lifecycle
409415

410-
After you've published a custom Azure Policy using your custom content package,
411-
there are two fields that must be updated if you would like to publish a new release.
416+
After you've published a custom Azure Policy using your custom content package, there are two fields
417+
that must be updated if you would like to publish a new release.
412418

413419
- **Version**: When you run the `New-GuestConfigurationPolicy` cmdlet, you must specify a version
414420
number greater than what is currently published. The property updates the version of the Guest

0 commit comments

Comments
 (0)