SlideShare a Scribd company logo
1 of 24
Download to read offline
InformationSecurityinAutomatingvSphere InfrastructureDeploymentusingPowerCLI
Always in touch with the future!
• Author:
Zakharov Denis Arturovich,
almost-graduated student from SPbSUT,
Security Engineer
Google IT Support Professional Certificate
• Research advisor:
Tsvetkov Alexander Yurievich
Sr. Lecturer.
@MisterZurg
2
About speaker
Relevance
• No one likes to spend money and do unnecessary things;
• IS breaches occur / Slow software delivery
• Reputation damage / minus money
Relevance 3
Requirenments Design Development
Security features Threat model
Static analysis &
Secure coding
Testing Review Deployment
Security Code Review / Pentesting
Source: Student Spring - 2021
S.D.A.L
In this research we will
Focus on the
deployment part
4
Automation
• Dynamic configuration of application services.
5
Automation
• Dynamic configuration of application services;
• Reducing the risk of errors caused by human error.
6
Automation
• Dynamic configuration of application services;
• Reducing the risk of errors caused by human error;
• Reduced operating costs.
7
Automation
• Dynamic configuration of application services;
• Reducing the risk of errors caused by human error;
• Reducing the risk of errors caused by human error;
• As well as a number of challenges related to accessibility in VM migration.
8
9
PowerCLI
10
PowerCLI
11
Ideal Deploy
12
Network
Installation
# To install PowerCLI just open a PowerShell console and run the
command below:
Install-Module -Name VMware.PowerCLI
13
Constants
# Our Datacenter
$dc = Get-Datacenter -Name DC1
# We will use template Windows2016Template
$Template = Get-Template -Name 'Windows2016Template'
$groupNumber = 7
14
Script
# Create Directory{1-7} where we expand the template
for ($counter = 1; $counter -le $groupNumber; $counter++) {
# Create folders in which the infrastructure will be located,
# if desired, DataCenter can be replaced with Cluster
New-Folder -Name "pod${$counter}" -Location (Get-Datacenter)[0]
# Deploying our infrastructure from a template
New-VM -Location "pod${$counter}" -Name 'Windows16VM' -Template $Template
-OSCustomizationSpec $Spec -VMHost 'ESXiHost' -Datastore 'VMDatastore'
}
15
Script
# Create Directory{1-7} where we expand the template
for ($counter = 1; $counter -le $groupNumber; $counter++) {
# Create folders in which the infrastructure will be located,
# if desired, DataCenter can be replaced with Cluster
New-Folder -Name "pod${$counter}" -Location (Get-Datacenter)[0]
# Deploying our infrastructure from a template
New-VM -Location "pod${$counter}" -Name 'Windows16VM' -Template $Template
-OSCustomizationSpec $Spec -VMHost 'ESXiHost' -Datastore 'VMDatastore'
}
16
Extra features
# Additionally, we change the settings of the MAC network adapter
Get-VM 'Windows16VM' | Get-NetworkAdapter | Set-NetworkAdapter -
WakeOnLan:$true
# progressBar for task status
Write-Progress -Activity "Progress" -Status "$counter% Complete:" -
PercentComplete $counter;
17
Extra features
Progress counter driven by for loop
18
19
Modernization
Advantages
20
Modernization Acceleration
Advantages
21
Modernization Acceleration Visualization
Advantages
Q
:/
?
?
?
?
?
?
?
?
?
?
?
?
?
?
23
June Castillote Back to Basics : The PowerShell For Loop [Electronic resource] /
ATALEARNING / Access mode : https://adamtheautomator.com/powershell-for-
loop/#:~:text=The%20PowerShell%20for%20loop%20is,out%20X%20number%20o
f%20items).
Tyurin A.V., Tyuluandin I.V., Maltsev V.S., Kirilenko I.A., Berezun D.A. Overview of
the Languages for Safe Smart Contract Programming. Trudy ISP RAN / [Text]
/Proc. ISP RAS, vol. 31, issue 3, 2019. pp. 157-176
VMware vSphere and vSAN / [Electronic resource] /
VMware Developers Documentation / Access mode :
https://developer.vmware.com/docs/powercli/latest/products/vmwarevspherea
ndvsan/
Used materials
Denis Zakharov
2022
Thank yoU!

More Related Content

