Skip to content

Commit dfa543f

Browse files
authored
Merge pull request #104675 from MicrosoftDocs/master
Merge Master to Live, 4 AM
2 parents b8f2fee + 0616ed5 commit dfa543f

File tree

100 files changed

+581
-267
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+581
-267
lines changed

articles/active-directory-b2c/user-flow-password-complexity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Allows you to control the length requirements of the password.
6969
Allows you to control the different character types used in the password.
7070

7171
- **2 of 4: Lowercase character, Uppercase character, Number (0-9), Symbol** ensures the password contains at least two character types. For example, a number and a lowercase character.
72-
- **3 of 4: Lowercase character, Uppercase character, Number (0-9), Symbol** ensures the password contains at least two character types. For example, a number, a lowercase character and an uppercase character.
72+
- **3 of 4: Lowercase character, Uppercase character, Number (0-9), Symbol** ensures the password contains at least three character types. For example, a number, a lowercase character and an uppercase character.
7373
- **4 of 4: Lowercase character, Uppercase character, Number (0-9), Symbol** ensures the password contains all for character types.
7474

7575
> [!NOTE]

articles/automation/automation-dsc-compile.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ determine when to use which method based on the characteristics of each:
2323
- Work with node and non-node data at scale
2424
- Significant performance improvement
2525

