Skip to content

Commit aa95845

Browse files
committed
More fixes
1 parent d463cb9 commit aa95845

File tree

1 file changed

+7
-32
lines changed

1 file changed

+7
-32
lines changed

azure-stack/asdk/asdk-telemetry.md

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ description: Learn how to configure Azure Stack telemetry settings using PowerSh
44
author: sethmanheim
55

66
ms.topic: article
7-
ms.date: 02/12/2019
7+
ms.date: 09/05/2024
88
ms.author: sethm
9-
ms.reviewer: misainat
109
ms.lastreviewed: 10/15/2019
1110

1211
# Intent: As an ASDK user, I want to learn about Azure Stack telemetry, so I can learn how use it, leverage it, and manage it.
@@ -101,39 +100,15 @@ Turning off Windows and Azure Stack telemetry disables SQL telemetry. For additi
101100
### Enable or disable telemetry after deployment
102101

103102
To enable or disable telemetry after deployment, you need to have access to the Privileged End Point (PEP) which is exposed on the ERCS VMs.
104-
1. To Enable: `Set-Telemetry -Enable`
105-
2. To Disable: `Set-Telemetry -Disable`
103+
104+
1. To Enable: `Set-Telemetry -Enable`
105+
1. To Disable: `Set-Telemetry -Disable`
106106

107107
PARAMETER Detail:
108108
> .PARAMETER Enable - Turn On telemetry data upload
109-
>
109+
>
110110
> .PARAMETER Disable - Turn Off telemetry data upload
111111
112-
**Script to enable telemetry:**
113-
```powershell
114-
$ip = "<IP ADDRESS OF THE PEP VM>" # You can also use the machine name instead of IP here.
115-
$pwd= ConvertTo-SecureString "<CLOUD ADMIN PASSWORD>" -AsPlainText -Force
116-
$cred = New-Object System.Management.Automation.PSCredential ("<DOMAIN NAME>\CloudAdmin", $pwd)
117-
$psSession = New-PSSession -ComputerName $ip -ConfigurationName PrivilegedEndpoint -Credential $cred -SessionOption (New-PSSessionOption -Culture en-US -UICulture en-US)
118-
Invoke-Command -Session $psSession {Set-Telemetry -Enable}
119-
if($psSession)
120-
{
121-
Remove-PSSession $psSession
122-
}
123-
```
124-
125-
**Script to disable telemetry:**
126-
```powershell
127-
$ip = "<IP ADDRESS OF THE PEP VM>" # You can also use the machine name instead of IP here.
128-
$pwd= ConvertTo-SecureString "<CLOUD ADMIN PASSWORD>" -AsPlainText -Force
129-
$cred = New-Object System.Management.Automation.PSCredential ("<DOMAIN NAME>\CloudAdmin", $pwd)
130-
$psSession = New-PSSession -ComputerName $ip -ConfigurationName PrivilegedEndpoint -Credential $cred -SessionOption (New-PSSessionOption -Culture en-US -UICulture en-US)
131-
Invoke-Command -Session $psSession {Set-Telemetry -Disable}
132-
if($psSession)
133-
{
134-
Remove-PSSession $psSession
135-
}
136-
```
137-
138112
## Next steps
139-
[Start and stop the ASDK](asdk-start-stop.md)
113+
114+
[Start and stop the ASDK](asdk-start-stop.md)

0 commit comments

Comments
 (0)