Similar to Student Spring 2022

Automated release management - DevConFu 2014
Automated release management - DevConFu 2014Automated release management - DevConFu 2014
Automated release management - DevConFu 2014
Kristoffer Deinoff
 
OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
OpenNebula Project
 

Similar to Student Spring 2022 (20)

Drupal Security Seminar
Drupal Security SeminarDrupal Security Seminar
Drupal Security Seminar
 
Dive into DevOps | March, Building with Terraform, Volodymyr Tsap
Dive into DevOps | March, Building with Terraform, Volodymyr TsapDive into DevOps | March, Building with Terraform, Volodymyr Tsap
Dive into DevOps | March, Building with Terraform, Volodymyr Tsap
 
1.3. (In)security Software
1.3. (In)security Software1.3. (In)security Software
1.3. (In)security Software
 
Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019
 
CQRS / ES & DDD Demystified
CQRS / ES & DDD DemystifiedCQRS / ES & DDD Demystified
CQRS / ES & DDD Demystified
 
Azure Saturday: Security + DevOps + Azure = Awesomeness
Azure Saturday: Security + DevOps + Azure = AwesomenessAzure Saturday: Security + DevOps + Azure = Awesomeness
Azure Saturday: Security + DevOps + Azure = Awesomeness
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
 
Introduce to PredictionIO
Introduce to PredictionIOIntroduce to PredictionIO
Introduce to PredictionIO
 
JAX London 2021: Jumpstart Your Cloud Native Development: An Overview of Prac...
JAX London 2021: Jumpstart Your Cloud Native Development: An Overview of Prac...JAX London 2021: Jumpstart Your Cloud Native Development: An Overview of Prac...
JAX London 2021: Jumpstart Your Cloud Native Development: An Overview of Prac...
 
Automated release management - DevConFu 2014
Automated release management - DevConFu 2014Automated release management - DevConFu 2014
Automated release management - DevConFu 2014
 
Cloud patterns applied
Cloud patterns appliedCloud patterns applied
Cloud patterns applied
 
Azure presentation nnug dec 2010
Azure presentation nnug  dec 2010Azure presentation nnug  dec 2010
Azure presentation nnug dec 2010
 
trusted db a trusted hardware-based database with privacy and data confidenti...
trusted db a trusted hardware-based database with privacy and data confidenti...trusted db a trusted hardware-based database with privacy and data confidenti...
trusted db a trusted hardware-based database with privacy and data confidenti...
 
DevOps Tooling - Pop-up Loft TLV 2017
DevOps Tooling - Pop-up Loft TLV 2017DevOps Tooling - Pop-up Loft TLV 2017
DevOps Tooling - Pop-up Loft TLV 2017
 
Application Security 101 (OWASP DC)
Application Security 101 (OWASP DC)Application Security 101 (OWASP DC)
Application Security 101 (OWASP DC)
 
Top web apps security vulnerabilities
Top web apps security vulnerabilitiesTop web apps security vulnerabilities
Top web apps security vulnerabilities
 
ASP.NET security vulnerabilities
ASP.NET security vulnerabilitiesASP.NET security vulnerabilities
ASP.NET security vulnerabilities
 
OWASP_Top_Ten_Proactive_Controls_v2.pptx
OWASP_Top_Ten_Proactive_Controls_v2.pptxOWASP_Top_Ten_Proactive_Controls_v2.pptx
OWASP_Top_Ten_Proactive_Controls_v2.pptx
 
Automating Security in your IaC Pipeline
Automating Security in your IaC PipelineAutomating Security in your IaC Pipeline
Automating Security in your IaC Pipeline
 
OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
OpenNebulaConf2019 - Building Virtual Environments for Security Analyses of C...
 

More from Denis Zakharov (8)

Seniors YSC2022
Seniors YSC2022Seniors YSC2022
Seniors YSC2022
 
Bachelors Diploma Slides Short Version
Bachelors Diploma Slides Short VersionBachelors Diploma Slides Short Version
Bachelors Diploma Slides Short Version
 
Development of a plugin for VS Code that supports ACSL language.
Development of a plugin for VS Code that supports ACSL language.Development of a plugin for VS Code that supports ACSL language.
Development of a plugin for VS Code that supports ACSL language.
 
