{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/Moodle/pulls/comments/170326127","pull_request_review_id":99003293,"id":170326127,"diff_hunk":"@@ -0,0 +1,22 @@\n+# Cleanup All Resource\n+\n+To cleanup a Moodle deployment simply delete the Resource Group that\n+contains it. The commands below will iterate over your workspace\n+directory and delete all deployments.\n+\n+## Prerequisites\n+\n+First we need to ensure our [environment variables](./Environment-Variables.md) are correctly configured.\n+\n+## Remove each resource group\n+\n+This command will delete all resources in *all* resource groups. Run\n+with caution.\n+\n+Note, that this command will not fully delete the resource group if\n+you have Azure Backup enabled since the Recovery Services Vault will\n+not be deleted (it's got the backups of you data!).\n+\n+``` bash\n+for filename in $MOODLE_AZURE_WORKSPACE/*; do az group delete --yes --name $(basename $filename) & done","path":"docs/Cleanup.md","position":21,"original_position":21,"commit_id":"a6b872c9e61b12304d9fa5980dfd028d6df03949","original_commit_id":"a6b872c9e61b12304d9fa5980dfd028d6df03949","user":{"login":"rgardler","id":250240,"avatar_url":"https://avatars2.githubusercontent.com/u/250240?v=4","gravatar_id":"","url":"https://api.github.com/users/rgardler","html_url":"https://github.com/rgardler","followers_url":"https://api.github.com/users/rgardler/followers","following_url":"https://api.github.com/users/rgardler/following{/other_user}","gists_url":"https://api.github.com/users/rgardler/gists{/gist_id}","starred_url":"https://api.github.com/users/rgardler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgardler/subscriptions","organizations_url":"https://api.github.com/users/rgardler/orgs","repos_url":"https://api.github.com/users/rgardler/repos","events_url":"https://api.github.com/users/rgardler/events{/privacy}","received_events_url":"https://api.github.com/users/rgardler/received_events","type":"User","site_admin":false},"body":"The '&' spawns separate processes for each of the delete operations because they can be very long running. When used in a single line statement like this it replaces the ';'","created_at":"2018-02-23T18:17:48Z","updated_at":"2018-02-23T18:17:48Z","html_url":"https://github.com/Azure/Moodle/pull/42#discussion_r170326127","pull_request_url":"https://api.github.com/repos/Azure/Moodle/pulls/42","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Azure/Moodle/pulls/comments/170326127"},"html":{"href":"https://github.com/Azure/Moodle/pull/42#discussion_r170326127"},"pull_request":{"href":"https://api.github.com/repos/Azure/Moodle/pulls/42"}},"in_reply_to_id":170324106},"pull_request":{"url":"https://api.github.com/repos/Azure/Moodle/pulls/42","id":171071133,"html_url":"https://github.com/Azure/Moodle/pull/42","diff_url":"https://github.com/Azure/Moodle/pull/42.diff","patch_url":"https://github.com/Azure/Moodle/pull/42.patch","issue_url":"https://api.github.com/repos/Azure/Moodle/issues/42","number":42,"state":"open","locked":false,"title":"Update Simdem compatible documentation. We can now automatically stand up and tear down clusters - got to document the use of SimDem though!","user":{"login":"rgardler","id":250240,"avatar_url":"https://avatars2.githubusercontent.com/u/250240?v=4","gravatar_id":"","url":"https://api.github.com/users/rgardler","html_url":"https://github.com/rgardler","followers_url":"https://api.github.com/users/rgardler/followers","following_url":"https://api.github.com/users/rgardler/following{/other_user}","gists_url":"https://api.github.com/users/rgardler/gists{/gist_id}","starred_url":"https://api.github.com/users/rgardler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgardler/subscriptions","organizations_url":"https://api.github.com/users/rgardler/orgs","repos_url":"https://api.github.com/users/rgardler/repos","events_url":"https://api.github.com/users/rgardler/events{/privacy}","received_events_url":"https://api.github.com/users/rgardler/received_events","type":"User","site_admin":false},"body":null,"created_at":"2018-02-23T17:23:48Z","updated_at":"2018-02-23T18:17:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84120bc664695e92aa31d6d394b62b47f790fe6c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/Moodle/pulls/42/commits","review_comments_url":"https://api.github.com/repos/Azure/Moodle/pulls/42/comments","review_comment_url":"https://api.github.com/repos/Azure/Moodle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/Moodle/issues/42/comments","statuses_url":"https://api.github.com/repos/Azure/Moodle/statuses/a6b872c9e61b12304d9fa5980dfd028d6df03949","head":{"label":"Azure:docs","ref":"docs","sha":"a6b872c9e61b12304d9fa5980dfd028d6df03949","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":118022427,"name":"Moodle","full_name":"Azure/Moodle","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/Moodle","description":"Tooling and guidance on deploying Scalable Moodle Clusters on Azure.","fork":false,"url":"https://api.github.com/repos/Azure/Moodle","forks_url":"https://api.github.com/repos/Azure/Moodle/forks","keys_url":"https://api.github.com/repos/Azure/Moodle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/Moodle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/Moodle/teams","hooks_url":"https://api.github.com/repos/Azure/Moodle/hooks","issue_events_url":"https://api.github.com/repos/Azure/Moodle/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/Moodle/events","assignees_url":"https://api.github.com/repos/Azure/Moodle/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/Moodle/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/Moodle/tags","blobs_url":"https://api.github.com/repos/Azure/Moodle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/Moodle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/Moodle/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/Moodle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/Moodle/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/Moodle/languages","stargazers_url":"https://api.github.com/repos/Azure/Moodle/stargazers","contributors_url":"https://api.github.com/repos/Azure/Moodle/contributors","subscribers_url":"https://api.github.com/repos/Azure/Moodle/subscribers","subscription_url":"https://api.github.com/repos/Azure/Moodle/subscription","commits_url":"https://api.github.com/repos/Azure/Moodle/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/Moodle/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/Moodle/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/Moodle/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/Moodle/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/Moodle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/Moodle/merges","archive_url":"https://api.github.com/repos/Azure/Moodle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/Moodle/downloads","issues_url":"https://api.github.com/repos/Azure/Moodle/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/Moodle/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/Moodle/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/Moodle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/Moodle/labels{/name}","releases_url":"https://api.github.com/repos/Azure/Moodle/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/Moodle/deployments","created_at":"2018-01-18T18:36:41Z","updated_at":"2018-02-18T03:23:36Z","pushed_at":"2018-02-23T18:05:29Z","git_url":"git://github.com/Azure/Moodle.git","ssh_url":"git@github.com:Azure/Moodle.git","clone_url":"https://github.com/Azure/Moodle.git","svn_url":"https://github.com/Azure/Moodle","homepage":null,"size":598,"stargazers_count":7,"watchers_count":7,"language":"Shell","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":16,"license":null,"forks":3,"open_issues":16,"watchers":7,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"acf795eb05f63ae4ae8818436af289b99e7fa014","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":118022427,"name":"Moodle","full_name":"Azure/Moodle","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/Moodle","description":"Tooling and guidance on deploying Scalable Moodle Clusters on Azure.","fork":false,"url":"https://api.github.com/repos/Azure/Moodle","forks_url":"https://api.github.com/repos/Azure/Moodle/forks","keys_url":"https://api.github.com/repos/Azure/Moodle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/Moodle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/Moodle/teams","hooks_url":"https://api.github.com/repos/Azure/Moodle/hooks","issue_events_url":"https://api.github.com/repos/Azure/Moodle/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/Moodle/events","assignees_url":"https://api.github.com/repos/Azure/Moodle/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/Moodle/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/Moodle/tags","blobs_url":"https://api.github.com/repos/Azure/Moodle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/Moodle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/Moodle/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/Moodle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/Moodle/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/Moodle/languages","stargazers_url":"https://api.github.com/repos/Azure/Moodle/stargazers","contributors_url":"https://api.github.com/repos/Azure/Moodle/contributors","subscribers_url":"https://api.github.com/repos/Azure/Moodle/subscribers","subscription_url":"https://api.github.com/repos/Azure/Moodle/subscription","commits_url":"https://api.github.com/repos/Azure/Moodle/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/Moodle/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/Moodle/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/Moodle/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/Moodle/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/Moodle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/Moodle/merges","archive_url":"https://api.github.com/repos/Azure/Moodle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/Moodle/downloads","issues_url":"https://api.github.com/repos/Azure/Moodle/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/Moodle/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/Moodle/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/Moodle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/Moodle/labels{/name}","releases_url":"https://api.github.com/repos/Azure/Moodle/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/Moodle/deployments","created_at":"2018-01-18T18:36:41Z","updated_at":"2018-02-18T03:23:36Z","pushed_at":"2018-02-23T18:05:29Z","git_url":"git://github.com/Azure/Moodle.git","ssh_url":"git@github.com:Azure/Moodle.git","clone_url":"https://github.com/Azure/Moodle.git","svn_url":"https://github.com/Azure/Moodle","homepage":null,"size":598,"stargazers_count":7,"watchers_count":7,"language":"Shell","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":16,"license":null,"forks":3,"open_issues":16,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/Moodle/pulls/42"},"html":{"href":"https://github.com/Azure/Moodle/pull/42"},"issue":{"href":"https://api.github.com/repos/Azure/Moodle/issues/42"},"comments":{"href":"https://api.github.com/repos/Azure/Moodle/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/Moodle/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/Moodle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/Moodle/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/Moodle/statuses/a6b872c9e61b12304d9fa5980dfd028d6df03949"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"rgardler"}}