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
#r "Newtonsoft.Json" | |
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Linq; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.Extensions.Primitives; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; |
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
<# | |
.SYNOPSIS | |
Register provided subscriptions with Automatic Registration feature. Failed registration information will be stored in RegistrationErrors.csv | |
file in the current directory where this script is executed. RegistrationErrors.csv will be empty when there are no errors in subscription registration. | |
.DESCRIPTION | |
Registering each subscription is a two step process: | |
-Register subscription to Microsoft.SqlVirtualMachine Resource provider. | |
-Register subscription to the Automatic Registration feature. | |
Prerequisites: | |
- The user account running the script should have "Microsoft.SqlVirtualMachine/register/action" RBAC access over the subscriptions. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#r "Newtonsoft.Json" | |
using System.Net; | |
using System.Net.Http; | |
using System.Web; | |
using System.Text.RegularExpressions; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.Extensions.Primitives; | |
using Newtonsoft.Json; |
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
# Run in Bash Azure Cloud Shell | |
webapps=$(az webapp list --query [].id -o tsv) | |
az webapp config show --ids $webapps --query "[].{WebApp:name,ResourceGroup:resourceGroup,minTlsVersion:minTlsVersion}" -o table |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: sql-distributions-0 | |
labels: | |
app: sql-distribution | |
spec: | |
type: LoadBalancer | |
ports: | |
- port: 1433 |
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
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Extensions.Http; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.Logging; | |
using Newtonsoft.Json; | |
using Microsoft.CognitiveServices.Speech; |
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
function _HeyMisty(data) { | |
misty.PlayAudio("s_PhraseHello.wav"); | |
//Record Voice Command | |
misty.StartRecordingAudio("VoiceCommand.wav"); | |
misty.Pause(3000); | |
misty.StopRecordingAudio(); | |
misty.Pause(1000); | |
//Check if Exists | |
misty.GetAudioList(); |
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
{ | |
"WorkspaceId":"6173e6bf-f90a-4e7a-9f97-b3672e7b9fa5", | |
"ReportId":"b2309d7f-5347-4e97-aab5-04f68eacc7be" | |
} |
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
<# | |
.DESCRIPTION | |
A runbook which fails over your Azure SQL Failover group to the secondary with allow data loss | |
This can be used for triggered emergency failovers. | |
.NOTES | |
AUTHOR: Cameron Battagler | |
LASTEDIT: Apr 18, 2019 | |
#> |