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
// Requires the following Azure NuGet packages and related dependencies: | |
// package id="Microsoft.Azure.Management.Authorization" version="2.0.0" | |
// package id="Microsoft.Azure.Management.ResourceManager" version="1.4.0-preview" | |
// package id="Microsoft.Rest.ClientRuntime.Azure.Authentication" version="2.2.8-preview" | |
using Microsoft.Azure.Management.ResourceManager; | |
using Microsoft.Azure.Management.ResourceManager.Models; | |
using Microsoft.Rest.Azure.Authentication; | |
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 | |
Deploys a template to Azure | |
.DESCRIPTION | |
Deploys an Azure Resource Manager template | |
.PARAMETER subscriptionId | |
The subscription id where the template will be deployed. |
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
FROM ubuntu:16.04 | |
RUN apt-get -y update \ | |
&& apt-get install -y apt-transport-https wget \ | |
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ xenial main" | tee /etc/apt/sources.list.d/azure-cli.list \ | |
&& wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O /tmp/prod.deb \ | |
&& dpkg -i /tmp/prod.deb \ | |
&& rm -f /tmp/prod.deb \ | |
&& apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 \ | |
&& apt-get -y update \ | |
&& apt-get install -y microsoft-r-open-foreachiterators-3.4.3 \ |
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
// Requires the following Azure NuGet packages and related dependencies: | |
// package id="Microsoft.Rest.ClientRuntime.Azure.Authentication" version="2.2.12" | |
// package id="Microsoft.Azure.Management.ResourceManager" version="1.5.0-preview" | |
// package id="Microsoft.Azure.Management.HDInsight" version="2.0.3" | |
// package id="WindowsAzure.Storage" version="8.1.1" | |
using System; | |
using Microsoft.Rest; | |
using Microsoft.Azure; | |
using Microsoft.Azure.Management.HDInsight; |
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
FROM ubuntu:16.04 | |
# Install Machine Learning Server | |
RUN apt-get -y update \ | |
&& apt-get install -y apt-transport-https wget \ | |
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ xenial main" | tee /etc/apt/sources.list.d/azure-cli.list \ | |
&& wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O /tmp/prod.deb \ | |
&& dpkg -i /tmp/prod.deb \ | |
&& rm -f /tmp/prod.deb \ | |
&& apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 \ |
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
#!/usr/bin/python | |
import sys | |
import json | |
from collections import OrderedDict | |
appSettingsFilePath = "/opt/microsoft/mlserver/9.3.0/o16n/Microsoft.MLServer.WebNode/appsettings.json" | |
data = json.loads(open(appSettingsFilePath, "r").read().replace("\r\n",""), object_pairs_hook=OrderedDict) | |
data["Authentication"]["JWTSigningCertificate"]["Enabled"] = True | |
data["Authentication"]["JWTSigningCertificate"]["StoreName"] = "Root" |
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
FROM ubuntu:16.04 | |
RUN apt-get -y update \ | |
&& apt-get install -y apt-transport-https wget \ | |
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ xenial main" | tee /etc/apt/sources.list.d/azure-cli.list \ | |
&& wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O /tmp/prod.deb \ | |
&& dpkg -i /tmp/prod.deb \ | |
&& rm -f /tmp/prod.deb \ | |
&& apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 \ | |
&& apt-get -y update \ | |
&& apt-get install -y microsoft-r-open-foreachiterators-3.4.3 \ |
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
FROM ubuntu:16.04 | |
RUN apt-get -y update \ | |
&& apt-get install -y apt-transport-https wget \ | |
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ xenial main" | tee /etc/apt/sources.list.d/azure-cli.list \ | |
&& wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O /tmp/prod.deb \ | |
&& dpkg -i /tmp/prod.deb \ | |
&& rm -f /tmp/prod.deb \ | |
&& apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 \ | |
&& apt-get -y update \ | |
&& apt-get install -y microsoft-r-open-foreachiterators-3.4.3 \ |
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
FROM ubuntu:16.04 | |
RUN apt-get -y update \ | |
&& apt-get install -y apt-transport-https wget \ | |
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ xenial main" | tee /etc/apt/sources.list.d/azure-cli.list \ | |
&& wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O /tmp/prod.deb \ | |
&& dpkg -i /tmp/prod.deb \ | |
&& rm -f /tmp/prod.deb \ | |
&& apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 \ | |
&& apt-get -y update \ | |
&& apt-get install -y microsoft-r-open-foreachiterators-3.4.3 \ |
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
# ----------------------------------------------------# | |
# GENERATE CLIENT FROM SWAGGER JSON | |
# ----------------------------------------------------# | |
# Generate client in C# using the swagger json file | |
import urllib, requests, json, ssl, os | |
service_name = 'ManualTransmissionService' | |
f = open('manual-transmission-service-swagger.json', "r") | |
swagger = f.read() |
NewerOlder