New Release: SharePointDsc v4.9

Published Nov 11 2021 03:51 AM 1,095 Views
Microsoft

With the release of SharePoint Server Subscription Edition a few weeks ago, we are focusing our attention on the v5.0 release. We are doing some final tests, making sure we can release a working version that supports SPSE. But that of course doesn't mean we aren't paying attention to the current version anymore! That is why we released v4.9 earlier this week!

 

This release contains fixes for several issues discovered in SharePointDsc over the past weeks. One major issue that was fixed was introduced when we released native ReverseDsc support. The issue was caused by the fact that SharePoint is still using PowerShell Snapins and was throwing the dreaded "Fixed issue where the snapin was generating the "An item with the same key has already been added" error.

In previous versions we already implemented several fixes, all with their own side effects. This time we took a different approach and we are confident that this will fix the issue once and for all.

 

You can find the SharePointDsc v4.9 in the PowerShell Gallery!

 

NOTE: We can always use additional help in making SharePointDsc even better. So if you are interested in contributing to SharePointDsc, check-out the open issues in the issue list, check-out this post in our Wiki or leave a comment on this blog post.

 

Improvement/Fixes in v4.9:

 

Added

  • SPLogLevel
    • Added ReverseDsc export support to this resource
  • SPWebApplication
    • Added logic to check if specified content database exists in the web application
    • Added possibility to update application pool

Changed

  • SharePointDsc
    • Updated build pipeline to use the correct vm image

Fixed

  • SharePointDsc
    • Fixed issue where the snapin was generating the "An item with the same key has already been added" error
  • ReverseDsc
    • Fixed issue where the export would contain duplicate configuration
    • Fixed issue where the example export cmdlets was in the incorrect format
  • SPDocIcon
    • Fixed issue where the resource was using hardcoded SP2016 and later paths and therefore didn't work in SP2013
  • SPSearchServiceApp
    • Disabled the Farm account DB ownership check when using SQL Auth
  • SPServiceAppPool
    • Fixed issue in Export method where the PsDscRunAsCredential was stored as a string instead of a PsCredential object
  • SPSite
    • Fixed issue where the code continues when the creation of the site failed, throwing even more errors

A huge thanks to the following guys helping with testing the "An item with the same key has already been added" issue:
Jean-Cyril Drouhin, Ilian Nilsson and Roel Pinxten

 

Also a huge thanks to everybody who submitted issues and all that support this project. It wasn’t possible without all of your help!

 

For more information about how to install SharePointDsc, check our Readme.md.

 

Let us know in the comments what you think of this release! If you find any issues, please submit them in the issue list on GitHub.

 

Happy SharePointing!!

