Skip to content

Instantly share code, notes, and snippets.

@cdennig
Created August 18, 2017 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdennig/bb226d5b22fd6cc4a46256cc7961e4f2 to your computer and use it in GitHub Desktop.
Save cdennig/bb226d5b22fd6cc4a46256cc7961e4f2 to your computer and use it in GitHub Desktop.
List Admin Keys / Redis / Azure Search
// Redis
"redis": {
"value": "[concat(reference(resourceId('Microsoft.Cache/Redis', variables('RedisCache').Name)).hostName, variables('RedisCache').WebAppRedisSettingText, listKeys(resourceId('Microsoft.Cache/Redis', variables('RedisCache').Name), '2015-08-01').primaryKey)]",
"type": "Custom"
}
// Search
"properties": {
"Search:Key": "[listAdminKeys(resourceId('Microsoft.Search/searchServices/', variables('searchAppName')), '2015-08-19').primaryKey]",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment