This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$uri = "WEB_HOOK_URL" | |
$headers = @{"PARAMETER1"="VALUE1";"PARAMETER2"="VALUE2"} | |
$response = invoke-restmethod -method post -uri $uri -headers $headers | |
$jobid = [guid][string]$response.JobIds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$response = Invoke-WebRequest -Uri http://localhost:50342/oauth2/token -Method GET -Body @{resource="https://vault.azure.net"} -Headers @{Metadata="true"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-AzureRMProviderOperation Microsoft.Compute/virtualMachines/*/action | FT Operation, OperationName | |
Get-AzureRMProviderOperation Microsoft.Network/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM phusion/baseimage:0.9.15 | |
RUN apt-get update && \ | |
apt-get install -y python python-dev python-pip && \ | |
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
RUN pip install ansible | |
RUN ansible-galaxy install \ | |
Ansibles.hostname \ | |
Ansibles.apt \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Uninstall-AllModules { | |
param( | |
[Parameter(Mandatory=$true)] | |
[string]$TargetModule, | |
[Parameter(Mandatory=$true)] | |
[string]$Version, | |
[switch]$Force, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt -y install expect | |
MYSQL_ROOT_PASSWORD=1234 | |
SECURE_MYSQL=$(expect -c " | |
set timeout 10 | |
spawn mysql_secure_installation | |
expect \"Press y|Y for Yes, any other key for No:\" |