payload: {"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/4047","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/4047/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/4047/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/4047/events","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/issues/4047","id":479083927,"node_id":"MDU6SXNzdWU0NzkwODM5Mjc=","number":4047,"title":"Feature request: support AzureVmWorkloadProtectionPolicy in RecoveryServicesVault","user":{"login":"AndresPineros","id":8148000,"node_id":"MDQ6VXNlcjgxNDgwMDA=","avatar_url":"https://avatars1.githubusercontent.com/u/8148000?v=4","gravatar_id":"","url":"https://api.github.com/users/AndresPineros","html_url":"https://github.com/AndresPineros","followers_url":"https://api.github.com/users/AndresPineros/followers","following_url":"https://api.github.com/users/AndresPineros/following{/other_user}","gists_url":"https://api.github.com/users/AndresPineros/gists{/gist_id}","starred_url":"https://api.github.com/users/AndresPineros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndresPineros/subscriptions","organizations_url":"https://api.github.com/users/AndresPineros/orgs","repos_url":"https://api.github.com/users/AndresPineros/repos","events_url":"https://api.github.com/users/AndresPineros/events{/privacy}","received_events_url":"https://api.github.com/users/AndresPineros/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-08-09T17:07:33Z","updated_at":"2019-08-09T17:46:13Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nRight now the Recovery Services resources only allow creating ProtectionPolicies and ProtectedItems for AzureVMs, but not for the other types of resources:\r\nhttps://www.terraform.io/docs/providers/azurerm/r/recovery_services_protection_policy_vm.html\r\nhttps://www.terraform.io/docs/providers/azurerm/r/recovery_services_protected_vm.html\r\n\r\nIt would be nice to have the option for AzureVmWorkloadProtectionPolicy and AzureVmWorkloadProtectedItem in order to backup SQL VMs with the managed service.\r\n\r\nHere's the Python definition I used for the Policy's model, which could help a little to move it to Go:\r\n```\r\nprotection_policy = AzureVmWorkloadProtectionPolicy(\r\n        backup_management_type='AzureWorkload',\r\n        work_load_type=\"SQLDataBase\",\r\n        settings=Settings(\r\n            issqlcompression=False,\r\n            is_compression=False\r\n        ),\r\n        sub_protection_policy=[\r\n            SubProtectionPolicy(\r\n                policy_type=\"Full\",  # PolicyType.full\r\n                retention_policy=LongTermRetentionPolicy(\r\n                    retention_policy_type=\"LongTermRetentionPolicy\",\r\n                    daily_schedule=DailyRetentionSchedule(\r\n                        retention_times=[\r\n                            datetime(2019, 8, 9, 5, 0, 0)],\r\n                        retention_duration=RetentionDuration(\r\n                            count=180,\r\n                            duration_type=RetentionDurationType.days\r\n                        )\r\n                    )\r\n                ),\r\n                schedule_policy=SimpleSchedulePolicy(\r\n                    schedule_policy_type=\"SimpleSchedulePolicy\",\r\n                    schedule_run_days=None,\r\n                    schedule_run_frequency=ScheduleRunType.daily,\r\n                    schedule_run_times=[\r\n                        datetime(2019, 8, 9, 5, 0, 0)],\r\n                    schedule_weekly_frequency=0\r\n                )\r\n            ),\r\n            SubProtectionPolicy(\r\n                policy_type=\"Log\",\r\n                retention_policy=SimpleRetentionPolicy(\r\n                    retention_policy_type=\"SimpleRetentionPolicy\",\r\n                    retention_duration=RetentionDuration(\r\n                        count=15,\r\n                        duration_type=RetentionDurationType.days\r\n                    )\r\n                ),\r\n                schedule_policy=LogSchedulePolicy(\r\n                    schedule_policy_type=\"LogSchedulePolicy\",\r\n                    schedule_frequency_in_mins=15\r\n                )\r\n            )\r\n        ]\r\n    )\r\n```"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/comments/520006120","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/issues/4047#issuecomment-520006120","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/4047","id":520006120,"node_id":"MDEyOklzc3VlQ29tbWVudDUyMDAwNjEyMA==","user":{"login":"rubendcm9708","id":23243454,"node_id":"MDQ6VXNlcjIzMjQzNDU0","avatar_url":"https://avatars0.githubusercontent.com/u/23243454?v=4","gravatar_id":"","url":"https://api.github.com/users/rubendcm9708","html_url":"https://github.com/rubendcm9708","followers_url":"https://api.github.com/users/rubendcm9708/followers","following_url":"https://api.github.com/users/rubendcm9708/following{/other_user}","gists_url":"https://api.github.com/users/rubendcm9708/gists{/gist_id}","starred_url":"https://api.github.com/users/rubendcm9708/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubendcm9708/subscriptions","organizations_url":"https://api.github.com/users/rubendcm9708/orgs","repos_url":"https://api.github.com/users/rubendcm9708/repos","events_url":"https://api.github.com/users/rubendcm9708/events{/privacy}","received_events_url":"https://api.github.com/users/rubendcm9708/received_events","type":"User","site_admin":false},"created_at":"2019-08-09T17:46:13Z","updated_at":"2019-08-09T17:46:13Z","author_association":"NONE","body":"Having the same issue"}}
other: {"actor":{"display_login":"rubendcm9708"}}