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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.1", | |
"parameters": { | |
"clusterName": { | |
"type": "string", | |
"defaultValue": "aks101cluster", | |
"metadata": { | |
"description": "The name of the Managed Cluster resource." | |
} |
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.Collections.Generic; | |
using System.Diagnostics.Tracing; | |
using Azure.Core; | |
using Azure.Core.Diagnostics; | |
using Azure.Identity; | |
using DotNetEnv; | |
namespace azid | |
{ |
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.Threading.Tasks; | |
using Microsoft.Identity.Client; | |
using System.Text; | |
using System.Globalization; | |
using Microsoft.Azure.Management.DataFactory; | |
using Microsoft.Rest; | |
using Azure.Security.KeyVault.Secrets; | |
using Azure.Identity; | |
using Azure.Core; |
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 Azure.Identity; | |
namespace graphapitest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var cred = new DefaultAzureCredential(new DefaultAzureCredentialOptions() { SharedTokenCacheUsername = "email@email.com" }); |
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
// Copyright (c) Microsoft. All rights reserved. | |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | |
'use strict'; | |
var Protocol = require('azure-iot-device-amqp').Amqp; | |
// Uncomment one of these transports and then change it in fromConnectionString to test other transports | |
// var Protocol = require('azure-iot-device-amqp').AmqpWs; | |
// var Protocol = require('azure-iot-device-http').Http; | |
// var Protocol = require('azure-iot-device-mqtt').Mqtt; |
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
var iotHubName = pm.environment.get("iotHubName"); | |
var iotHubKey = pm.environment.get("iotHubKey"); | |
var iotHubTokenExpiration = pm.environment.get("iotHubTokenExpiration"); | |
var iotHubPolicyName = pm.environment.get("iotHubPolicyName"); | |
pm.globals.clear("iotHubSasToken"); // clear out token on first run. | |
// See this doc for details: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-security | |
var resourceUri = encodeURIComponent(iotHubName + '.azure-devices.net'); // The resource uri | |
var expiry = Math.ceil((Date.now() / 1000) + iotHubTokenExpiration * 60); // Expire the token 60 minutes from now |
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
/* | |
* Power BI Visual CLI | |
* | |
* Copyright (c) Microsoft Corporation | |
* All rights reserved. | |
* MIT License | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the ""Software""), to deal | |
* in the Software without restriction, including without limitation the rights |
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
{ | |
"compilerOptions": { | |
"allowJs": true, | |
"emitDecoratorMetadata": true, | |
"experimentalDecorators": true, | |
"target": "ES5", | |
"sourceMap": true, | |
"out": "./.tmp/build/visual.js" | |
}, | |
"files": [ |
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
{ | |
"visual": { | |
"name": "liquidFillGauge", | |
"displayName": "liquidFillGauge", | |
"guid": "liquidFillGaugeCA6D0134FC6446EF90CC6934C9812269", | |
"visualClassName": "Visual", | |
"version": "1.0.0", | |
"description": "", | |
"supportUrl": "", | |
"gitHubUrl": "" |
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
declare namespace lfg { | |
export function loadLiquidFillGauge(svg: any, value: any, settings: any): any; | |
export function liquidFillGaugeDefaultSettings(): any; | |
} | |
declare module 'lfg' { | |
export = lfg; | |
} |