Skip to content

Instantly share code, notes, and snippets.

View Create-EventGridSubscriptionToAzureFunctionV2.ps1
#
#.SYNOPSIS
# Creates Event Grid Subscription.
#.DESCRIPTION
# Creates an Event Grid Subscription (Topic type: Azure Subscription) to a Function App V2
#.OUTPUTS
# Progress messages
#
@olandese
olandese / createashardedmongodbincosmosdb.sh
Last active Nov 26, 2018
Create a sharded MongoDB in CosmosDB using the Azure CLI
View createashardedmongodbincosmosdb.sh
#!/bin/bash
resourceGroupName="cosmosdbshardedtest"
name="mongodboncosmosdb"
databaseName="mongodb"
collectionName="mongodbcoll"
kind="MongoDB"
partition="/'\$v'/YourShardID/'\$v'"
az login