%3CLINGO-SUB%20id%3D%22lingo-sub-2954354%22%20slang%3D%22en-US%22%3ENew%20Release%3A%20SharePointDsc%20v4.9%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2954354%22%20slang%3D%22en-US%22%3E%3CP%3EWith%20the%20release%20of%20SharePoint%20Server%20Subscription%20Edition%20a%20few%20weeks%20ago%2C%20we%20are%20focusing%20our%20attention%20on%20the%20v5.0%20release.%20We%20are%20doing%20some%20final%20tests%2C%20making%20sure%20we%20can%20release%20a%20working%20version%20that%20supports%20SPSE.%20But%20that%20of%20course%20doesn't%20mean%20we%20aren't%20paying%20attention%20to%20the%20current%20version%20anymore!%20That%20is%20why%20we%20released%20v4.9%20earlier%20this%20week!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20release%20contains%20fixes%20for%20several%20issues%20discovered%20in%20SharePointDsc%20over%20the%20past%20weeks.%20One%20major%20issue%20that%20was%20fixed%20was%20introduced%20when%20we%20released%20native%20ReverseDsc%20support.%20The%20issue%20was%20caused%20by%20the%20fact%20that%20SharePoint%20is%20still%20using%20PowerShell%20Snapins%20and%20was%20throwing%20the%20dreaded%20%22Fixed%20issue%20where%20the%20snapin%20was%20generating%20the%20%22An%20item%20with%20the%20same%20key%20has%20already%20been%20added%22%20error.%3C%2FP%3E%0A%3CP%3EIn%20previous%20versions%20we%20already%20implemented%20several%20fixes%2C%20all%20with%20their%20own%20side%20effects.%20This%20time%20we%20took%20a%20different%20approach%20and%20we%20are%20confident%20that%20this%20will%20fix%20the%20issue%20once%20and%20for%20all.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20find%20the%20%3CA%20title%3D%22SharePointDsc%20v4.9%22%20href%3D%22https%3A%2F%2Fwww.powershellgallery.com%2Fpackages%2FSharePointDsc%2F4.9.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ESharePointDsc%20v4.9%3C%2FA%3E%20in%20the%20PowerShell%20Gallery!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENOTE%3A%20We%20can%20always%20use%20additional%20help%20in%20making%20SharePointDsc%20even%20better.%20So%20if%20you%20are%20interested%20in%20contributing%20to%20SharePointDsc%2C%20check-out%20the%20open%20issues%20in%20the%20%3CA%20title%3D%22SharePointDsc%20issue%20list%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fdsccommunity%2FSharePointDsc%2Fissues%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eissue%20list%3C%2FA%3E%2C%20check-out%20%3CA%20title%3D%22Contributing%20to%20SharePointDsc%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fdsccommunity%2FSharePointDsc%2Fwiki%2FContributing%2520to%2520SharePointDsc%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20post%3C%2FA%3E%20in%20our%20Wiki%20or%20leave%20a%20comment%20on%20this%20blog%20post.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EImprovement%2FFixes%20in%20v4.9%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAdded%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESPLogLevel%3CUL%3E%0A%3CLI%3EAdded%20ReverseDsc%20export%20support%20to%20this%20resource%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ESPWebApplication%3CUL%3E%0A%3CLI%3EAdded%20logic%20to%20check%20if%20specified%20content%20database%20exists%20in%20the%20web%20application%3C%2FLI%3E%0A%3CLI%3EAdded%20possibility%20to%20update%20application%20pool%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3EChanged%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESharePointDsc%3CUL%3E%0A%3CLI%3EUpdated%20build%20pipeline%20to%20use%20the%20correct%20vm%20image%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3EFixed%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESharePointDsc%3CUL%3E%0A%3CLI%3EFixed%20issue%20where%20the%20snapin%20was%20generating%20the%20%22An%20item%20with%20the%20same%20key%20has%20already%20been%20added%22%20error%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EReverseDsc%3CUL%3E%0A%3CLI%3EFixed%20issue%20where%20the%20export%20would%20contain%20duplicate%20configuration%3C%2FLI%3E%0A%3CLI%3EFixed%20issue%20where%20the%20example%20export%20cmdlets%20was%20in%20the%20incorrect%20format%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ESPDocIcon%3CUL%3E%0A%3CLI%3EFixed%20issue%20where%20the%20resource%20was%20using%20hardcoded%20SP2016%20and%20later%20paths%20and%20therefore%20didn't%20work%20in%20SP2013%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ESPSearchServiceApp%3CUL%3E%0A%3CLI%3EDisabled%20the%20Farm%20account%20DB%20ownership%20check%20when%20using%20SQL%20Auth%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ESPServiceAppPool%3CUL%3E%0A%3CLI%3EFixed%20issue%20in%20Export%20method%20where%20the%20PsDscRunAsCredential%20was%20stored%20as%20a%20string%20instead%20of%20a%20PsCredential%20object%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ESPSite%3CUL%3E%0A%3CLI%3EFixed%20issue%20where%20the%20code%20continues%20when%20the%20creation%20of%20the%20site%20failed%2C%20throwing%20even%20more%20errors%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EA%20huge%20thanks%20to%20the%20following%20guys%20helping%20with%20testing%20the%20%22An%20item%20with%20the%20same%20key%20has%20already%20been%20added%22%20issue%3A%3CBR%20%2F%3E%3CSPAN%3EJean-Cyril%20Drouhin%2C%26nbsp%3BIlian%20Nilsson%20and%20Roel%20Pinxten%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlso%20a%20huge%20thanks%20to%20everybody%20who%20submitted%20issues%20and%20all%20that%20support%20this%20project.%20It%20wasn%E2%80%99t%20possible%20without%20all%20of%20your%20help!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20more%20information%20about%20how%20to%20install%20SharePointDsc%2C%20check%20our%20%3CA%20title%3D%22ReadMe%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fdsccommunity%2FSharePointDsc%2Fblob%2Fmaster%2FREADME.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EReadme.md%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%20us%20know%20in%20the%20comments%20what%20you%20think%20of%20this%20release!%20If%20you%20find%20any%20issues%2C%20please%20submit%20them%20in%20the%20%3CA%20title%3D%22SharePointDsc%20Issue%20List%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fdsccommunity%2FSharePointDsc%2Fissues%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eissue%20list%20on%20GitHub%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHappy%20SharePointing!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2954354%22%20slang%3D%22en-US%22%3E%3CP%3EWith%20the%20release%20of%20SharePoint%20Server%20Subscription%20Edition%2C%20we%20are%20focusing%20our%20attention%20on%20the%20v5.0%20release.%20But%20before%20we%20release%20that%20version%2C%20we%20did%20want%20to%20release%20recent%20changes%20that%20were%20implemented.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2954354%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ERelease%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Esharepoint%202013%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%202016%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%202019%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Nov 11 2021 03:51 AM
Updated by: