{"action":"created","comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/comments/310560209","pull_request_review_id":270704181,"id":310560209,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxMDU2MDIwOQ==","diff_hunk":"@@ -0,0 +1,357 @@\n+package azurerm\n+\n+import (\n+\t\"fmt\"\n+\n+\t\"github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils\"\n+\n+\t\"github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql\"\n+\t\"github.com/hashicorp/terraform/helper/schema\"\n+\t\"github.com/hashicorp/terraform/helper/validation\"\n+\t\"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure\"\n+\t\"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/set\"\n+\t\"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf\"\n+)\n+\n+func resourceArmSqlFailoverGroup() *schema.Resource {\n+\treturn &schema.Resource{\n+\t\tCreate: resourceArmSqlFailoverGroupCreateUpdate,\n+\t\tRead:   resourceArmSqlFailoverGroupRead,\n+\t\tUpdate: resourceArmSqlFailoverGroupCreateUpdate,\n+\t\tDelete: resourceArmSqlFailoverGroupDelete,\n+\n+\t\tImporter: &schema.ResourceImporter{\n+\t\t\tState: schema.ImportStatePassthrough,\n+\t\t},\n+\n+\t\tSchema: map[string]*schema.Schema{\n+\t\t\t\"name\": {\n+\t\t\t\tType:         schema.TypeString,\n+\t\t\t\tRequired:     true,\n+\t\t\t\tForceNew:     true,\n+\t\t\t\tValidateFunc: validation.NoZeroValues,\n+\t\t\t},\n+\n+\t\t\t\"location\": azure.SchemaLocationForDataSource(),\n+\n+\t\t\t\"resource_group_name\": azure.SchemaResourceGroupName(),\n+\n+\t\t\t\"server_name\": {\n+\t\t\t\tType:         schema.TypeString,\n+\t\t\t\tRequired:     true,\n+\t\t\t\tForceNew:     true,\n+\t\t\t\tValidateFunc: azure.ValidateMsSqlServerName,\n+\t\t\t},\n+\n+\t\t\t\"databases\": {\n+\t\t\t\tType:     schema.TypeSet,\n+\t\t\t\tOptional: true,\n+\t\t\t\tElem: &schema.Schema{\n+\t\t\t\t\tType: schema.TypeString,\n+\t\t\t\t},\n+\t\t\t\tSet: schema.HashString,\n+\t\t\t},\n+\n+\t\t\t\"partner_servers\": {\n+\t\t\t\tType:     schema.TypeList,\n+\t\t\t\tRequired: true,\n+\t\t\t\tElem: &schema.Resource{\n+\t\t\t\t\tSchema: map[string]*schema.Schema{\n+\t\t\t\t\t\t\"id\": {\n+\t\t\t\t\t\t\tType:         schema.TypeString,\n+\t\t\t\t\t\t\tRequired:     true,\n+\t\t\t\t\t\t\tValidateFunc: azure.ValidateResourceID,\n+\t\t\t\t\t\t},\n+\n+\t\t\t\t\t\t\"location\": azure.SchemaLocationForDataSource(),\n+\n+\t\t\t\t\t\t\"role\": {\n+\t\t\t\t\t\t\tType:     schema.TypeString,\n+\t\t\t\t\t\t\tComputed: true,\n+\t\t\t\t\t\t},\n+\t\t\t\t\t},\n+\t\t\t\t},\n+\t\t\t},\n+\n+\t\t\t\"readonly_endpoint_failover_policy\": {\n+\t\t\t\tType:     schema.TypeList,\n+\t\t\t\tOptional: true,\n+\t\t\t\tComputed: true,\n+\t\t\t\tMaxItems: 1,\n+\t\t\t\tElem: &schema.Resource{\n+\t\t\t\t\tSchema: map[string]*schema.Schema{\n+\t\t\t\t\t\t\"mode\": {\n+\t\t\t\t\t\t\tType:     schema.TypeString,\n+\t\t\t\t\t\t\tRequired: true,\n+\t\t\t\t\t\t\tValidateFunc: validation.StringInSlice([]string{\n+\t\t\t\t\t\t\t\tstring(sql.ReadOnlyEndpointFailoverPolicyDisabled),\n+\t\t\t\t\t\t\t\tstring(sql.ReadOnlyEndpointFailoverPolicyEnabled),\n+\t\t\t\t\t\t\t}, false),\n+\t\t\t\t\t\t},\n+\t\t\t\t\t},\n+\t\t\t\t},\n+\t\t\t},\n+\n+\t\t\t\"read_write_endpoint_failover_policy\": {\n+\t\t\t\tType:     schema.TypeList,\n+\t\t\t\tRequired: true,\n+\t\t\t\tMaxItems: 1,\n+\t\t\t\tElem: &schema.Resource{\n+\t\t\t\t\tSchema: map[string]*schema.Schema{\n+\t\t\t\t\t\t\"mode\": {\n+\t\t\t\t\t\t\tType:     schema.TypeString,\n+\t\t\t\t\t\t\tRequired: true,\n+\t\t\t\t\t\t\tValidateFunc: validation.StringInSlice([]string{\n+\t\t\t\t\t\t\t\tstring(sql.Automatic),\n+\t\t\t\t\t\t\t\tstring(sql.Manual),\n+\t\t\t\t\t\t\t}, false),\n+\t\t\t\t\t\t},\n+\t\t\t\t\t\t\"grace_minutes\": {\n+\t\t\t\t\t\t\tType:         schema.TypeInt,\n+\t\t\t\t\t\t\tOptional:     true,\n+\t\t\t\t\t\t\tValidateFunc: validation.IntAtLeast(0),\n+\t\t\t\t\t\t},\n+\t\t\t\t\t},\n+\t\t\t\t},\n+\t\t\t},\n+\n+\t\t\t\"role\": {\n+\t\t\t\tType:     schema.TypeString,\n+\t\t\t\tComputed: true,\n+\t\t\t},\n+\n+\t\t\t\"tags\": tagsSchema(),\n+\t\t},\n+\t}\n+}\n+\n+func resourceArmSqlFailoverGroupCreateUpdate(d *schema.ResourceData, meta interface{}) error {\n+\tclient := meta.(*ArmClient).sqlFailoverGroupsClient\n+\tctx := meta.(*ArmClient).StopContext\n+\n+\tname := d.Get(\"name\").(string)\n+\tresourceGroup := d.Get(\"resource_group_name\").(string)\n+\tserverName := d.Get(\"server_name\").(string)\n+\n+\tif requireResourcesToBeImported && d.IsNewResource() {\n+\t\texisting, err := client.Get(ctx, resourceGroup, serverName, name)\n+\t\tif err != nil {\n+\t\t\tif !utils.ResponseWasNotFound(existing.Response) {\n+\t\t\t\treturn fmt.Errorf(\"Error checking for presence of existing SQL Failover Group %q (Resource Group %q, Server %q): %+v\", name, resourceGroup, serverName, err)\n+\t\t\t}\n+\t\t}\n+\n+\t\tif existing.ID != nil && *existing.ID != \"\" {\n+\t\t\treturn tf.ImportAsExistsError(\"azurerm_sql_failover_group\", *existing.ID)\n+\t\t}\n+\t}\n+\n+\ttags := d.Get(\"tags\").(map[string]interface{})\n+\n+\tproperties := sql.FailoverGroup{\n+\t\tFailoverGroupProperties: &sql.FailoverGroupProperties{\n+\t\t\tReadOnlyEndpoint:  expandReadOnlyPolicy(d),\n+\t\t\tReadWriteEndpoint: expandReadWritePolicy(d),\n+\t\t\tPartnerServers:    expandPartnerServers(d),\n+\t\t},\n+\t\tTags: expandTags(tags),\n+\t}\n+\n+\tif r, ok := d.Get(\"databases\").(*schema.Set); ok && r.Len() > 0 {\n+\t\tvar databases []string\n+\t\tfor _, v := range r.List() {\n+\t\t\ts := v.(string)\n+\t\t\tdatabases = append(databases, s)\n+\t\t}\n+\n+\t\tproperties.Databases = &databases\n+\t}\n+\n+\tfuture, err := client.CreateOrUpdate(ctx, resourceGroup, serverName, name, properties)\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"Error issuing create/update request for SQL Failover Group %q (Resource Group %q, Server %q): %+v\", name, resourceGroup, serverName, err)\n+\t}\n+\n+\tif err = future.WaitForCompletionRef(ctx, client.Client); err != nil {\n+\t\treturn fmt.Errorf(\"Error waiting on create/update future for SQL Failover Group %q (Resource Group %q, Server %q): %+v\", name, resourceGroup, serverName, err)\n+\t}\n+\n+\tresp, err := client.Get(ctx, resourceGroup, serverName, name)\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"Error issuing get request for SQL Failover Group %q (Resource Group %q, Server %q): %+v\", name, resourceGroup, serverName, err)\n+\t}\n+\n+\td.SetId(*resp.ID)\n+\n+\treturn resourceArmSqlFailoverGroupRead(d, meta)\n+}\n+\n+func resourceArmSqlFailoverGroupRead(d *schema.ResourceData, meta interface{}) error {\n+\tclient := meta.(*ArmClient).sqlFailoverGroupsClient\n+\tctx := meta.(*ArmClient).StopContext\n+\n+\tid, err := parseAzureResourceID(d.Id())\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\n+\tresourceGroup := id.ResourceGroup\n+\tserverName := id.Path[\"servers\"]\n+\tname := id.Path[\"failoverGroups\"]\n+\n+\tresp, err := client.Get(ctx, resourceGroup, serverName, name)\n+\tif err != nil {\n+\t\tif utils.ResponseWasNotFound(resp.Response) {\n+\t\t\td.SetId(\"\")\n+\t\t\treturn nil\n+\t\t}\n+\t\treturn fmt.Errorf(\"Error making Read request for SQL Failover Group %q (Resource Group %q): %+v\", name, resourceGroup, err)\n+\t}\n+\n+\td.Set(\"name\", resp.Name)\n+\td.Set(\"resource_group_name\", resourceGroup)\n+\td.Set(\"server_name\", serverName)\n+\n+\tif location := resp.Location; location != nil {\n+\t\td.Set(\"location\", azure.NormalizeLocation(*location))\n+\t}\n+\n+\tif props := resp.FailoverGroupProperties; props != nil {\n+\t\tif err := d.Set(\"read_write_endpoint_failover_policy\", flattenReadWritePolicy(props.ReadWriteEndpoint)); err != nil {\n+\t\t\treturn fmt.Errorf(\"Error setting `read_write_endpoint_failover_policy`: %+v\", err)\n+\t\t}\n+\n+\t\tif err := d.Set(\"readonly_endpoint_failover_policy\", flattenReadOnlyPolicy(props.ReadOnlyEndpoint)); err != nil {\n+\t\t\treturn fmt.Errorf(\"Error setting `read_only_endpoint_failover_policy`: %+v\", err)\n+\t\t}\n+\n+\t\td.Set(\"databases\", set.FromStringSlice(*props.Databases))\n+\t\td.Set(\"role\", string(props.ReplicationRole))\n+\n+\t\tif err := d.Set(\"partner_servers\", flattenPartnerServers(props.PartnerServers)); err != nil {\n+\t\t\treturn fmt.Errorf(\"Error setting `partnet_servers`: %+v\", err)\n+\t\t}\n+\t}\n+\n+\tflattenAndSetTags(d, resp.Tags)\n+\n+\treturn nil\n+}\n+\n+func resourceArmSqlFailoverGroupDelete(d *schema.ResourceData, meta interface{}) error {\n+\tclient := meta.(*ArmClient).sqlFailoverGroupsClient\n+\tctx := meta.(*ArmClient).StopContext\n+\n+\tid, err := parseAzureResourceID(d.Id())\n+\tif err != nil {\n+\t\treturn err\n+\t}\n+\n+\tresourceGroup := id.ResourceGroup\n+\tserverName := id.Path[\"servers\"]\n+\tname := id.Path[\"failoverGroups\"]\n+\n+\tfuture, err := client.Delete(ctx, resourceGroup, serverName, name)\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"Error deleting SQL Failover Group %q (Resource Group %q): %+v\", name, resourceGroup, err)\n+\t}\n+\n+\tif err = future.WaitForCompletionRef(ctx, client.Client); err != nil {\n+\t\treturn fmt.Errorf(\"Error deleting SQL Failover Group %q (Resource Group %q): %+v\", name, resourceGroup, err)\n+\t}\n+\n+\treturn err\n+}\n+\n+func expandReadWritePolicy(d *schema.ResourceData) *sql.FailoverGroupReadWriteEndpoint {\n+\tvs := d.Get(\"read_write_endpoint_failover_policy\").([]interface{})\n+\tv := vs[0].(map[string]interface{})\n+\n+\tmode := sql.ReadWriteEndpointFailoverPolicy(v[\"mode\"].(string))\n+\tgraceMins := int32(v[\"grace_minutes\"].(int))\n+\n+\tpolicy := &sql.FailoverGroupReadWriteEndpoint{\n+\t\tFailoverPolicy: mode,\n+\t}\n+\n+\tif mode != \"manual\" {\n+\t\tpolicy.FailoverWithDataLossGracePeriodMinutes = utils.Int32(graceMins)\n+\t}\n+\n+\treturn policy\n+}\n+\n+func flattenReadWritePolicy(input *sql.FailoverGroupReadWriteEndpoint) []interface{} {","path":"azurerm/resource_arm_sql_failover_group.go","position":284,"original_position":284,"commit_id":"f45f9588fe69303eb42deea06ab71f65dc7169e1","original_commit_id":"f45f9588fe69303eb42deea06ab71f65dc7169e1","user":{"login":"katbyte","id":1638467,"node_id":"MDQ6VXNlcjE2Mzg0Njc=","avatar_url":"https://avatars2.githubusercontent.com/u/1638467?v=4","gravatar_id":"","url":"https://api.github.com/users/katbyte","html_url":"https://github.com/katbyte","followers_url":"https://api.github.com/users/katbyte/followers","following_url":"https://api.github.com/users/katbyte/following{/other_user}","gists_url":"https://api.github.com/users/katbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/katbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katbyte/subscriptions","organizations_url":"https://api.github.com/users/katbyte/orgs","repos_url":"https://api.github.com/users/katbyte/repos","events_url":"https://api.github.com/users/katbyte/events{/privacy}","received_events_url":"https://api.github.com/users/katbyte/received_events","type":"User","site_admin":false},"body":"and this to\r\n```suggestion\r\nfunc flattenSqlFailoverGroupReadWritePolicy(input *sql.FailoverGroupReadWriteEndpoint) []interface{} {\r\n```","created_at":"2019-08-05T11:33:32Z","updated_at":"2019-08-05T11:39:56Z","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/pull/3901#discussion_r310560209","pull_request_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/3901","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/comments/310560209"},"html":{"href":"https://github.com/terraform-providers/terraform-provider-azurerm/pull/3901#discussion_r310560209"},"pull_request":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/3901"}}},"pull_request":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/3901","id":299839282,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk5ODM5Mjgy","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/pull/3901","diff_url":"https://github.com/terraform-providers/terraform-provider-azurerm/pull/3901.diff","patch_url":"https://github.com/terraform-providers/terraform-provider-azurerm/pull/3901.patch","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/3901","number":3901,"state":"open","locked":false,"title":"Added SQL failover group resource","user":{"login":"simongh","id":1473359,"node_id":"MDQ6VXNlcjE0NzMzNTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1473359?v=4","gravatar_id":"","url":"https://api.github.com/users/simongh","html_url":"https://github.com/simongh","followers_url":"https://api.github.com/users/simongh/followers","following_url":"https://api.github.com/users/simongh/following{/other_user}","gists_url":"https://api.github.com/users/simongh/gists{/gist_id}","starred_url":"https://api.github.com/users/simongh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simongh/subscriptions","organizations_url":"https://api.github.com/users/simongh/orgs","repos_url":"https://api.github.com/users/simongh/repos","events_url":"https://api.github.com/users/simongh/events{/privacy}","received_events_url":"https://api.github.com/users/simongh/received_events","type":"User","site_admin":false},"body":"I've created a resource for adding SQL Failover Groups. I've added tests & documentation. Hopefully there's not much that I've missed. Still a novice when it comes to Go\r\n\r\n(fixes #2989)","created_at":"2019-07-22T11:40:28Z","updated_at":"2019-08-05T11:39:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"656d1bc3f9bd048746dc4cd0a94e355a8f5bffa8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":620326920,"node_id":"MDU6TGFiZWw2MjAzMjY5MjA=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels/documentation","name":"documentation","color":"fef2c0","default":true},{"id":625925838,"node_id":"MDU6TGFiZWw2MjU5MjU4Mzg=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels/new-resource","name":"new-resource","color":"d4c5f9","default":false},{"id":794963917,"node_id":"MDU6TGFiZWw3OTQ5NjM5MTc=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels/service/mssql","name":"service/mssql","color":"77bb77","default":false},{"id":737912017,"node_id":"MDU6TGFiZWw3Mzc5MTIwMTc=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels/size/XL","name":"size/XL","color":"ffffff","default":false}],"milestone":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/milestones/49","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/milestone/49","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/milestones/49/labels","id":4486075,"node_id":"MDk6TWlsZXN0b25lNDQ4NjA3NQ==","number":49,"title":"v1.33.0","description":"","creator":{"login":"tombuildsstuff","id":666005,"node_id":"MDQ6VXNlcjY2NjAwNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/666005?v=4","gravatar_id":"","url":"https://api.github.com/users/tombuildsstuff","html_url":"https://github.com/tombuildsstuff","followers_url":"https://api.github.com/users/tombuildsstuff/followers","following_url":"https://api.github.com/users/tombuildsstuff/following{/other_user}","gists_url":"https://api.github.com/users/tombuildsstuff/gists{/gist_id}","starred_url":"https://api.github.com/users/tombuildsstuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombuildsstuff/subscriptions","organizations_url":"https://api.github.com/users/tombuildsstuff/orgs","repos_url":"https://api.github.com/users/tombuildsstuff/repos","events_url":"https://api.github.com/users/tombuildsstuff/events{/privacy}","received_events_url":"https://api.github.com/users/tombuildsstuff/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":16,"state":"open","created_at":"2019-07-12T07:03:40Z","updated_at":"2019-08-05T11:31:05Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/3901/commits","review_comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/3901/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/3901/comments","statuses_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/statuses/f45f9588fe69303eb42deea06ab71f65dc7169e1","head":{"label":"simongh:sql-failover-groups","ref":"sql-failover-groups","sha":"f45f9588fe69303eb42deea06ab71f65dc7169e1","user":{"login":"simongh","id":1473359,"node_id":"MDQ6VXNlcjE0NzMzNTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1473359?v=4","gravatar_id":"","url":"https://api.github.com/users/simongh","html_url":"https://github.com/simongh","followers_url":"https://api.github.com/users/simongh/followers","following_url":"https://api.github.com/users/simongh/following{/other_user}","gists_url":"https://api.github.com/users/simongh/gists{/gist_id}","starred_url":"https://api.github.com/users/simongh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simongh/subscriptions","organizations_url":"https://api.github.com/users/simongh/orgs","repos_url":"https://api.github.com/users/simongh/repos","events_url":"https://api.github.com/users/simongh/events{/privacy}","received_events_url":"https://api.github.com/users/simongh/received_events","type":"User","site_admin":false},"repo":{"id":117302566,"node_id":"MDEwOlJlcG9zaXRvcnkxMTczMDI1NjY=","name":"terraform-provider-azurerm","full_name":"simongh/terraform-provider-azurerm","private":false,"owner":{"login":"simongh","id":1473359,"node_id":"MDQ6VXNlcjE0NzMzNTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1473359?v=4","gravatar_id":"","url":"https://api.github.com/users/simongh","html_url":"https://github.com/simongh","followers_url":"https://api.github.com/users/simongh/followers","following_url":"https://api.github.com/users/simongh/following{/other_user}","gists_url":"https://api.github.com/users/simongh/gists{/gist_id}","starred_url":"https://api.github.com/users/simongh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simongh/subscriptions","organizations_url":"https://api.github.com/users/simongh/orgs","repos_url":"https://api.github.com/users/simongh/repos","events_url":"https://api.github.com/users/simongh/events{/privacy}","received_events_url":"https://api.github.com/users/simongh/received_events","type":"User","site_admin":false},"html_url":"https://github.com/simongh/terraform-provider-azurerm","description":"Terraform Azure Resource Manager provider","fork":true,"url":"https://api.github.com/repos/simongh/terraform-provider-azurerm","forks_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/forks","keys_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/teams","hooks_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/hooks","issue_events_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/issues/events{/number}","events_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/events","assignees_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/assignees{/user}","branches_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/branches{/branch}","tags_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/tags","blobs_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/git/refs{/sha}","trees_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/statuses/{sha}","languages_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/languages","stargazers_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/stargazers","contributors_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/contributors","subscribers_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/subscribers","subscription_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/subscription","commits_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/commits{/sha}","git_commits_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/git/commits{/sha}","comments_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/comments{/number}","issue_comment_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/issues/comments{/number}","contents_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/contents/{+path}","compare_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/merges","archive_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/downloads","issues_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/issues{/number}","pulls_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/pulls{/number}","milestones_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/milestones{/number}","notifications_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/labels{/name}","releases_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/releases{/id}","deployments_url":"https://api.github.com/repos/simongh/terraform-provider-azurerm/deployments","created_at":"2018-01-13T01:01:07Z","updated_at":"2019-07-22T00:59:11Z","pushed_at":"2019-08-04T18:47:30Z","git_url":"git://github.com/simongh/terraform-provider-azurerm.git","ssh_url":"git@github.com:simongh/terraform-provider-azurerm.git","clone_url":"https://github.com/simongh/terraform-provider-azurerm.git","svn_url":"https://github.com/simongh/terraform-provider-azurerm","homepage":"https://www.terraform.io/docs/providers/azurerm/","size":38037,"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,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"terraform-providers:master","ref":"master","sha":"d0371266e40779d2d79a962db22100296ce8b867","user":{"login":"terraform-providers","id":29154831,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTU0ODMx","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,"node_id":"MDEwOlJlcG9zaXRvcnk5MzQ0NjA0Mg==","name":"terraform-provider-azurerm","full_name":"terraform-providers/terraform-provider-azurerm","private":false,"owner":{"login":"terraform-providers","id":29154831,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTU0ODMx","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},"html_url":"https://github.com/terraform-providers/terraform-provider-azurerm","description":"Terraform provider for Azure Resource Manager","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":"2019-08-05T07:02:00Z","pushed_at":"2019-08-05T11:30:30Z","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":"https://www.terraform.io/docs/providers/azurerm/","size":39815,"stargazers_count":1013,"watchers_count":1013,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":971,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":588,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":971,"open_issues":588,"watchers":1013,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/3901"},"html":{"href":"https://github.com/terraform-providers/terraform-provider-azurerm/pull/3901"},"issue":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/3901"},"comments":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/3901/comments"},"review_comments":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/pulls/3901/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/3901/commits"},"statuses":{"href":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/statuses/f45f9588fe69303eb42deea06ab71f65dc7169e1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"katbyte"}}