{"action":"created","comment":{"url":"https://api.github.com/repos/teradici/deploy/pulls/comments/174246874","pull_request_review_id":103568068,"id":174246874,"diff_hunk":"@@ -2709,6 +2661,155 @@ function Write-Host-Warning() {\n     Write-Host (\"`n$message\") -ForegroundColor Red\n }\n \n+# Prompt update Radius Settings in the Keyvault\n+function Set-RadiusSettings() {\n+    Param(\n+        [string]$VaultName\n+    )\n+    # Check current MFA settings\n+    $isRadiusMfaEnabled = Get-AzureKeyVaultSecret `\n+        -VaultName $VaultName `\n+        -Name \"enableRadiusMfa\" `\n+        -ErrorAction stop\n+    $isRadiusMfaEnabled = ([bool]$isRadiusMfaEnabled.SecretValueText)\n+\n+    $currentRadiusHost = Get-AzureKeyVaultSecret `\n+        -VaultName $VaultName `\n+        -Name \"radiusServerHost\" `\n+        -ErrorAction stop\n+    $currentRadiusHost = ([string]$currentRadiusHost.SecretValueText)\n+\n+    $currentRadiusPort = Get-AzureKeyVaultSecret `\n+        -VaultName $VaultName `\n+        -Name \"radiusServerPort\" `\n+        -ErrorAction stop\n+    $currentRadiusPort = ([string]$currentRadiusPort.SecretValueText)\n+\n+    $currentRadiusSecret = Get-AzureKeyVaultSecret `\n+        -VaultName $VaultName `\n+        -Name \"radiusSharedSecret\" `\n+        -ErrorAction stop\n+    $currentRadiusSecret = ([string]$currentRadiusSecret.SecretValueText)\n+\n+    # Prompt for RADIUS configuration if RADIUS has not been already explicitly been disabled\n+    if ($ignorePrompts -and ($enableRadiusMfa -eq $null)) {\n+        $enableRadiusMfa = $isRadiusMfaEnabled\n+    }\n+    if ($enableRadiusMfa -eq $null) {\n+        $currentRadiusSetting = \"disabled\"\n+        if ($isRadiusMfaEnabled) {\n+            $currentRadiusSetting = \"enabled\"\n+        }\n+        $changeRadiusSettings = (confirmDialog ([String]::Format(\"Radius Multi-Factor Authentication is currently {0}. Do you want to change Multi-Factor Authentication settings?\", $currentRadiusSetting))) -eq 'y'\n+    } else {\n+        # Check if any settings are different\n+        $changeRadiusSettings = ($enableRadiusMfa -notmatch $isRadiusMfaEnabled) -or `\n+                                ($radiusServerHost -and ($radiusServerHost -notmatch $currentRadiusHost)) -or `\n+                                ($radiusServerPort -and ($radiusServerPort -notmatch $currentRadiusPort)) -or `\n+                                ($radiusSharedSecret)","path":"Deploy-CAM.ps1","position":182,"original_position":182,"commit_id":"8e6761321d949e368f679a112896e2beaa0046d1","original_commit_id":"8e6761321d949e368f679a112896e2beaa0046d1","user":{"login":"bill-dall","id":1675974,"avatar_url":"https://avatars2.githubusercontent.com/u/1675974?v=4","gravatar_id":"","url":"https://api.github.com/users/bill-dall","html_url":"https://github.com/bill-dall","followers_url":"https://api.github.com/users/bill-dall/followers","following_url":"https://api.github.com/users/bill-dall/following{/other_user}","gists_url":"https://api.github.com/users/bill-dall/gists{/gist_id}","starred_url":"https://api.github.com/users/bill-dall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bill-dall/subscriptions","organizations_url":"https://api.github.com/users/bill-dall/orgs","repos_url":"https://api.github.com/users/bill-dall/repos","events_url":"https://api.github.com/users/bill-dall/events{/privacy}","received_events_url":"https://api.github.com/users/bill-dall/received_events","type":"User","site_admin":false},"body":"I see. That makes more sense. I can re-review thinking more about 'when it's set or not.'","created_at":"2018-03-13T18:53:43Z","updated_at":"2018-03-13T18:53:43Z","html_url":"https://github.com/teradici/deploy/pull/119#discussion_r174246874","pull_request_url":"https://api.github.com/repos/teradici/deploy/pulls/119","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/teradici/deploy/pulls/comments/174246874"},"html":{"href":"https://github.com/teradici/deploy/pull/119#discussion_r174246874"},"pull_request":{"href":"https://api.github.com/repos/teradici/deploy/pulls/119"}},"in_reply_to_id":174194478},"pull_request":{"url":"https://api.github.com/repos/teradici/deploy/pulls/119","id":174547545,"html_url":"https://github.com/teradici/deploy/pull/119","diff_url":"https://github.com/teradici/deploy/pull/119.diff","patch_url":"https://github.com/teradici/deploy/pull/119.patch","issue_url":"https://api.github.com/repos/teradici/deploy/issues/119","number":119,"state":"open","locked":false,"title":"Internal network","user":{"login":"cptera","id":25852542,"avatar_url":"https://avatars2.githubusercontent.com/u/25852542?v=4","gravatar_id":"","url":"https://api.github.com/users/cptera","html_url":"https://github.com/cptera","followers_url":"https://api.github.com/users/cptera/followers","following_url":"https://api.github.com/users/cptera/following{/other_user}","gists_url":"https://api.github.com/users/cptera/gists{/gist_id}","starred_url":"https://api.github.com/users/cptera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cptera/subscriptions","organizations_url":"https://api.github.com/users/cptera/orgs","repos_url":"https://api.github.com/users/cptera/repos","events_url":"https://api.github.com/users/cptera/events{/privacy}","received_events_url":"https://api.github.com/users/cptera/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-13T03:12:13Z","updated_at":"2018-03-13T18:53:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/teradici/deploy/pulls/119/commits","review_comments_url":"https://api.github.com/repos/teradici/deploy/pulls/119/comments","review_comment_url":"https://api.github.com/repos/teradici/deploy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teradici/deploy/issues/119/comments","statuses_url":"https://api.github.com/repos/teradici/deploy/statuses/8e6761321d949e368f679a112896e2beaa0046d1","head":{"label":"teradici:internal-network","ref":"internal-network","sha":"8e6761321d949e368f679a112896e2beaa0046d1","user":{"login":"teradici","id":10511613,"avatar_url":"https://avatars1.githubusercontent.com/u/10511613?v=4","gravatar_id":"","url":"https://api.github.com/users/teradici","html_url":"https://github.com/teradici","followers_url":"https://api.github.com/users/teradici/followers","following_url":"https://api.github.com/users/teradici/following{/other_user}","gists_url":"https://api.github.com/users/teradici/gists{/gist_id}","starred_url":"https://api.github.com/users/teradici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teradici/subscriptions","organizations_url":"https://api.github.com/users/teradici/orgs","repos_url":"https://api.github.com/users/teradici/repos","events_url":"https://api.github.com/users/teradici/events{/privacy}","received_events_url":"https://api.github.com/users/teradici/received_events","type":"Organization","site_admin":false},"repo":{"id":76152835,"name":"deploy","full_name":"teradici/deploy","owner":{"login":"teradici","id":10511613,"avatar_url":"https://avatars1.githubusercontent.com/u/10511613?v=4","gravatar_id":"","url":"https://api.github.com/users/teradici","html_url":"https://github.com/teradici","followers_url":"https://api.github.com/users/teradici/followers","following_url":"https://api.github.com/users/teradici/following{/other_user}","gists_url":"https://api.github.com/users/teradici/gists{/gist_id}","starred_url":"https://api.github.com/users/teradici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teradici/subscriptions","organizations_url":"https://api.github.com/users/teradici/orgs","repos_url":"https://api.github.com/users/teradici/repos","events_url":"https://api.github.com/users/teradici/events{/privacy}","received_events_url":"https://api.github.com/users/teradici/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teradici/deploy","description":"Teradici Cloud Access Manager","fork":false,"url":"https://api.github.com/repos/teradici/deploy","forks_url":"https://api.github.com/repos/teradici/deploy/forks","keys_url":"https://api.github.com/repos/teradici/deploy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teradici/deploy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teradici/deploy/teams","hooks_url":"https://api.github.com/repos/teradici/deploy/hooks","issue_events_url":"https://api.github.com/repos/teradici/deploy/issues/events{/number}","events_url":"https://api.github.com/repos/teradici/deploy/events","assignees_url":"https://api.github.com/repos/teradici/deploy/assignees{/user}","branches_url":"https://api.github.com/repos/teradici/deploy/branches{/branch}","tags_url":"https://api.github.com/repos/teradici/deploy/tags","blobs_url":"https://api.github.com/repos/teradici/deploy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teradici/deploy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teradici/deploy/git/refs{/sha}","trees_url":"https://api.github.com/repos/teradici/deploy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teradici/deploy/statuses/{sha}","languages_url":"https://api.github.com/repos/teradici/deploy/languages","stargazers_url":"https://api.github.com/repos/teradici/deploy/stargazers","contributors_url":"https://api.github.com/repos/teradici/deploy/contributors","subscribers_url":"https://api.github.com/repos/teradici/deploy/subscribers","subscription_url":"https://api.github.com/repos/teradici/deploy/subscription","commits_url":"https://api.github.com/repos/teradici/deploy/commits{/sha}","git_commits_url":"https://api.github.com/repos/teradici/deploy/git/commits{/sha}","comments_url":"https://api.github.com/repos/teradici/deploy/comments{/number}","issue_comment_url":"https://api.github.com/repos/teradici/deploy/issues/comments{/number}","contents_url":"https://api.github.com/repos/teradici/deploy/contents/{+path}","compare_url":"https://api.github.com/repos/teradici/deploy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teradici/deploy/merges","archive_url":"https://api.github.com/repos/teradici/deploy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teradici/deploy/downloads","issues_url":"https://api.github.com/repos/teradici/deploy/issues{/number}","pulls_url":"https://api.github.com/repos/teradici/deploy/pulls{/number}","milestones_url":"https://api.github.com/repos/teradici/deploy/milestones{/number}","notifications_url":"https://api.github.com/repos/teradici/deploy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teradici/deploy/labels{/name}","releases_url":"https://api.github.com/repos/teradici/deploy/releases{/id}","deployments_url":"https://api.github.com/repos/teradici/deploy/deployments","created_at":"2016-12-11T03:52:19Z","updated_at":"2018-03-01T16:03:24Z","pushed_at":"2018-03-13T03:12:13Z","git_url":"git://github.com/teradici/deploy.git","ssh_url":"git@github.com:teradici/deploy.git","clone_url":"https://github.com/teradici/deploy.git","svn_url":"https://github.com/teradici/deploy","homepage":"https://www.teradici.com/products/cloud-access/cloud-access-manager","size":8443,"stargazers_count":1,"watchers_count":1,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":5,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"teradici:master","ref":"master","sha":"236064f60ae3b11e07a49c3cf39de259a7beaced","user":{"login":"teradici","id":10511613,"avatar_url":"https://avatars1.githubusercontent.com/u/10511613?v=4","gravatar_id":"","url":"https://api.github.com/users/teradici","html_url":"https://github.com/teradici","followers_url":"https://api.github.com/users/teradici/followers","following_url":"https://api.github.com/users/teradici/following{/other_user}","gists_url":"https://api.github.com/users/teradici/gists{/gist_id}","starred_url":"https://api.github.com/users/teradici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teradici/subscriptions","organizations_url":"https://api.github.com/users/teradici/orgs","repos_url":"https://api.github.com/users/teradici/repos","events_url":"https://api.github.com/users/teradici/events{/privacy}","received_events_url":"https://api.github.com/users/teradici/received_events","type":"Organization","site_admin":false},"repo":{"id":76152835,"name":"deploy","full_name":"teradici/deploy","owner":{"login":"teradici","id":10511613,"avatar_url":"https://avatars1.githubusercontent.com/u/10511613?v=4","gravatar_id":"","url":"https://api.github.com/users/teradici","html_url":"https://github.com/teradici","followers_url":"https://api.github.com/users/teradici/followers","following_url":"https://api.github.com/users/teradici/following{/other_user}","gists_url":"https://api.github.com/users/teradici/gists{/gist_id}","starred_url":"https://api.github.com/users/teradici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teradici/subscriptions","organizations_url":"https://api.github.com/users/teradici/orgs","repos_url":"https://api.github.com/users/teradici/repos","events_url":"https://api.github.com/users/teradici/events{/privacy}","received_events_url":"https://api.github.com/users/teradici/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teradici/deploy","description":"Teradici Cloud Access Manager","fork":false,"url":"https://api.github.com/repos/teradici/deploy","forks_url":"https://api.github.com/repos/teradici/deploy/forks","keys_url":"https://api.github.com/repos/teradici/deploy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teradici/deploy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teradici/deploy/teams","hooks_url":"https://api.github.com/repos/teradici/deploy/hooks","issue_events_url":"https://api.github.com/repos/teradici/deploy/issues/events{/number}","events_url":"https://api.github.com/repos/teradici/deploy/events","assignees_url":"https://api.github.com/repos/teradici/deploy/assignees{/user}","branches_url":"https://api.github.com/repos/teradici/deploy/branches{/branch}","tags_url":"https://api.github.com/repos/teradici/deploy/tags","blobs_url":"https://api.github.com/repos/teradici/deploy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teradici/deploy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teradici/deploy/git/refs{/sha}","trees_url":"https://api.github.com/repos/teradici/deploy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teradici/deploy/statuses/{sha}","languages_url":"https://api.github.com/repos/teradici/deploy/languages","stargazers_url":"https://api.github.com/repos/teradici/deploy/stargazers","contributors_url":"https://api.github.com/repos/teradici/deploy/contributors","subscribers_url":"https://api.github.com/repos/teradici/deploy/subscribers","subscription_url":"https://api.github.com/repos/teradici/deploy/subscription","commits_url":"https://api.github.com/repos/teradici/deploy/commits{/sha}","git_commits_url":"https://api.github.com/repos/teradici/deploy/git/commits{/sha}","comments_url":"https://api.github.com/repos/teradici/deploy/comments{/number}","issue_comment_url":"https://api.github.com/repos/teradici/deploy/issues/comments{/number}","contents_url":"https://api.github.com/repos/teradici/deploy/contents/{+path}","compare_url":"https://api.github.com/repos/teradici/deploy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teradici/deploy/merges","archive_url":"https://api.github.com/repos/teradici/deploy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teradici/deploy/downloads","issues_url":"https://api.github.com/repos/teradici/deploy/issues{/number}","pulls_url":"https://api.github.com/repos/teradici/deploy/pulls{/number}","milestones_url":"https://api.github.com/repos/teradici/deploy/milestones{/number}","notifications_url":"https://api.github.com/repos/teradici/deploy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teradici/deploy/labels{/name}","releases_url":"https://api.github.com/repos/teradici/deploy/releases{/id}","deployments_url":"https://api.github.com/repos/teradici/deploy/deployments","created_at":"2016-12-11T03:52:19Z","updated_at":"2018-03-01T16:03:24Z","pushed_at":"2018-03-13T03:12:13Z","git_url":"git://github.com/teradici/deploy.git","ssh_url":"git@github.com:teradici/deploy.git","clone_url":"https://github.com/teradici/deploy.git","svn_url":"https://github.com/teradici/deploy","homepage":"https://www.teradici.com/products/cloud-access/cloud-access-manager","size":8443,"stargazers_count":1,"watchers_count":1,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":5,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/teradici/deploy/pulls/119"},"html":{"href":"https://github.com/teradici/deploy/pull/119"},"issue":{"href":"https://api.github.com/repos/teradici/deploy/issues/119"},"comments":{"href":"https://api.github.com/repos/teradici/deploy/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/teradici/deploy/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/teradici/deploy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teradici/deploy/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/teradici/deploy/statuses/8e6761321d949e368f679a112896e2beaa0046d1"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"bill-dall"}}