This file contains 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-AzVM | ` | |
where-object {$_.storageprofile.Osdisk.OSType -eq 'Linux'} | ` | |
ForEach-Object {$out = @()} {$a = [pscustomobject]@{Name = $_.Name; Version = (Get-azVM -status -VMName $_.Name -ResourceGroupName $_.ResourceGroupName).Extensions.Where({$_.Name -match 'OMS'}).TypeHandlerVersion; ResourceGroupName = $_.ResourceGroupName}; $out+=$a}; $out |
This file contains 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
# escape=` | |
# Image with NET CORE installation to extract executables for final image | |
FROM microsoft/aspnetcore:2.0.0-nanoserver As CoreBuild | |
# Middleware image used to extract ASP.NET core module | |
From microsoft/iis as WindowsBuild | |
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'Continue'; $verbosePreference='Continue';"] | |
# Installing NET CORE webhosting in middleware image so latest module and configuration schema is extracted for final image | |
ADD https://download.microsoft.com/download/B/1/D/B1D7D5BF-3920-47AA-94BD-7A6E48822F18/DotNetCore.2.0.0-WindowsHosting.exe ".\hosting.exe" |
This file contains 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
PS C:\gd\Documents\dockerswarmarm> Get-AzureRmPublicIpAddress -Name swarmhostsoei4cappgwpip -ResourceGroupName swarm-rg | select IPaddress | |
IpAddress | |
--------- | |
13.84.214.117 | |
PS C:\gd\Documents\dockerswarmarm> Invoke-webrequest 13.84.214.117 | |
This file contains 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
# Retrieve all Public IPs | |
$AllPublicIPs = Get-AzureRMPublicIPaddress | |
# Retrieve all Virtual Networks | |
$vnetall = Get-AzureRMVirtualNetwork | |
# Retrieve all Network Interfaces | |
$nicall = Get-AzureRmNetworkInterface | |
# Retrieve all ARM Virtual Machines | |
$AllVMs = Get-AzureRMVM | Sort-object location, resourcegroupname, name | |
$StatusForAllVms = Get-azureRmVM -Status |
This file contains 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
{"SchemaVersion":"1.10","RunbookDefinition":"AAEAAAD/////AQAAAAAAAAAMAgAAAGJPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49MzFiZjM4NTZhZDM2NGUzNQUBAAAALE9yY2hlc3RyYXRvci5HcmFwaFJ1bmJvb2suTW9kZWwuR3JhcGhSdW5ib29rBQAAAApwYXJhbWV0ZXJzCmFjdGl2aXRpZXMFbGlua3MIY29tbWVudHMLb3V0cHV0VHlwZXMDAwMDA7IBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLlBhcmFtZXRlciwgT3JjaGVzdHJhdG9yLkdyYXBoUnVuYm9vay5Nb2RlbCwgVmVyc2lvbj03LjMuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPTMxYmYzODU2YWQzNjRlMzVdXbEBU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLkFjdGl2aXR5LCBPcmNoZXN0cmF0b3IuR3JhcGhSdW5ib29rLk1vZGVsLCBWZXJzaW9uPTcuMy4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49MzFiZjM4NTZhZDM2NGUzNV1drQFTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYy5MaXN0YDFbW09yY2hlc3RyYXRvci5HcmFwaFJ1bmJvb2suTW9kZWwuTGluaywgT3JjaGVzdHJhdG9yLkdyYXBoUnVuYm9vay5Nb2RlbCwgVmVyc2lvbj03LjMuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1Ymx |
This file contains 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
{ | |
"name": "WindowsContainersCluster", | |
"clusterConfigurationVersion": "1.0.0", | |
"apiVersion": "10-2017", | |
"nodes": [ | |
{ | |
"nodeName": "vm0", | |
"iPAddress": "containerhost00.sf.local", | |
"nodeTypeRef": "NodeType0", | |
"faultDomain": "fd:/dc1/r0", |
This file contains 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
"groups": "32df13c6-6e25-48e2-9b5e-63dd25f308dd,6a06581b-64b4-4a86-a590-5bb0e1f7a63b,52d47dae-80ce-4e3c-88b5-e1d57e39506e,0c6dbf57-8196-460d-b63b-f55647179c03,4cf3860a-5d4b-4f6f-bec1-bc2bbeec5ec9,a1812dba-2d31-4a1c-9cc2-7091672defc2", | |
"http://schemas.microsoft.com/identity/claims/identityprovider": "live.com", | |
"ipaddr": "47.184.55.63", | |
"name": "Gregory Suvalian", | |
"http://schemas.microsoft.com/identity/claims/objectidentifier": "6c19805a-8757-42ae-92de-02897cd7ccf9", | |
"puid": "10037FFE87760F28", | |
"http://schemas.microsoft.com/identity/claims/scope": "user_impersonation", | |
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "w8DgE14xt_N7LiCRKp_5Ib0OQL0G0s1lX6VUEzS95QU", | |
"http://schemas.microsoft.com/identity/claims/tenantid": "c0de79f3-23e2-4f18-989e-d173e1d403d6", | |
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": "live.com#artisticcheese@gmail.com", |
This file contains 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
{ | |
"properties": { | |
"id": { | |
"type": "integer" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"resource": { | |
"properties": { |
This file contains 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
{ | |
"properties": { | |
"createdDate": { | |
"type": "string" | |
}, | |
"detailedMessage": { | |
"properties": { | |
"html": { | |
"type": "string" | |
}, |
This file contains 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
pool: | |
vmImage: Hosted VS2017 | |
steps: | |
- task: CopyFiles@2 | |
displayName: 'Copy Files to: $(build.artifactstagingdirectory)' | |
inputs: | |
SourceFolder: scripts | |
TargetFolder: '$(build.artifactstagingdirectory)' | |
- task: PublishBuildArtifacts@1 |
NewerOlder