-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SqlIntegrationServicesCatalog: Resource to perform the initial creation of the Integration Services Catalog #2004
Comments
I can see a public command for this. You mention a resource but it looks like you mean a command? Maybe you aiming for both? Would be great if we can avoid using It would be better if the type was available by just running Import-Module -Name 'SqlServer' # or 'dbatools' might work?
$smoServer = Connect-SqlDscDatabaseEngine -ServerName 'testclu01a' -InstanceName 'SQL2014'
# If the correct assembly is missing in the module SqlServer (or dbatools) this call fails.
$integrationServices = New-Object -TypeName 'Microsoft.SqlServer.Management.IntegrationServices.IntegrationServices' -ArgumentList @($smoServer) |
If using
|
Ideally it would be a resource. So could do something like the following in DSC to create an Integration Services Catalog. SqlIntegrationServicesCatalog 'SSISDB' { |
Would be great if this would be a public commands (Get-, Test-, New-), then the public commands can be used in a class-based resource. The error you seeing can be the result of conflicting assemblies. That looks like a typical error for those scenarios when using the Load() methods. Important that all resources use the correct version of the same assemblies. But I'm just guessing, it could be another problem. |
Resource proposal
Microsoft has documented how to problematically create the SSIS Catalog here https://learn.microsoft.com/en-us/sql/integration-services/catalog/ssis-catalog?view=sql-server-ver16#to-create-the-ssisdb-catalog-programmatically
It would be beneficial if the SqlServerDsc was able to incorporate this additional capability, to automate another part of configuring a SQL Server.
Proposed properties
Special considerations or limitations
None.
The text was updated successfully, but these errors were encountered: