Comments (8)
I cannot reproduce this.
Note
PS 7.x won't work since it does not support DSC resources in the way that Windows PowerShell does. See the work being done for DSCv3.
On a clean Windows machine I installed VS Code + PowerShell extension. Using Windows PowerShell I installed SqlServerDsc to machine PSModulePath (C:\Program Files\WindowsPowerShell\Modules). In VS Code the PowerShell extension is also running under Windows PowerShell. I pasted in an example from the wiki page and in ran as expected. Also SqlPermission is visible in intellisense when editing the example.
from sqlserverdsc.
Hi,
I am on vacation and will be able to reply again no later than October. But until then, maybe you can tell what I can provide for more information. Greetings
from sqlserverdsc.
Since it was not possible to reproduce . Clear step-by-steps that shows how to reproduce the problem on a clean Windows 11 or Windows Server box (with just VS Code + VS Code PowerShell extension installed).
from sqlserverdsc.
This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 40 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close.
from sqlserverdsc.
This issue has been automatically closed because it is has not had activity from the community in the last 40 days. If this issue was wrongly closed, for a issue author please comment and re-open it, if you are not the issue author comment with a reason for it to be reopened and tag a maintainer in the comment.
from sqlserverdsc.
I think I am experiencing this issue
I ran the following command but got Get-CimClass: Not Found
$resource = Get-DscResource -Name sqlpermission
Get-CimClass -ClassName $resource.ResourceType -Namespace root\Microsoft\Windows\DesiredStateConfiguration
I am attempting to use this under puppet, and it cannot find sqlpermission. $resource has a value, and I see it, but I think it is not properly registering. PS 5.1, Win2022
from sqlserverdsc.
I think this is not related to the issue. If Puppet is suppose to work with class-based resources then please open a new issue. Suggest talking to the Puppet team as well as the resource works with LCM in Windows, so just be related to Puppet.
from sqlserverdsc.
thank you, puppet is supposed to work with class based resoures as they state: I think it is how they autowrap the dsc module, and then templatize the parameters. I reached out to them, and opened issues on their dsc repo, since I think it might not be related to this repo, albeit the changes madeover the last year, may have created an incompatiblity with what they were doing.
Class-based DSC Resources can be used like any other DSC Resource in this module, with one important note: Due to a bug in calling class-based DSC Resources by path instead of module name, each call to Invoke-DscResource needs to temporarily munge the system-level environment variable for PSModulePath; the variable is reset prior to the end of each invocation.
from sqlserverdsc.
Related Issues (20)
- SqlRs: Integration test fails on SQL Server 2022 HOT 3
- Install-SqlDscReportingServices: New command proposal
- Get-SqlDscReportingServices: New command proposal
- Uninstall-SqlDscReportingServices: New command proposal
- Get-SqlDscReportingsServicesConfiguration: New command proposal
- Initialize-SqlDscReportServer: New command proposal
- Set-SqlDscReportServerVirtualDirectory: New command proposal
- Add-SqlDscReportServerUrlReservation: New command proposal
- Request-SqlDscReportServerDatabaseScript: New command proposal
- Register-SqlDscReportServerDatabaseScript: New command proposal HOT 1
- Request-SqlDscReportServerDatabaseRightsScript: New command proposal
- Register-SqlDscReportServerDatabaseRightsScript: New command proposal HOT 1
- Set-SqlDscReportServerDatabaseConnection: New command proposal
- Enable-SqlDscReportServerTls: New command proposal HOT 1
- Disable-SqlDscReportServerTls: New command proposal
- Remove-SqlDscReportServerUrlReservation: New command proposal
- Restore-SqlDscDatabase: New command proposal HOT 1
- SqlServerDsc causes DSC to fail if SqlServer module version >= 22 are installed HOT 9
- New parameter productcoveredbysa : Command proposal HOT 2
- Connect-SQL : Failed to connect to SQL instance HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlserverdsc.