Skip to content

Instantly share code, notes, and snippets.

Avatar

Ravikanth C rchaganti

View GitHub Profile
@rchaganti
rchaganti / testazure.ps1
Created May 2, 2014 09:16
Testing Azure
View testazure.ps1
Write-Host "Testing Azure Script Extension"
@rchaganti
rchaganti / PodcastDownloader.ps1
Created May 28, 2014 08:58
Download Podcasts and Channel9 feeds using PowerShell
View PodcastDownloader.ps1
$feed = "http://channel9.msdn.com/Shows/Azure-Friday/feed/mp4high"
$destination = "AzureFriday"
mkdir "~\Desktop\${destination}"
cd "~\Desktop\${destination}"
$a = ([xml](new-object net.webclient).downloadstring($feed))
$a.rss.channel.item | foreach{
$url = New-Object System.Uri($_.enclosure.url)
@rchaganti
rchaganti / Get-PythonMSI.ps1
Last active August 29, 2015 14:01
Download latest Python MSI from python.org/downloads
View Get-PythonMSI.ps1
Function Test-Url {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[String] $Url,
[Parameter()]
[Switch] $ReturnUri
)
@rchaganti
rchaganti / Get-PythonDownloads.ps1
Created May 28, 2014 14:05
Get Python download MSI object
View Get-PythonDownloads.ps1
Function Test-Url {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[String] $Url,
[Parameter()]
[Switch] $ReturnUri
)
@rchaganti
rchaganti / test-url.ps1
Created May 28, 2014 13:48
Test a URL!
View test-url.ps1
Function Test-Url {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[String] $Url
)
Process {
if ([system.uri]::IsWellFormedUriString($Url,[System.UriKind]::Absolute)) {
View Get-AzurePowerShell.ps1
Function Test-Url {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[String] $Url,
[Parameter()]
[Switch] $ReturnUri
)
View Get-AzurePowerShellMSI.ps1
Function Test-Url {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[String] $Url
)
Process {
if ([system.uri]::IsWellFormedUriString($Url,[System.UriKind]::Absolute)) {
$true
@rchaganti
rchaganti / Open-FWLink.ps1
Last active August 29, 2015 14:04
Open FW Links
View Open-FWLink.ps1
@rchaganti
rchaganti / Reset-AzureVMUserPassword.ps1
Created August 13, 2014 16:17
Reset-AzureVMUserPassword
View Reset-AzureVMUserPassword.ps1
Function Reset-AzureVMUserPassword {
param (
[String]
$VMName,
[String]
$ServiceName,
[PSCredential]
$Credential
@rchaganti
rchaganti / Get-AzureStatus.ps1
Last active August 29, 2015 14:05
Get Azure Service Status alerts
View Get-AzureStatus.ps1
Function Get-AzureStatus {
$response = Invoke-RestMethod -Uri 'http://azure.microsoft.com/en-us/status/feed/'
if ($response) {
foreach ($item in $response) {
Write-Host "$($item.Title) : " -NoNewline
Write-Host -ForegroundColor Red "$($item.Description)"
}
} else {
Write-Host -ForegroundColor Green "All is well!"
}