Skip to content

Instantly share code, notes, and snippets.

View diogocatossi's full-sized avatar
🎯
Focusing

Diogo Catossi diogocatossi

🎯
Focusing
View GitHub Profile
@diogocatossi
diogocatossi / AzurePowershell-CreateSimpleVMUsingTemplate.ps1
Last active June 10, 2020 16:00
PowerShell script to create a VM using a JSON Template
<#
.SYNOPSIS
Create and Azure VM using specified template.
.DESCRIPTION
Create and Azure VM using specified template and validating errors in case of failure, providing the specific error message of which deployment step failed. The desired template URI should be provided as parameter
.INPUTS
ResourceGroupName - Name of the resource group that will be used for the VM deployment. If none exist a new one will be created.
TemplateURI - URI for the template desired. e.g.: 'https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-vm-simple-windows/azuredeploy.json' (used for this template initially)
.OUTPUTS
n/a
@diogocatossi
diogocatossi / CertEnroll.ps1
Last active February 8, 2020 14:58
CertEnroll
<#
.SYNOPSIS
Performs the 802.1x machine cert enrollment to the targeted domain.
.DESCRIPTION
Port from BATCH script version adding more robust code with resiliency and active monitoring for the workstation cert enrollment.
.INPUTS
[N/A] No parameter required as issuing CA is per forest.
.OUTPUTS
n/a
.EXAMPLE