Skip to content

Instantly share code, notes, and snippets.

@thdotnet
Created January 16, 2019 10:37
Show Gist options
  • Select an option

  • Save thdotnet/873bfa890271dd30da8ab2f2e897cd96 to your computer and use it in GitHub Desktop.

Select an option

Save thdotnet/873bfa890271dd30da8ab2f2e897cd96 to your computer and use it in GitHub Desktop.
testing azure event grid
//source: https://www.codit.eu/blog/writing-tests-for-azure-event-grid/
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"EventGrid.Topic.Name": {
"type": "string",
"metadata": {
"description": "Name of the custom Azure Event Grid topic"
}
},
"Relay.Namespace.Name": {
"type": "string",
"metadata": {
"description": "Name of the custom Azure Relay namespace"
}
},
"Relay.HybridConnection.Name": {
"type": "string"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.EventGrid/topics",
"name": "[parameters('EventGrid.Topic.Name')]",
"apiVersion": "2018-01-01",
"location": "[resourceGroup().location]",
"dependsOn": []
},
{
"type": "Microsoft.Relay/namespaces",
"sku": {
"name": "Standard",
"tier": "Standard"
},
"name": "[parameters('Relay.Namespace.Name')]",
"apiVersion": "2017-04-01",
"location": "[resourceGroup().location]",
"tags": {},
"dependsOn": []
},
{
"type": "Microsoft.Relay/namespaces/hybridConnections",
"name": "[concat(parameters('Relay.Namespace.Name'), '/', parameters('Relay.HybridConnection.Name'))]",
"apiVersion": "2017-04-01",
"location": "[resourceGroup().location]",
"properties": {
"requiresClientAuthorization": "true"
},
"dependsOn": [
"[resourceId('Microsoft.Relay/namespaces', parameters('Relay.Namespace.Name'))]"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment