Skip to content

Instantly share code, notes, and snippets.

Ned Bellavance ned1313

Block or report user

Report or block ned1313

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
#First let's set some variables needed by the acs-engine scale command
#Values will come from the deployment log, which should be here
LOCATION=$(grep "REGION_NAME" $LOG_FILE | awk '{print $2}')
DEPLOYMENT_DIR=$(grep "Templates output directory is" $LOG_FILE | awk '{print $NF}')
NODE_POOL=$(jq -r .properties.agentPoolProfiles[0].name $DEPLOYMENT_DIR/apimodel.json)
ned1313 /
Created Feb 18, 2019
Container script for Kubernetes Cluster on Azure Stack
set -e
echo "Starting deploying Kubernetes cluster"
echo "Running as:"
sleep 20

Keybase proof

I hereby claim:

  • I am ned1313 on github.
  • I am ned1313 ( on keybase.
  • I have a public key ASB1Bn-D7glxYeBiT0p9kS-IiNm6vrfEQwchiXnV5YDghgo

To claim this, I am signing this object:

ned1313 / DownloadASDK.ps1
Last active Jan 10, 2019
Helper Scripts for setting up the Azure Stack Development Kit
View DownloadASDK.ps1
This script is meant to make downloading the latest ASDK a simple affair. The files that
make up the ASDK are an executable and several bin files. This script will grab the
latest version of the ASDK from the web and then assemble the bin files into the final VHDX.
Make sure you have 40GB of free space on your C drive, or change the destination!
This does not include the process of installing the ASDK. That's a whole separate thing.
#Set up the path and source URI
ned1313 /
Last active Aug 30, 2018
Install the CodeDeploy agent on an EC2 instance with RHEL of Amazon Linux
yum update -y
yum install ruby wget -y
cd /home/ec2-user
chmod +x ./install
./install auto
View WindowsUpdatePowerShell.ps1
WindowsUpdatePowerShell script
Written by Ned Bellavance with functions borrowed from Brian White and the
WindowsUpdate module written by Michal Gajda. This script is meant to automate
the installation of Windows Updates on a brand new system. This is not a
replacement for WSUS or SCCM or anything centrally managed. It installs all
available, required Windows Updates until there are none left. It will
require an internet connection, of course, and local Administrator credentials.
The script is run without parameters. Logs are written out to the
ned1313 / Create-EC2Snapshots.ps1
Created Sep 26, 2016
View Create-EC2Snapshots.ps1
This script is intended to tag the volumes of an existing instance and create a snapshot for those volumes.
The script takes an instance ID and optional region parameter. It will find the instance in the region submitted or the
current default region and find all volumes attached to the instance. Then it will tag those volumes, and create a snapshot.
The snapshot will include the volume tags, as well as a date and name tag of its own.
Required, string, the instanceID of the instance with volumes to have snapshots taken.
View Rename-LCComputer.ps1
[string] $ServerPrefix,
[pscredential] $credentials,
[string] $DCIpAddress
Write-Output "ServerPrefix: $ServerPrefix"
$names = Invoke-Command -ComputerName $DCIpAddress -ScriptBlock {param($searchString) Get-ADComputer -Filter * | Where{$_.Name -like "$($searchString)*"} | select Name} -Credential $credentials -ArgumentList $ServerPrefix
Write-Output "Names found: $names"
if($names -eq $null){$hostname = $ServerPrefix + "-01"}
View MyServerAutoScale.json
"AWSTemplateFormatVersion": "2010-09-09",
"Description" : "Template for the creation of an AutoScaling group with Domain Join",
"Metadata": {
"AWS::CloudFormation::Interface": {
"ParameterGroups": [
"Label": {
View Apply-OneDriveForBusinessPolicies.ps1
This script is intended to apply various policy settings to OneDrive for Business SharePoint sites.
The settings and policies include both user configurable and adminstrative options. Different policies can be
applied depending on the parameter set invoked.
.PARAMETER ApplyPreservationPolicy
Optional, switch parameter. When included, all OneDrive for Business sites will be checked to
You can’t perform that action at this time.