Skip to content

Commit fa73bdc

Browse files
committed
Removing redundant section.
1 parent e1aa829 commit fa73bdc

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

articles/virtual-desktop/configure-host-pool-personal-desktop-assignment-type.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -190,24 +190,6 @@ Invoke-AzRestMethod @parameters
190190
>[!NOTE]
191191
>You can also set the friendly name by using a [REST API](/rest/api/desktopvirtualization/session-hosts/update?tabs=HTTP).
192192
193-
## Assign the session host friendly name
194-
195-
To assign the session host friendly name, run this command in PowerShell:
196-
197-
```powershell
198-
#Set the friendly name (Change <myFriendlyName>)
199-
$setNameParams = @{
200-
Path = "/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.DesktopVirtualization/hostPools/$hostPoolName/sessionHosts/$($sessionHostName)?api-version=2022-02-10-preview"
201-
Payload = @{
202-
properties = @{
203-
friendlyName = 'myFriendlyName'
204-
}
205-
} | ConvertTo-Json
206-
Method = 'PATCH'
207-
}
208-
Invoke-AzRestMethod @setNameParams
209-
```
210-
211193
### Get the session host friendly name
212194

213195
To get the session host friendly name, run this command in PowerShell

0 commit comments

Comments
 (0)