{"action":"created","comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/comments/140853984","pull_request_review_id":64985484,"id":140853984,"diff_hunk":"@@ -0,0 +1,64 @@\n+---\n+layout: \"azurerm\"\n+page_title: \"Azure Resource Manager: azurerm_log_analytics\"\n+sidebar_current: \"docs-azurerm-resource-log-analytics\"\n+description: |-\n+  Creates a new Log Analytics (formally Operational Insights Workspaces) Workspace.\n+---\n+\n+# azurerm\\_log\\_analytics\n+\n+Creates a new Log Analytics (formally Operational Insights Workspaces) Workspace.\n+\n+## Example Usage\n+\n+```hcl\n+resource \"azurerm_resource_group\" \"test\" {\n+  name     = \"acctestRG-01\"\n+  location = \"East US\"\n+}\n+\n+resource \"azurerm_log_analytics\" \"test\" {\n+  name                = \"acctest-01\"\n+  location            = \"${azurerm_resource_group.test.location}\"\n+  resource_group_name = \"${azurerm_resource_group.test.name}\"\n+  sku                 = \"Standard\"\n+  retention_in_days   = 30\n+}\n+```\n+\n+## Argument Reference\n+\n+The following arguments are supported:\n+\n+* `name` - (Required) Specifies the name of the Workspace. Changing this forces a new resource to be created. Workspace name should include 4-63 letters, digits or '-'. The '-' shouldn't be the first or the last symbol.\n+\n+* `resource_group_name` - (Required) The name of the resource group in which the Log Analytics workspace is created. Changing this forces a new resource to be created.\n+\n+* `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.\n+\n+* `sku` - (Required) A `sku` block as defined below.\n+\n+* `retention_in_days` - (Optional) The workspace data retention in days. Possible values range between 30 and 730.\n+\n+* `tags` - (Optional) A mapping of tags to assign to the resource.\n+\n+---\n+\n+* `sku` supports the following:\n+  * Free\n+  * Standard\n+  * PerNode\n+  * Standalone\n+  * Premium\n+  * Unlimited","path":"website/docs/r/log_analytics.html.markdown","position":54,"original_position":54,"commit_id":"68bec0707439d08849190abb5a3e85bf4bc9fb19","original_commit_id":"9b6461133c60f271b1fc3dd78553987fdd46b3ad","user":{"login":"TsuyoshiUshio","id":1390976,"avatar_url":"https://avatars0.githubusercontent.com/u/1390976?v=4","gravatar_id":"","url":"https://api.github.com/users/TsuyoshiUshio","html_url":"https://github.com/TsuyoshiUshio","followers_url":"https://api.github.com/users/TsuyoshiUshio/followers","following_url":"https://api.github.com/users/TsuyoshiUshio/following{/other_user}","gists_url":"https://api.github.com/users/TsuyoshiUshio/gists{/gist_id}","starred_url":"https://api.github.com/users/TsuyoshiUshio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TsuyoshiUshio/subscriptions","organizations_url":"https://api.github.com/users/TsuyoshiUshio/orgs","repos_url":"https://api.github.com/users/TsuyoshiUshio/repos","events_url":"https://api.github.com/users/TsuyoshiUshio/events{/privacy}","received_events_url":"https://api.github.com/users/TsuyoshiUshio/received_events","type":"User","site_admin":false},"body":"Done!","created_at":"2017-09-25T18:08:44Z","updated_at":"2017-09-25T18:08:44Z","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/pull/331#discussion_r140853984","pull_request_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/331","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/comments/140853984"},"html":{"href":"https://github.com/terraform-providers/terraform-provider-azurerm/pull/331#discussion_r140853984"},"pull_request":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/331"}},"in_reply_to_id":140773441},"pull_request":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/331","id":140716808,"html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/pull/331","diff_url":"https://github.com/terraform-providers/terraform-provider-azurerm/pull/331.diff","patch_url":"https://github.com/terraform-providers/terraform-provider-azurerm/pull/331.patch","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/331","number":331,"state":"open","locked":false,"title":"Adding Operational Insight Workspace (a.k.a Log Analytics)","user":{"login":"TsuyoshiUshio","id":1390976,"avatar_url":"https://avatars0.githubusercontent.com/u/1390976?v=4","gravatar_id":"","url":"https://api.github.com/users/TsuyoshiUshio","html_url":"https://github.com/TsuyoshiUshio","followers_url":"https://api.github.com/users/TsuyoshiUshio/followers","following_url":"https://api.github.com/users/TsuyoshiUshio/following{/other_user}","gists_url":"https://api.github.com/users/TsuyoshiUshio/gists{/gist_id}","starred_url":"https://api.github.com/users/TsuyoshiUshio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TsuyoshiUshio/subscriptions","organizations_url":"https://api.github.com/users/TsuyoshiUshio/orgs","repos_url":"https://api.github.com/users/TsuyoshiUshio/repos","events_url":"https://api.github.com/users/TsuyoshiUshio/events{/privacy}","received_events_url":"https://api.github.com/users/TsuyoshiUshio/received_events","type":"User","site_admin":false},"body":"I wanted to provide Operational Insight (a.k.a. Log Analytics). So write code for provision it. \r\n\r\nIf anyone didn't write the Log Analytics part, would you review/merge this, please?\r\n\r\nYou can use this like this. \r\n\r\n```\r\nprovider \"azurerm\" {\r\n    subscription_id = \"YOUR_SUBSCRITPION_ID\"\r\n    client_id = \"YOUR_CLIENT_ID\"\r\n    client_secret = \"YOUR_CLIENT_SECRET\"\r\n    tenant_id = \"YOUR_TENANT_ID\"\r\n}\r\n\r\n\r\nresource \"azurerm_resource_group\" \"test\" {\r\n  name     = \"acctestRG-01\"\r\n  location = \"East US\"\r\n}\r\n\r\nresource \"azurerm_operational_insight_workspace\" \"test\" {\r\n  name                = \"acctest-01\"\r\n  location            = \"${azurerm_resource_group.test.location}\"\r\n  resource_group_name = \"${azurerm_resource_group.test.name}\"\r\n  sku = \"Free\"\r\n}\r\n```\r\n\r\nI wrote a whole Acceptance testing, however, I didn't run it because it is expensive to run. If your Ci help it, and occurs error, I'll fix it. I test it locally. \r\n\r\nAlso, I don't write an documentation. because I'm not sure if it is written by someone. If this pull request is valuable, I'm happy to write the documentation. \r\n\r\n\r\n\r\n ","created_at":"2017-09-13T01:27:48Z","updated_at":"2017-09-25T18:08:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ea9e143d8af7a99e9ca3dced6f1c339b8509279","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/331/commits","review_comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/331/comments","review_comment_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/331/comments","statuses_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/statuses/68bec0707439d08849190abb5a3e85bf4bc9fb19","head":{"label":"TsuyoshiUshio:functions-provider","ref":"functions-provider","sha":"68bec0707439d08849190abb5a3e85bf4bc9fb19","user":{"login":"TsuyoshiUshio","id":1390976,"avatar_url":"https://avatars0.githubusercontent.com/u/1390976?v=4","gravatar_id":"","url":"https://api.github.com/users/TsuyoshiUshio","html_url":"https://github.com/TsuyoshiUshio","followers_url":"https://api.github.com/users/TsuyoshiUshio/followers","following_url":"https://api.github.com/users/TsuyoshiUshio/following{/other_user}","gists_url":"https://api.github.com/users/TsuyoshiUshio/gists{/gist_id}","starred_url":"https://api.github.com/users/TsuyoshiUshio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TsuyoshiUshio/subscriptions","organizations_url":"https://api.github.com/users/TsuyoshiUshio/orgs","repos_url":"https://api.github.com/users/TsuyoshiUshio/repos","events_url":"https://api.github.com/users/TsuyoshiUshio/events{/privacy}","received_events_url":"https://api.github.com/users/TsuyoshiUshio/received_events","type":"User","site_admin":false},"repo":{"id":100098576,"name":"terraform-provider-azurerm","full_name":"TsuyoshiUshio/terraform-provider-azurerm","owner":{"login":"TsuyoshiUshio","id":1390976,"avatar_url":"https://avatars0.githubusercontent.com/u/1390976?v=4","gravatar_id":"","url":"https://api.github.com/users/TsuyoshiUshio","html_url":"https://github.com/TsuyoshiUshio","followers_url":"https://api.github.com/users/TsuyoshiUshio/followers","following_url":"https://api.github.com/users/TsuyoshiUshio/following{/other_user}","gists_url":"https://api.github.com/users/TsuyoshiUshio/gists{/gist_id}","starred_url":"https://api.github.com/users/TsuyoshiUshio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TsuyoshiUshio/subscriptions","organizations_url":"https://api.github.com/users/TsuyoshiUshio/orgs","repos_url":"https://api.github.com/users/TsuyoshiUshio/repos","events_url":"https://api.github.com/users/TsuyoshiUshio/events{/privacy}","received_events_url":"https://api.github.com/users/TsuyoshiUshio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TsuyoshiUshio/terraform-provider-azurerm","description":"Terraform azurerm provider","fork":true,"url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm","forks_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/forks","keys_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/teams","hooks_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/hooks","issue_events_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/issues/events{/number}","events_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/events","assignees_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/assignees{/user}","branches_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/branches{/branch}","tags_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/tags","blobs_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/git/refs{/sha}","trees_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/statuses/{sha}","languages_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/languages","stargazers_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/stargazers","contributors_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/contributors","subscribers_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/subscribers","subscription_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/subscription","commits_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/commits{/sha}","git_commits_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/git/commits{/sha}","comments_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/comments{/number}","issue_comment_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/issues/comments{/number}","contents_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/contents/{+path}","compare_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/merges","archive_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/downloads","issues_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/issues{/number}","pulls_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/pulls{/number}","milestones_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/milestones{/number}","notifications_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/labels{/name}","releases_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/releases{/id}","deployments_url":"https://api.github.com/repos/TsuyoshiUshio/terraform-provider-azurerm/deployments","created_at":"2017-08-12T08:06:14Z","updated_at":"2017-08-12T08:06:17Z","pushed_at":"2017-09-25T18:01:23Z","git_url":"git://github.com/TsuyoshiUshio/terraform-provider-azurerm.git","ssh_url":"git@github.com:TsuyoshiUshio/terraform-provider-azurerm.git","clone_url":"https://github.com/TsuyoshiUshio/terraform-provider-azurerm.git","svn_url":"https://github.com/TsuyoshiUshio/terraform-provider-azurerm","homepage":"","size":7214,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"terraform-providers:master","ref":"master","sha":"82ed4e01ec2fc9bffc5e8c419820fb597d06e49f","user":{"login":"terraform-providers","id":29154831,"avatar_url":"https://avatars0.githubusercontent.com/u/29154831?v=4","gravatar_id":"","url":"https://api.github.com/users/terraform-providers","html_url":"https://github.com/terraform-providers","followers_url":"https://api.github.com/users/terraform-providers/followers","following_url":"https://api.github.com/users/terraform-providers/following{/other_user}","gists_url":"https://api.github.com/users/terraform-providers/gists{/gist_id}","starred_url":"https://api.github.com/users/terraform-providers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terraform-providers/subscriptions","organizations_url":"https://api.github.com/users/terraform-providers/orgs","repos_url":"https://api.github.com/users/terraform-providers/repos","events_url":"https://api.github.com/users/terraform-providers/events{/privacy}","received_events_url":"https://api.github.com/users/terraform-providers/received_events","type":"Organization","site_admin":false},"repo":{"id":93446042,"name":"terraform-provider-azurerm","full_name":"terraform-providers/terraform-provider-azurerm","owner":{"login":"terraform-providers","id":29154831,"avatar_url":"https://avatars0.githubusercontent.com/u/29154831?v=4","gravatar_id":"","url":"https://api.github.com/users/terraform-providers","html_url":"https://github.com/terraform-providers","followers_url":"https://api.github.com/users/terraform-providers/followers","following_url":"https://api.github.com/users/terraform-providers/following{/other_user}","gists_url":"https://api.github.com/users/terraform-providers/gists{/gist_id}","starred_url":"https://api.github.com/users/terraform-providers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terraform-providers/subscriptions","organizations_url":"https://api.github.com/users/terraform-providers/orgs","repos_url":"https://api.github.com/users/terraform-providers/repos","events_url":"https://api.github.com/users/terraform-providers/events{/privacy}","received_events_url":"https://api.github.com/users/terraform-providers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/terraform-providers/terraform-provider-azurerm","description":"Terraform azurerm provider","fork":false,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm","forks_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/forks","keys_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/teams","hooks_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/hooks","issue_events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/events{/number}","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/events","assignees_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/assignees{/user}","branches_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/branches{/branch}","tags_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/tags","blobs_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/git/refs{/sha}","trees_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/statuses/{sha}","languages_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/languages","stargazers_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/stargazers","contributors_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/contributors","subscribers_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/subscribers","subscription_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/subscription","commits_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/commits{/sha}","git_commits_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/git/commits{/sha}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/comments{/number}","issue_comment_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/comments{/number}","contents_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/contents/{+path}","compare_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/merges","archive_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/downloads","issues_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues{/number}","pulls_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls{/number}","milestones_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/milestones{/number}","notifications_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels{/name}","releases_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/releases{/id}","deployments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/deployments","created_at":"2017-06-05T20:53:54Z","updated_at":"2017-09-25T12:59:28Z","pushed_at":"2017-09-25T18:01:28Z","git_url":"git://github.com/terraform-providers/terraform-provider-azurerm.git","ssh_url":"git@github.com:terraform-providers/terraform-provider-azurerm.git","clone_url":"https://github.com/terraform-providers/terraform-provider-azurerm.git","svn_url":"https://github.com/terraform-providers/terraform-provider-azurerm","homepage":"","size":7137,"stargazers_count":75,"watchers_count":75,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":134,"forks":68,"open_issues":134,"watchers":75,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/331"},"html":{"href":"https://github.com/terraform-providers/terraform-provider-azurerm/pull/331"},"issue":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/331"},"comments":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/331/comments"},"review_comments":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/331/comments"},"review_comment":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/331/commits"},"statuses":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/statuses/68bec0707439d08849190abb5a3e85bf4bc9fb19"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"TsuyoshiUshio"}}