Exploring ML methods to increase the profitability of the trading strategy
Exploring ML methods to increase the profitability of the trading strategyExploring ML methods to increase the profitability of the trading strategy
Exploring ML methods to increase the profitability of the trading strategy
 
Student Spring 2020
Student Spring 2020Student Spring 2020
Student Spring 2020
 
Student Spring 2019
Student Spring 2019Student Spring 2019
Student Spring 2019
 
Student Spring 2021
Student Spring 2021Student Spring 2021
Student Spring 2021
 
DocHolder
DocHolderDocHolder
DocHolder
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Student Spring 2022

  • 2. • Author: Zakharov Denis Arturovich, almost-graduated student from SPbSUT, Security Engineer Google IT Support Professional Certificate • Research advisor: Tsvetkov Alexander Yurievich Sr. Lecturer. @MisterZurg 2 About speaker
  • 3. Relevance • No one likes to spend money and do unnecessary things; • IS breaches occur / Slow software delivery • Reputation damage / minus money Relevance 3
  • 4. Requirenments Design Development Security features Threat model Static analysis & Secure coding Testing Review Deployment Security Code Review / Pentesting Source: Student Spring - 2021 S.D.A.L In this research we will Focus on the deployment part 4
  • 5. Automation • Dynamic configuration of application services. 5
  • 6. Automation • Dynamic configuration of application services; • Reducing the risk of errors caused by human error. 6
  • 7. Automation • Dynamic configuration of application services; • Reducing the risk of errors caused by human error; • Reduced operating costs. 7
  • 8. Automation • Dynamic configuration of application services; • Reducing the risk of errors caused by human error; • Reducing the risk of errors caused by human error; • As well as a number of challenges related to accessibility in VM migration. 8
  • 13. Installation # To install PowerCLI just open a PowerShell console and run the command below: Install-Module -Name VMware.PowerCLI 13
  • 14. Constants # Our Datacenter $dc = Get-Datacenter -Name DC1 # We will use template Windows2016Template $Template = Get-Template -Name 'Windows2016Template' $groupNumber = 7 14
  • 15. Script # Create Directory{1-7} where we expand the template for ($counter = 1; $counter -le $groupNumber; $counter++) { # Create folders in which the infrastructure will be located, # if desired, DataCenter can be replaced with Cluster New-Folder -Name "pod${$counter}" -Location (Get-Datacenter)[0] # Deploying our infrastructure from a template New-VM -Location "pod${$counter}" -Name 'Windows16VM' -Template $Template -OSCustomizationSpec $Spec -VMHost 'ESXiHost' -Datastore 'VMDatastore' } 15
  • 16. Script # Create Directory{1-7} where we expand the template for ($counter = 1; $counter -le $groupNumber; $counter++) { # Create folders in which the infrastructure will be located, # if desired, DataCenter can be replaced with Cluster New-Folder -Name "pod${$counter}" -Location (Get-Datacenter)[0] # Deploying our infrastructure from a template New-VM -Location "pod${$counter}" -Name 'Windows16VM' -Template $Template -OSCustomizationSpec $Spec -VMHost 'ESXiHost' -Datastore 'VMDatastore' } 16
  • 17. Extra features # Additionally, we change the settings of the MAC network adapter Get-VM 'Windows16VM' | Get-NetworkAdapter | Set-NetworkAdapter - WakeOnLan:$true # progressBar for task status Write-Progress -Activity "Progress" -Status "$counter% Complete:" - PercentComplete $counter; 17
  • 18. Extra features Progress counter driven by for loop 18
  • 23. 23 June Castillote Back to Basics : The PowerShell For Loop [Electronic resource] / ATALEARNING / Access mode : https://adamtheautomator.com/powershell-for- loop/#:~:text=The%20PowerShell%20for%20loop%20is,out%20X%20number%20o f%20items). Tyurin A.V., Tyuluandin I.V., Maltsev V.S., Kirilenko I.A., Berezun D.A. Overview of the Languages for Safe Smart Contract Programming. Trudy ISP RAN / [Text] /Proc. ISP RAS, vol. 31, issue 3, 2019. pp. 157-176 VMware vSphere and vSAN / [Electronic resource] / VMware Developers Documentation / Access mode : https://developer.vmware.com/docs/powercli/latest/products/vmwarevspherea ndvsan/ Used materials