deliver powershell to your team - expertslive.nl · office 365 goals achieved? • git repository...

16
OFFICE 365 Deliver PowerShell to your team Bartek Bielawski & Daniël Both

Upload: others

Post on 14-Jun-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

Deliver PowerShell to your

team

Bartek Bielawski & Daniël Both

Page 2: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

Daniël Both &

Bartek Bielawski

Windows Engineers @

Optiver

Page 3: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

Goals

• Be able to see who changed what when

• Enforce consistent use of parameters,

help, credentials, etc.

• Make sure the code works

• Enable easy discovery of your functions

• Everybody uses the correct version of a

script

Page 4: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

Current situation?

• Scripts on a UNC share

• Hard to track changes

• Low or no quality control

Page 5: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

Step 1: Convert to module

• Functions available locally in memory

• Enables discoverability

Page 6: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

Step 2: Create a git repository

• Single source of truth

• Starting point for all automation

• Use what's already there

Page 7: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

Step 3: Using Git

• Git branch: Your own place to edit code

• Create pull request from this branch

• Peer review on pull request to save the

day

• Keeping track of pull requests

Page 8: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

Step 4: PowerShell Gallery

• Enable easy discovery of your

functions.

• Updating versions is now much easier!

Page 9: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365OFFICE 365

Demo 1-4

Page 10: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

Step 5: Automated distribution

• Use a build tool, it’s build to do the job.

Page 11: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

Step 6: Test your code

• For new code, this should be step #0

• Enforce code quality

• Make sure your code works

Page 12: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

Step 7: Auto update modules

• Enforce use of the correct version

• Filter when an update is triggered

Page 13: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365OFFICE 365

Demo 5-7

Page 14: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

Goals achieved?• Git repository to see who changed what when.

• Pester to enforce consistent use of parameters, help, credentials, etc. and to make sure our code works.

• Bamboo for automating testing and publishing of code.

• PowerShell Gallery to enable easy discovery of your functions.

• Module auto update to enforce the use of the correct version.

Page 15: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

Optiver

• We’re looking for colleagues, so come

have a chat if you’re interested!

• Or browse to:

http://optiver.com/amsterdam

Page 16: Deliver PowerShell to your team - expertslive.nl · OFFICE 365 Goals achieved? • Git repository to see who changed what when. • Pester to enforce consistent use of parameters,

OFFICE 365

<Volgende sessie 13:30 – 14:30 uur>

Leverage Azure to power your SAP workloads on SuSe

Orhan Alici