Skip to content

Instantly share code, notes, and snippets.

View ahanoff's full-sized avatar
👨‍🚒

Akhan Zhakiyanov ahanoff

👨‍🚒
View GitHub Profile
@ahanoff
ahanoff / gist:a79e58018ff714a34a93e7387ca8f861
Created September 26, 2017 15:54
Hackertrail assignment
using System;
using System.Collections.Generic;
using System.Linq;
namespace hackertrail
{
public class Helper
{
public static IEnumerable<IEnumerable<T>> GetPermutations<T>(IEnumerable<T> items, int count)
{
- provider: Webhook
url: [your stride room url]
method: POST
headers:
Authorization: Bearer [token for room]
content_type: application/json
body: >-
{
"version":1,
"type":"doc",
@ahanoff
ahanoff / gist:a90e87e18294ad1e0b0344a4b0ff75ba
Created October 18, 2018 02:07
azurerm_client_config debug
2018-10-18T10:05:57.578+0800 [DEBUG] plugin.terraform-provider-azurerm_v1.16.0_x4.exe: 0
2018-10-18T10:05:57.578+0800 [DEBUG] plugin.terraform-provider-azurerm_v1.16.0_x4.exe:
2018-10-18T10:05:57.578+0800 [DEBUG] plugin.terraform-provider-azurerm_v1.16.0_x4.exe:
2018-10-18T10:05:57.578+0800 [DEBUG] plugin.terraform-provider-azurerm_v1.16.0_x4.exe: 2018/10/18 10:05:57 [DEBUG] Skipping provider registration for namespace Microsoft.Automation
2018/10/18 10:05:57 [TRACE] [walkPlan] Exiting eval tree: provider.azurerm
2018/10/18 10:05:57 [TRACE] dag/walk: walking "data.azurerm_client_config.current"
2018/10/18 10:05:57 [TRACE] vertex 'root.data.azurerm_client_config.current': walking
2018/10/18 10:05:57 [TRACE] vertex 'root.data.azurerm_client_config.current': evaluating
2018/10/18 10:05:57 [TRACE] [walkPlan] Entering eval tree: data.azurerm_client_config.current
2018/10/18 10:05:57 [TRACE] root: eval: *terraform.EvalSequence
data "azurerm_client_config" "current" {}
output "account_id" {
value = "${data.azurerm_client_config.current.client_id}"
}
output "tenant_id" {
value = "${data.azurerm_client_config.current.tenant_id}"
}
1 error(s) occurred:
* module.aks.azurerm_kubernetes_cluster.aks: 1 error(s) occurred:
* azurerm_kubernetes_cluster.aks: Error creating/updating Managed Kubernetes Cluster "aks" (Resource Group "dev"): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="LinkedInvalidPropertyId" Message="Property id '8305d9a1-fdf9-4fe1-a51e-243355d4e68d' at path 'properties.addonProfiles.omsagent.config.logAnalyticsWorkspaceResourceID' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'."
resource "azurerm_resource_group" "test" {
name = "acctestRG1"
location = "East US"
}
resource "azurerm_log_analytics_workspace" "test" {
name = "acctest-01"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
sku = "PerGB2018"
root:
abc:
en: ''