26+
For compilation details, see [Desired State Configuration extension with Azure Resource Manager templates](https://docs.microsoft.com/azure/virtual-machines/extensions/dsc-template#details).
27+
2628
## Compiling a DSC Configuration in Azure State Configuration
2729

2830
### Portal
2931

3032
1. From your Automation account, click **State configuration (DSC)**.
3133
1. Click on the **Configurations** tab, then click on the configuration name to compile.
3234
1. Click **Compile**.
33-
1. If the configuration has no parameters, you are prompted to confirm whether you want to compile it. If the configuration has parameters, the **Compile Configuration** blade opens so you can provide parameter values. See the following [**Basic Parameters**](#basic-parameters) section for further details on parameters.
35+
1. If the configuration has no parameters, you are prompted to confirm whether you want to compile it. If the configuration has parameters, the **Compile Configuration** blade opens so that you can provide parameter values.
3436
1. The **Compilation Job** page is opened so that you can track the compilation job's status, and the node configurations (MOF configuration documents) it caused to be placed on the Azure Automation State Configuration Pull Server.
3537

3638
### Azure PowerShell
@@ -62,7 +64,7 @@ while($null -eq $CompilationJob.EndTime -and $null -eq $CompilationJob.Exception
6264
$CompilationJob | Get-AzAutomationDscCompilationJobOutput –Stream Any
6365
```
6466

65-
### Basic Parameters
67+
### Declare basic parameters
6668

6769
Parameter declaration in DSC configurations, including parameter types and properties, works the
6870
same as in Azure Automation runbooks. See [Starting a runbook in Azure Automation](automation-starting-a-runbook.md)
@@ -125,21 +127,21 @@ Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -Automa
125127

126128
For information about passing PSCredentials as parameters, see [Credential Assets](#credential-assets) below.
127129

128-
### Compiling configurations in Azure Automation that contain Composite Resources
130+
### Compile configurations containing composite resources in Azure Automation
129131

130-
**Composite Resources** allow you to use DSC configurations as nested resources inside of a
132+
The **Composite Resources** feature allows you to use DSC configurations as nested resources inside of a
131133
configuration. This enables you to apply multiple configurations to a single resource. See
132134
[Composite resources: Using a DSC configuration as a resource](/powershell/scripting/dsc/resources/authoringresourcecomposite)
133-
to learn more about **Composite Resources**.
135+
to learn more about composite resources.
134136

135137
> [!NOTE]
136-
> In order for configurations containing **Composite Resources** to compile correctly, you must first ensure that any DSC Resources that the composite relies on are first imported in to Azure Automation.
138+
> For configurations containing **Composite Resources** to compile correctly, you must first ensure that any DSC Resources that the composite relies on are first imported in to Azure Automation.
137139
138140
Adding a DSC **Composite Resource** is no different than adding any PowerShell module to Azure Automation.
139141
The step by step instruction for this process is documented in the article
140142
[Manage Modules in Azure Automation](/azure/automation/shared-resources/modules).
141143

142-
### Managing ConfigurationData when compiling configuration in Azure Automation
144+
### Manage ConfigurationData when compiling configurations in Azure Automation
143145

144146
**ConfigurationData** allows you to separate structural configuration from any environment-specific
145147
configuration while using PowerShell DSC. See [Separating "What" from "Where" in PowerShell DSC](https://blogs.msdn.com/b/powershell/archive/2014/01/09/continuous-deployment-using-dsc-with-minimal-change.aspx)
@@ -200,7 +202,7 @@ $ConfigData = @{
200202
Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'ConfigurationDataSample' -ConfigurationData $ConfigData
201203
```
202204

203-
### Working with Assets in Azure Automation during compilation
205+
### Work with assets in Azure Automation during compilation
204206

205207
Asset references are the same in Azure Automation State Configuration and runbooks. For more information, see the
206208
following:
@@ -277,7 +279,7 @@ Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -Automa
277279
> [!NOTE]
278280
> When compilation is complete you may receive an error stating: **The 'Microsoft.PowerShell.Management' module was not imported because the 'Microsoft.PowerShell.Management' snap-in was already imported.** This warning can safely be ignored.
279281
280-
## Compiling configurations in Windows PowerShell and publishing to Azure Automation
282+
## Compiling configurations in Windows PowerShell
281283

282284
You can also import node configurations (MOFs) that have been compiled outside of Azure.
283285
This includes compiling from a developer workstation or in a service such as
@@ -292,7 +294,7 @@ ensuring that the configuration being applied to the node comes from an authoriz
292294
293295
For more information about how to sign node configurations, see [Improvements in WMF 5.1 - How to sign configuration and module](/powershell/scripting/wmf/whats-new/dsc-improvements#dsc-module-and-configuration-signing-validations).
294296

295-
### Compiling a configuration in Windows PowerShell
297+
### Compile a configuration in Windows PowerShell
296298

297299
The process to compile DSC configurations in Windows PowerShell is included in the PowerShell DSC documentation
298300
[Write, Compile, and Apply a Configuration](/powershell/scripting/dsc/configurations/write-compile-apply-configuration#compile-the-configuration).
@@ -302,7 +304,7 @@ This can be executed from a developer workstation or within a build service such
302304
The MOF file or files produced by compiling the configuration can then be imported directly
303305
in to the Azure State Configuration service.
304306

305-
### Importing a node configuration in the Azure portal
307+
### Import a node configuration in the Azure portal
306308

307309
1. From your Automation account, click **State configuration (DSC)** under **Configuration Management**.
308310
1. In the **State configuration (DSC)** page, click on the **Configurations** tab, then click **+ Add**.
@@ -313,7 +315,7 @@ in to the Azure State Configuration service.
313315
1. Enter a name in the **Configuration Name** textbox. This name must match the name of the configuration from which the node configuration was compiled.
314316
1. Click **OK**.
315317

316-
### Importing a node configuration with Azure PowerShell
318+
### Import a node configuration with Azure PowerShell
317319

318320
You can use the [Import-AzAutomationDscNodeConfiguration](/powershell/module/az.automation/import-azautomationdscnodeconfiguration)
319321
cmdlet to import a node configuration into your automation account.
@@ -324,8 +326,8 @@ Import-AzAutomationDscNodeConfiguration -AutomationAccountName 'MyAutomationAcco
324326

325327
## Next steps
326328

327-
- To get started, see [Getting started with Azure Automation State Configuration](automation-dsc-getting-started.md)
328-
- To learn about compiling DSC configurations so that you can assign them to target nodes, see [Compiling configurations in Azure Automation State Configuration](automation-dsc-compile.md)
329-
- For PowerShell cmdlet reference, see [Azure Automation State Configuration cmdlets](/powershell/module/az.automation)
330-
- For pricing information, see [Azure Automation State Configuration pricing](https://azure.microsoft.com/pricing/details/automation/)
331-
- To see an example of using Azure Automation State Configuration in a continuous deployment pipeline, see [Continuous Deployment Using Azure Automation State Configuration and Chocolatey](automation-dsc-cd-chocolatey.md)
329+
- To get started, see [Getting started with Azure Automation State Configuration](automation-dsc-getting-started.md.
330+
- To learn about compiling DSC configurations so that you can assign them to target nodes, see [Compiling configurations in Azure Automation State Configuration](automation-dsc-compile.md).
331+
- For PowerShell cmdlet reference, see [Azure Automation State Configuration cmdlets](/powershell/module/az.automation).
332+
- For pricing information, see [Azure Automation State Configuration pricing](https://azure.microsoft.com/pricing/details/automation/).
333+
- To see an example of using Azure Automation State Configuration in a continuous deployment pipeline, see [Continuous Deployment Using Azure Automation State Configuration and Chocolatey](automation-dsc-cd-chocolatey.md).

articles/automation/automation-dsc-diagnostics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ To start sending your Automation State Configuration reports to Azure Monitor lo
3434
- An Azure Automation account. For more information, see [An introduction to Azure Automation](automation-intro.md).
3535
- A Log Analytics workspace with an Automation & Control service offering. For more information, see [Get started with Log Analytics in Azure Monitor](https://docs.microsoft.com/azure/azure-monitor/log-query/get-started-portal).
3636
- At least one Azure Automation State Configuration node. For more information, see [Onboarding machines for management by Azure Automation State Configuration](automation-dsc-onboarding.md).
37-
- The [xDscDiagnostics](https://www.powershellgallery.com/packages/xDscDiagnostics/2.7.0.0) module, version 2.7.0.0 or greater. For installation steps, see [Troubleshoot Azure Automation Desired State Configuration](./troubleshoot/desired-state-configuration.md#steps-to-troubleshoot-desired-state-configuration-dsc).
37+
- The [xDscDiagnostics](https://www.powershellgallery.com/packages/xDscDiagnostics/2.7.0.0) module, version 2.7.0.0 or greater. For installation steps, see [Troubleshoot Azure Automation Desired State Configuration](./troubleshoot/desired-state-configuration.md).
3838

3939
## Set up integration with Azure Monitor logs
4040

articles/automation/troubleshoot/desired-state-configuration.md

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,37 @@ manager: carmonm
1414

1515
This article provides information on troubleshooting issues with Desired State Configuration (DSC).
1616

17-
## Steps to troubleshoot Desired State Configuration (DSC)
17+
## Diagnosing an issue
1818

19-
When you have errors compiling or deploying configurations in Azure State Configuration, here are a few
20-
steps to help you diagnose the issue.
19+
When you have errors while compiling or deploying configurations in Azure State Configuration, here are a few steps to help you diagnose the issue.
2120

22-
1. **Ensure your configuration compiles successfully on your local machine:** Azure State Configuration
23-
is built on PowerShell DSC. You can find the documentation for the DSC language and syntax in
24-
the [PowerShell DSC Docs](https://docs.microsoft.com/powershell/scripting/overview).
21+
### 1. Ensure that your configuration compiles successfully on the local machine
2522

26-
By compiling your DSC configuration on your local machine you can discover and resolve common errors, such as:
23+
Azure State Configuration is built on PowerShell DSC. You can find the documentation for the DSC language and syntax in the [PowerShell DSC Docs](https://docs.microsoft.com/powershell/scripting/overview).
2724

28-
- **Missing Modules**
29-
- **Syntax Errors**
30-
- **Logic Errors**
25+
By compiling your DSC configuration on your local machine, you can discover and resolve common errors, such as:
3126

32-
2. **View DSC logs on your Node:** If your configuration compiles successfully, but fails when applied to a Node, you can find
33-
detailed information in the logs. For information about where to find DSC logs, see [Where are the DSC Event Logs](/powershell/scripting/dsc/troubleshooting/troubleshooting#where-are-dsc-event-logs).
27+
- Missing modules
28+
- Syntax errors
29+
- Logic errors
3430

35-
Furthermore, the [xDscDiagnostics](https://github.com/PowerShell/xDscDiagnostics) can assist you in parsing detailed information
36-
from the DSC logs. If you contact support, they will require these logs to diagnose your issue.
31+
### 2. View DSC logs on your node
3732

38-
You can install **xDscDiagnostics** on your local machine using the instructions found under [Install the stable version module](https://github.com/PowerShell/xDscDiagnostics#install-the-stable-version-module).
33+
If your configuration compiles successfully, but fails when applied to a node, you can find detailed information in the DSC logs. For information about where to find these logs, see [Where are the DSC Event Logs](/powershell/scripting/dsc/troubleshooting/troubleshooting#where-are-dsc-event-logs).
3934

40-
To install **xDscDiagnostics** on your Azure machine, you can use [az vm run-command](/cli/azure/vm/run-command) or [Invoke-AzVMRunCommand](/powershell/module/azurerm.compute/invoke-azurermvmruncommand). You can also use the **Run command** option from the portal, by following the steps found in [Run PowerShell scripts in your Windows VM with Run Command](../../virtual-machines/windows/run-command.md).
35+
The [xDscDiagnostics](https://github.com/PowerShell/xDscDiagnostics) module can assist you in parsing detailed information from the DSC logs. If you contact support, they require these logs to diagnose your issue.
4136

42-
For information on using **xDscDiagnostics**, see [Using xDscDiagnostics to analyze DSC logs](/powershell/scripting/dsc/troubleshooting/troubleshooting#using-xdscdiagnostics-to-analyze-dsc-logs), as well as [xDscDiagnostics Cmdlets](https://github.com/PowerShell/xDscDiagnostics#cmdlets).
43-
3. **Ensure your Nodes and Automation workspace have the required modules:** Desired State Configuration depends on modules installed on the Node. When using Azure Automation State Configuration, import any required modules into your automation account using the steps listed in [Import Modules](../shared-resources/modules.md#import-modules). Configurations can also have a dependency on specific versions of modules. For more information, see, [Troubleshoot Modules](shared-resources.md#modules).
37+
You can install the xDscDiagnostics module on your local machine using the instructions found in [Install the stable version module](https://github.com/PowerShell/xDscDiagnostics#install-the-stable-version-module).
4438

45-
## Common errors when working with Desired State Configuration (DSC)
39+
To install the xDscDiagnostics module on your Azure machine, use [Invoke-AzVMRunCommand](/powershell/module/azurerm.compute/invoke-azurermvmruncommand). You can also use the **Run command** option from the portal, by following the steps found in [Run PowerShell scripts in your Windows VM with Run Command](../../virtual-machines/windows/run-command.md).
40+
41+
For information on using xDscDiagnostics, see [Using xDscDiagnostics to analyze DSC logs](/powershell/scripting/dsc/troubleshooting/troubleshooting#using-xdscdiagnostics-to-analyze-dsc-logs). See also [xDscDiagnostics Cmdlets](https://github.com/PowerShell/xDscDiagnostics#cmdlets).
42+
43+
### 3. Ensure that nodes and the Automation workspace have required modules
44+
45+
DSC depends on modules installed on the node. When using Azure Automation State Configuration, import any required modules into your Automation account using the steps listed in [Import Modules](../shared-resources/modules.md#import-modules). Configurations can also have a dependency on specific versions of modules. For more information, see [Troubleshoot Modules](shared-resources.md#modules).
46+
47+
## Common errors when working with DSC
4648

4749
### <a name="unsupported-characters"></a>Scenario: A configuration with special characters cannot be deleted from the portal
4850

@@ -96,7 +98,7 @@ Verify your machine has access to the proper endpoints for Azure Automation DSC
9698
When registering a Node with State Configuration (DSC) you receive one of the following error messages:
9799

98100
```error
99-
The attempt to send status report to the server https://{your automation account url}/accounts/xxxxxxxxxxxxxxxxxxxxxx/Nodes(AgentId='xxxxxxxxxxxxxxxxxxxxxxxxx')/SendReport returned unexpected response code Unauthorized.
101+
The attempt to send status report to the server https://{your Automation account URL}/accounts/xxxxxxxxxxxxxxxxxxxxxx/Nodes(AgentId='xxxxxxxxxxxxxxxxxxxxxxxxx')/SendReport returned unexpected response code Unauthorized.
100102
```
101103

102104
```error
@@ -113,7 +115,7 @@ Follow the steps listed below to re-register the failing DSC node.
113115

114116
First, un-register the node using the following steps.
115117

116-
1. From the Azure portal, under **Home** -> **Automation Accounts**-> {Your Automation Account} -> **State configuration (DSC)**
118+
1. From the Azure portal, under **Home** -> **Automation Accounts**-> {Your Automation account} -> **State configuration (DSC)**
117119
2. Click "Nodes", and click on the node having trouble.
118120
3. Click "Unregister" to un-register the node.
119121

@@ -145,7 +147,7 @@ If (($certs.Count) -gt 0)
145147

146148
Finally, re-register the failing node using the following steps.
147149

148-
1. From the Azure portal, under **Home** -> **Automation Accounts** -> {Your Automation Account} -> **State configuration (DSC)**
150+
1. From the Azure portal, under **Home** -> **Automation Accounts** -> {Your Automation account} -> **State configuration (DSC)**
149151
2. Click "Nodes".
150152
3. Click the "Add" button.
151153
4. Select the failing node.
@@ -228,7 +230,7 @@ You've used a credential in a configuration but didn’t provide proper **Config
228230

229231
#### Resolution
230232

231-
* Make sure to pass in the proper **ConfigurationData** to set **PSDscAllowPlainTextPassword** to true for each node configuration that is mentioned in the configuration. For more information, see [assets in Azure Automation DSC](../automation-dsc-compile.md#working-with-assets-in-azure-automation-during-compilation).
233+
* Make sure to pass in the proper **ConfigurationData** to set **PSDscAllowPlainTextPassword** to true for each node configuration that is mentioned in the configuration. For more information, see [Compiling DSC configurations in Azure Automation State Configuration](../automation-dsc-compile.md).
232234

233235
### <a name="failure-processing-extension"></a>Scenario: Onboarding from dsc extension, "Failure processing extension" error
234236

@@ -261,7 +263,7 @@ One or more errors occurred.
261263

262264
#### Cause
263265

264-
This error occurs when you attempt to register a node that lives in a separate subscription than the Automation Account.
266+
This error occurs when you attempt to register a node that lives in a separate subscription than the Automation account.
265267

266268
#### Resolution
267269

@@ -330,6 +332,6 @@ The best workaround would be to compile locally or in a CI/CD pipeline and uploa
330332

331333
If you didn't see your problem or are unable to solve your issue, visit one of the following channels for more support:
332334

333-
* Get answers from Azure experts through [Azure Forums](https://azure.microsoft.com/support/forums/)
335+
* Get answers from Azure experts through [Azure Forums](https://azure.microsoft.com/support/forums/).
334336
* Connect with [@AzureSupport](https://twitter.com/azuresupport) – the official Microsoft Azure account for improving customer experience by connecting the Azure community to the right resources: answers, support, and experts.
335337
* If you need more help, you can file an Azure support incident. Go to the [Azure support site](https://azure.microsoft.com/support/options/) and select **Get Support**.

0 commit comments

Comments
 (0)