Skip to content

Instantly share code, notes, and snippets.

@rajcheval
rajcheval / InvokeVMSSRunCommand.ps1
Created June 26, 2018 02:50
Sample script showing how to update VM instances in VMSS
$PowershellScript =
@{
commandId = "RunPowerShellScript"
script =
@(
@rajcheval
rajcheval / gist:81fc90f09854fd813473065307612750
Created March 14, 2018 17:26
Jenkins Plugin not installing
MacBook-Pro:~ rajindersingh$ docker run --name jenkins2 -e "JENKINS_PLUGINS=gitlab-plugin hipchat:2.1.1 swarm azure-ad:0.2.0 " -p 8090:8080 blacklabelops/jenkins:latest
+ set -o errexit
+++ dirname /home/jenkins/docker-entrypoint.sh
++ cd /home/jenkins
++ pwd
+ readonly CUR_DIR=/home/jenkins
+ CUR_DIR=/home/jenkins
+ source /home/jenkins/clicreation.sh
++ PARAMETER_TOKEN='"$@"'
++ ENVIRONMENT_VARIABLE_TOKEN='${JENKINS_CLI_URL}'
@rajcheval
rajcheval / getvmssipaddresses.ps1
Last active April 16, 2017 13:02
This script gets the private IP addresses for each Azure Virtual Machine in a Virtual Machine Scaleset
<#
.SYNOPSIS
The script get the private IP addresses for each Vm in a virtual machine scale set.
.DESCRIPTION
The script get the private IP addresses for each Vm in a virtual machine scale set.
This is the resource group name for VMSS.