Skip to content

Commit c1e28f5

Browse files
authored
Add Remote Support consent for terms and conditions (#20694)
1 parent c1f3222 commit c1e28f5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/StackHCI/custom/stackhci.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ $ConfiguringCloudManagementMessage = "Configuring Cloud Management agent."
115115
$ConfiguringCloudManagementClusterSvc = "Creating Cloud Management cluster resource."
116116
$StartingCloudManagementMessage = "Starting Cloud Management agent."
117117

118+
$RemoteSupportConsentText = "`r`n`r`nBy approving this request, the Microsoft support organization or the Azure engineering team supporting this feature ('Microsoft Support Engineer') will be given direct access to your device for troubleshooting purposes and/or resolving the technical issue described in the Microsoft support case. `r`n`r`nDuring a remote support session, a Microsoft Support Engineer may need to collect logs. By enabling remote support, you have agreed to a diagnostic logs collection by Microsoft Support Engineer to address a support case You also acknowledge and consent to the upload and retention of those logs in an Azure storage account managed and controlled by Microsoft. These logs may be accessed by Microsoft in the context of a support case and to improve the health of Azure Stack HCI. `r`n`r`nThe data will be used only to troubleshoot failures that are subject to a support ticket, and will not be used for marketing, advertising, or any other commercial purposes without your consent. The data may be retained for up to ninety (90) days and will be handled following our standard privacy practices (https://privacy.microsoft.com/en-US/). Any data previously collected with your consent will not be affected by the revocation of your permission."
119+
118120
$MaskString = "XXXXXXX"
119121
#endregion
120122

@@ -5327,6 +5329,18 @@ function Enable-AzStackHCIRemoteSupport{
53275329
$AgreeToRemoteSupportConsent
53285330
)
53295331

5332+
if ($AgreeToRemoteSupportConsent -ne $true)
5333+
{
5334+
if($PSCmdlet.ShouldContinue($RemoteSupportConsentText, "Remote Support: Terms & Conditions"))
5335+
{
5336+
$AgreeToRemoteSupportConsent = $true
5337+
}
5338+
else
5339+
{
5340+
return
5341+
}
5342+
}
5343+
53305344
if(Assert-IsObservabilityStackPresent){
53315345
Import-Module DiagnosticsInitializer -Verbose -Force
53325346
Enable-RemoteSupport -AccessLevel $AccessLevel -ExpireInMinutes $ExpireInMinutes -SasCredential $SasCredential -AgreeToRemoteSupportConsent:$AgreeToRemoteSupportConsent

0 commit comments

Comments
 (0)