Git Product home page Git Product logo

Comments (7)

PlagueHO avatar PlagueHO commented on July 17, 2024

Hi @Susanthab - can you share the CreateSqlFolder.ps1 and ConfigData.psd1 (if they contain no sensitive information)?

from dscresources.

Susanthab avatar Susanthab commented on July 17, 2024

from dscresources.

Susanthab avatar Susanthab commented on July 17, 2024

from dscresources.

PlagueHO avatar PlagueHO commented on July 17, 2024

Hi @Susanthab, I've figured out what is going on here: You're calling your script from within the script you're calling - this is going into an infinite loop. You should be calling the DSC Config defined in your script.

Remove the .\ from the beginning of the .\CreateSqlFolder -Output .\Output\ -ConfigurationData .\SqlServer_ConfigData.psd1 line.

E.g.

Configuration CreateSqlFolder {

    Import-DscResource -ModuleName PSDesiredStateConfiguration

    Node "localhost" {
        File CreateDataDir {
            DestinationPath = $ConfigurationData.NonNodeData.DataDir
            Ensure          = 'Present'
            Type            = 'Directory'
        }
        File CreateLogDir {
            DestinationPath = $ConfigurationData.NonNodeData.LogDir
            Ensure          = 'Present'
            Type            = 'Directory'
        }
    }

}

CreateSqlFolder -Output .\Output\  -ConfigurationData .\SqlServer_ConfigData.psd1

from dscresources.

Susanthab avatar Susanthab commented on July 17, 2024

from dscresources.

nlsdg avatar nlsdg commented on July 17, 2024

If this has been resolved, could you close the issue? (And maybe file an issue in the vscode-powershell extension if it still exists in the current version.)

from dscresources.

Susanthab avatar Susanthab commented on July 17, 2024

I will reopen the issue if I observed it again. Thanks for the follow-up.

from dscresources.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.