dsccommunity / dsccommunity/SharePointDsc

Allow xSPDistributedCacheService to change the service account

Open
#235 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted Technical Debt
Dominant language
C#
Stars
246
Forks
106
PR merge metrics
No merged PRs in 30d

Description

Currently xSPDistributedCacheService will set the service account on the cache when it is provisioned, however it will not update the account if the configuration is updated.

@harbars has a great post that has some great scripts and process on this which should be considered when implementing this change.

There are a bunch of things to consider in this though (some taken from the above article):

  • we can't change the account when more than one server, so need a process to shut it down from other servers before changing it
  • we need to be aware of what will happen if this resource runs on multiple servers at the same time (our ServerProvisionOrder property may prove useful here in that we need to make sure that its right on the first server before attempting to provision on a second? Need to look in to this more)
  • We need to be sure the cache size configured here sticks
  • SharePoint 2016 will let us change the service account before a server is provisioned, which might provide us an option to implement logic that will do that for 2016 - need to investigate the complexity of this

There are a bunch of considerations here, but this is something we need to get in to xSharePoint at some point to improve on the distributed cache resource and ease some pain of making these changes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the xSPDistributedCacheService entry point and the linked Harbar post for the service-account change process. Investigate multi-server coordination, ServerProvisionOrder, cache-size preservation, and SharePoint 2016 behavior. Done means configuration updates can change the account safely across the described scenarios.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
devops, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.