Skip to content

Instantly share code, notes, and snippets.

#
#.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 November 26, 2018 17:02
Create a sharded MongoDB in CosmosDB using the Azure CLI
#!/bin/bash
resourceGroupName="cosmosdbshardedtest"
name="mongodboncosmosdb"
databaseName="mongodb"
collectionName="mongodbcoll"
kind="MongoDB"
partition="/'\$v'/YourShardID/'\$v'"
az login