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 GetFeedPageCount ($url) { | |
| $feed=[xml](New-Object System.Net.WebClient).DownloadString($url) | |
| $pageCount = $feed.rss.channel.pageCount | |
| return $pageCount; | |
| } | |
| function DownloadFeed ($url) { | |
| $feed=[xml](New-Object System.Net.WebClient).DownloadString($url) | |
| foreach($i in $feed.rss.channel.item) { | |
| $url = New-Object System.Uri($i.enclosure.url) |
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
| body { | |
| font-family: Helvetica, arial, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| background-color: white; | |
| padding: 30px; } | |
| body > *:first-child { |
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
| Switch-AzureMode AzureResourceManager; Get-AzureResourceGroup | Foreach-Object { Get-AzureResourceGroup -Name $_.ResourceGroupName | Where-Object { $_.Resources.Count -eq 0 } | Foreach-Object { Write-Host Removing $_.ResourceGroupName; Remove-AzureResourceGroup -Name $_.ResourceGroupName -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
| <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA/MAAAMWCAYAAAC9ddaSAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAJdnBBZwAAA/MAAAMWAKnix60AAIAASURBVHja7P13mBzXeacN3+dUdZqIMAAGOUcCIECABAlCDCDFIJGSKJESrZwoW7Jsy2srfKa1r+29tApWtHa962/pJPl1kKwVTUkmKZEClZhJAARAECByxgADYHKHqnPeP05Vd08CJgIzg+fmVexUVV19qqbRv/N7gkIQBEEQBEEQRjeqbIkf6y7Pe9FzfnRbDdQC44Fk9Pp0oB5IAROj2/L3qAXGRfuoA9KDOObKaF/JsufagTNAoQ+ftx1oBILocRA9bo/WscBZoAVoBZoBE73WBuwDOqKlKXotjG6D6NaW7cuU3bc93BcE4SKjZAgEQRAEQRCEEUxPAt0re+wBGaAGJ44zQBVOpI/HifJk9PpEYEL0OB2tm8GJ81isV5W9n+rleHp7rb+fq+s++iuOu65ve3k9ALJlr+dxwr8Q3c/ixHos/k/hBH9j9HpHdD8W/+3RbTNuosCWLaZssb0clyAIQ4CIeUEQBEEQBGEkoCmJ9fh+CkhQEuuTcI74DErCPBbgE6LXq6LndNkCPbv3XOD+WMKe57Ht4bbcjY/FeTtO7LdQEvtncIL+DM7hPwscBU5E6+Sj7XKUnH9Ttn9x9wVhgIiYFwRBEARBEC4GsZAuF9keTqwncWJ8Cs5NnwxMwwn3CdHjmThBH4v7OFy+fN89CXVh6OhN9IMT6iHO7c/ihPwpnHt/DDiJE/rN0f3T0XI2Wr9AKby/XPCL2BeEXpAvOkEQBEEQBGGoKQ+H93DCu5qSmz4JJ9Cn4Fz2OdFz1ZTC5JN0Fuki1EcPvYl+ixP8sbPfQknsn4hu |
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-AzureRmVM | ForEach-Object { Stop-AzureRmVM -ResourceGroupName $_.ResourceGroupName -Name $_.Name -Confirm:$false -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
| { | |
| "records": | |
| [ | |
| { | |
| "time": "2017-01-26T02:51:54.2654839Z", | |
| "systemId": "702cf7df-04ee-462b-b293-7dbc8f07b264", | |
| "category": "LoadBalancerProbeHealthStatus", | |
| "resourceId": "/SUBSCRIPTIONS/A1A714C4-715A-4729-8243-E6AAA5B381D8/RESOURCEGROUPS/VMLBDEMO/PROVIDERS/MICROSOFT.NETWORK/LOADBALANCERS/WWWLB", | |
| "operationName": "LoadBalancerProbeHealthStatus", |
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
| <!DOCTYPE html> | |
| <head> | |
| <!-- Latest compiled and minified CSS --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" | |
| crossorigin="anonymous"> | |
| <!-- Optional theme --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" | |
| crossorigin="anonymous"> |
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
| var mongoose = require('mongoose'); | |
| mongoose.connect('<COSMOS DB CONNECTION STRING>'); | |
| var Schema = mongoose.Schema; | |
| var userSchema = new Schema({ | |
| email: { type: String, default: '' }, | |
| }); | |
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
| #r "System.IO" | |
| #r "System.Runtime" | |
| #r "System.Threading.Tasks" | |
| #r "Microsoft.WindowsAzure.Storage" | |
| using System; | |
| using System.IO; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Microsoft.WindowsAzure.Storage.Blob; |
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
| az account list-locations --output tsv | awk -F '\t' '{print $1 ; system("az vm list-sizes --output table --location " $5);}' |
OlderNewer