This file contains hidden or 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
| # get the container | |
| $account = Get-AzureRmStorageAccount -Name blobiterationtest0 -ResourceGroupName blob-iteration-test | |
| $context = $account.Context | |
| $container = Get-AzureStorageContainer -Context $context -Name test | |
| $maxResults = 5 | |
| $segment = 0 #which segment / result set are we getting? (zero index) |
This file contains hidden or 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
| $Source = @" | |
| namespace Microsoft.Apim | |
| { | |
| using System; | |
| using System.Net; | |
| using System.Text; | |
| using System.Globalization; | |
| using System.Security.Cryptography; | |
| public static class Tools |
This file contains hidden or 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
| #!/bin/bash | |
| # get maven (if you don't already have it | |
| brew update | |
| brew install maven | |
| # get core tools | |
| sudo npm install -g azure-functions-core-tools@core --unsafe-perm true |
This file contains hidden or 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
| import os, sys, uuid, time | |
| from azure.storage.blob import BlockBlobService, PublicAccess | |
| CONTAINER_NAME = '<container name>' | |
| service = BlockBlobService(account_name='<account name', account_key='<your key>') | |
| try: | |
| service.create_container(container_name = CONTAINER_NAME) |
This file contains hidden or 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/2015-01-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "storageSettings": { | |
| "type": "object", | |
| "defaultValue": { | |
| "count": 3, | |
| "prefix": "baa" | |
| } |
This file contains hidden or 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
| // create vertex by label | |
| // both vertex and/or edge should come in as objects. This is inline for clarity of requirements | |
| // the vertex and the edge in this sample demonstrate the minimum required fields and the shape to conform to graph | |
| function create_vertex(label, id) { | |
| var context = getContext(); | |
| var collection = context.getCollection(); | |
| var selfLink = collection.getSelfLink(); | |
| var newVertex = { |
This file contains hidden or 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
| Param( | |
| [string]$vstsAccount = "<VSTS-ACCOUNT-NAME>", | |
| [string]$projectName = "<PROJECT-NAME>", | |
| [string]$releaseDefinitionId = "<RELEASE-ID>", | |
| [string]$keepForever = "true", | |
| [string]$user = "", | |
| [string]$token = "<PERSONAL-ACCESS-TOKEN>" | |
| ) | |
| Write-Verbose "Parameter Values" |
This file contains hidden or 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
| // sourced: https://stackoverflow.com/questions/35902685/service-fabric-stateless-server-custom-udp-listener | |
| <?xml version="1.0" encoding="utf-8"?> | |
| <ServiceManifest Name="UdpServicePkg" | |
| Version="1.0.0" | |
| xmlns="http://schemas.microsoft.com/2011/01/fabric" | |
| xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <ServiceTypes> | |
| <!-- This is the name of your ServiceType. |
This file contains hidden or 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
| { | |
| "name": "[concat(variables('vmNodeType0Name'),'OMS')]", | |
| "properties": { | |
| "publisher": "Microsoft.EnterpriseCloud.Monitoring", | |
| "type": "MicrosoftMonitoringAgent", | |
| "typeHandlerVersion": "1.0", | |
| "autoUpgradeMinorVersion": true, | |
| "settings": { | |
| "workspaceId": "[reference(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('omsWorkspacename')), '2015-11-01-preview').customerId]" |
This file contains hidden or 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
| $resourceGroupName = "myResourceGroup" | |
| $scalesetName = "myVMScaleSet" | |
| $vmInstanceId = 0 | |
| $location = "eastus2" | |
| $snapshotName = "vmss_snapshot" | |
| # create the snapshot | |
| $vmss = Get-AzVmssVM -ResourceGroupName $resourceGroupName -VMScaleSetName $scalesetName -InstanceId $vmInstanceId |