DSC is a new management platform in Windows PowerShell that enables deploying and managing configuration data for software services and managing the environment in which these services run.
Questions tagged [powershell-dsc]
42 questions
1
vote
2 answers
Azure VMSS with Powershell DSC disabled TLS 1.0 cannot download script
I have a DSC script that configures a VMSS on Azure. Part of the script disables TLS1.0 and TLS1.1 client and server roles. After disabling, the VMSS cannot download the DSC script in the zip file anymore. Says it timed out after 29 attempts. If…

MPavlak
- 2,133
- 1
- 23
- 38
1
vote
1 answer
Testing dsc pull server via Invoke-RestMethod unexpectedly closes
I am setting up a DSC HTTPS Pull Server and am testing the service.
In the browser I can access the service with the following URL
https://dsc.mydomain.com:8080/PSDSCPullServer.svc/$metadata
However the same URL using PowerShell fails. …

ChiliYago
- 11,341
- 23
- 79
- 126
1
vote
1 answer
Execute DSC File with set-azuremrmvmcustomscriptextension
I am trying to execute a DSC script via set-azuremrmvmcustomscriptextension within an Azure Automation Runbook.
I do not want to use Azure Automation's DSC since there are other actions in my runbook I need to execute (non-DSC) and I don't want to…

Kode
- 3,073
- 18
- 74
- 140
1
vote
2 answers
Apply multiple DSCs through Azure Resource Manager
Is it possible to apply multiple DSC configurations to one vm through Azure Resource Manager?
Currently I am using something like this:
{
"apiVersion": "2015-06-15",
"dependsOn": [
…

david
- 859
- 1
- 13
- 23
1
vote
1 answer
Import-DscResource cannot find the package cChoco
I am trying to write a DSC script that will be published into Azure Virtual machine. So far I have been able to accomplish basic things like enabling windows features and creating directories. But now I want to install chocolatey on azure virtual…

Mitul
- 9,734
- 4
- 43
- 60
0
votes
1 answer
PowerShell DSC Exclude property from drift test
I'm using the xWebAdministration module to create IIS sites and application pools. When creating the site, a physical path needs to be specified. This path is changed with each deployment of the site resulting in DSC reporting drift. Is there a way…

Confounder
- 469
- 1
- 8
- 23
0
votes
1 answer
How to handle drift after manual changes and what is the pending.mof.tmp file in Powershell DSC?
I installed IIS using DSC a while back and since then changes have been made manually to the IIS configuration. Recently, someone ran Start-DSCConfiguration and it reported that IIS configuration had drifted and it will be corrected as per the…

Confounder
- 469
- 1
- 8
- 23
0
votes
1 answer
issue with Powershell dsc for linux in Azure Automation
I have setup DSC in Azure Automation Account and an Azure Ubuntu VM has been configured to pull dsc from the Automation Account.
I have a sample config as below:
Import-DSCResource -Module nx
Node $Node
{
nxFile testConf
{
…

pers
- 195
- 12
0
votes
1 answer
Passing parameter using variable While generating DSC configuration
I am executing Powershell DSC script from Powershell. Below is the code snippet
Invoke-Command -ComputerName $public_ip_address -Credential $UserCredential -ScriptBlock {
param ($driveformat)
cd c:/provisioning
Install-PackageProvider…

bhupinder
- 315
- 1
- 6
- 23
0
votes
0 answers
Powershell script and regexp filtering
Here's the PowerShell snippet:
$regex = ".*[A-Z a-z][ \t]{3,}"
$file = 'C:\temp\log\log.json'
Get-Content $file2) | ForEach-Object {
$_.replace('{"time": "', "").
replace($regex, "")
} | Out-File $file
I tested the regex, and it works on…
user10498435
0
votes
1 answer
Pester Provisioning PowerShell step fails on Import-DscResource in Windows Server 2016
I'm having an issue where PowerShell DSC resources are failing to import during a Packer job being run through Azure Pipelines.
Packer indicates an error saying:
==> amazon-ebs: Provisioning with Powershell...
==> amazon-ebs: Provisioning with…

sheldonhull
- 1,807
- 2
- 26
- 44
0
votes
1 answer
Unable to install software and script kept on running (DSC)
I have one server and we want software installation by DSC. I am trying it locally first then I will publish runbook on Azure. WhenI run the script everything runs fine and it stuck on initial module loading.
Configuration TableauReader {
Node…

akshay vithalkar
- 119
- 1
- 2
- 8
0
votes
1 answer
How can I get details of all operations being performed by current PowerShell DSC?
On a system, a PowerShell DSC is applied, but I do not have the original script that was applied. How can I get a list of all operations that this configuration is supposed to do/ currently doing?
For example, if I have the original script, I can…
user10340130
0
votes
1 answer
Powershell DSC: Whats the recommendation if we want a process to be always running
I want a process (exe) to be always running on machine, even after it reboots. I've setup powershell DSC and currently I had it as a WindowsProcess and its not launched after reboot. Can someone tell me whats the recommended resource to be used for…

sai guru datt manchikanti
- 129
- 1
- 11
0
votes
1 answer
Azure VM Extension Powershell DSC with template deployment - the process fails when a reboot is configured
I'm struggling with configuring a Reboot through Powershell DSC.
This is my scenario:
Using Azure RM Template deployments with a Visual Studio 2017 Resource Group project:
A VM is successfully deployed as a nested (linked) template
Next, again as a…

Vladislav
- 2,772
- 1
- 23
- 42