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
# Download the latest copy of SHOUTcast | |
$url = 'http://download.nullsoft.com/shoutcast/tools/sc_serv2_win64-latest.exe' | |
$exeoutput = "$env:TEMP\sc_serv2_win64-latest.exe" | |
Invoke-WebRequest -Uri $url -OutFile $exeoutput | |
# Setup SHOUTcast silently | |
$arguments = '/S' | |
Start-Process $exeoutput -ArgumentList $arguments -Wait | |
# Copy the SHOUTcast Config file |
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
<# | |
Written with version 3.5.0 of the Azure PowerShell Module | |
available from here https://github.com/Azure/azure-powershell/releases/tag/v2.8.0-October2019 | |
Install-Module -Name Az -Repository PSGallery -RequiredVersion 3.5.0 -Force -AllowClobber | |
Migration instructions Azure.RM to Az - https://azure.microsoft.com/en-au/blog/how-to-migrate-from-azurerm-to-az-in-azure-powershell/ | |
#> | |
Login-AzAccount | Out-Null | |
$subscriptions = Get-AzSubscription |
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
# Switch to the Azure AzureRM PowerShell module | |
if(Get-Module -Name Az*){ | |
Remove-Module -Name Az* | |
Import-Module -Name AzureRM -Force} | |
# Switch to the Azure AZ PowerShell module ( | |
if(Get-Module -Name AzureRM*){ | |
Remove-Module -Name AzureRM* | |
Import-Module -Name Az -Force} |
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
<# | |
Written with version 2.8.0 of the Azure PowerShell Module | |
available from here https://github.com/Azure/azure-powershell/releases/tag/v2.8.0-October2019 | |
or run: Install-Module -Name Az -RequiredVersion 2.8.0 -AllowClobber | |
Migration instructions Azure.RM to Az - https://azure.microsoft.com/en-au/blog/how-to-migrate-from-azurerm-to-az-in-azure-powershell/ | |
#> | |
#$resourceGroupName = Read-Host -Prompt "Enter the Resource Group name" | |
Add-AzAccount |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"@search.score": 1.0, | |
"attendeeCount": 393, | |
"hasLiveStream": true, | |
"sessionId": "83014", | |
"sessionInstanceId": "83014", | |
"sessionCode": "THR3091", | |
"sessionCodeNormalized": "THR3091", | |
"title": "Gain Efficiencies in Security Response with ServiceNow and Azure Sentinel Integration powered by Microsoft Graph", |
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
# Recently tested fully with a later version of the Azure PowerShell module - Install-Module AzureRM -RequiredVersion 4.4.1 | |
#region Logon to Azure | |
Login-AzureRmAccount | |
$subscription = Get-AzureRmSubscription | Out-GridView -PassThru | |
Select-AzureRmSubscription -SubscriptionId $subscription.Id | |
#endregion | |
# Variables for YOu to fill in |
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
######################################################### | |
####### only works if the Route template is blank ####### | |
######################################################### | |
# QUERY based parameter values - GET method | |
$firstName = 'Marc' | |
$surName = 'Kean' | |
$iwr = Invoke-WebRequest -Uri "https://ejuke2.azurewebsites.net/api/blog?firstname=$firstName&surname=$surName" -Method Get | |
$iwr.content |
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
$RadioFormat = 'Kiis' | |
$WritetoTableStorage = 'Yes' | |
$TableName = "JustPlayedKiis" | |
#Define the storage account and context. | |
$StorageAccountName = "StorageAccountName" | |
$StorageAccountKey = "StorageAccountKey" | |
$Ctx = New-AzureStorageContext $StorageAccountName -StorageAccountKey $StorageAccountKey | |
#region Clear the cache (variables) |
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
# Fill in mandatory details for the WiFi network | |
$WirelessNetworkSSID = '<WiFi_SSID>' | |
$WirelessNetworkPassword = '<WiFi_password>' | |
$Authentication = 'WPA2PSK' # Could be WPA2 | |
$Encryption = 'AES' | |
# Create the WiFi profile, set the profile to auto connect | |
$WirelessProfile = @' | |
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1"> | |
<name>{0}</name> |
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
# Setup the Azure Functions parameters | |
# https://marcfunction1.azurewebsites.net/api/sca/scanowplaying?state={state} | |
switch -RegEx ($REQ_QUERY_STATE) | |
{ | |
\S {$state = $REQ_QUERY_STATE} | |
# https://marcfunction1.azurewebsites.net/api/sca/{state} | |
default {$state = $REQ_PARAMS_STATE} | |
} |