Skip to content

Instantly share code, notes, and snippets.

Rajinder Singh rajcheval

Block or report user

Report or block rajcheval

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
@rajcheval
rajcheval / InvokeVMSSRunCommand.ps1
Created Jun 26, 2018
Sample script showing how to update VM instances in VMSS
View InvokeVMSSRunCommand.ps1
$PowershellScript =
@{
commandId = "RunPowerShellScript"
script =
@(
View gist:81fc90f09854fd813473065307612750
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 Apr 16, 2017
This script gets the private IP addresses for each Azure Virtual Machine in a Virtual Machine Scaleset
View getvmssipaddresses.ps1
<#
.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.
You can’t perform that action at this time.