Skip to content

Commit 73fc947

Browse files
Initial commit with docs change for start /wait command
1 parent a74e8d8 commit 73fc947

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Reset access to an Azure Windows VM
3+
description: Learn how to manage administrative users and reset access on Windows VMs by using the VMAccess Windows extension and the Azure CLI.
4+
ms.topic: conceptual
5+
ms.service: virtual-machines
6+
ms.subservice: extensions
7+
ms.author: gabsta
8+
author: GabstaMSFT
9+
ms.collection: windows
10+
ms.date: 11/28/2023
11+
ms.custom: GGAL-freshness822, devx-track-azurecli
12+
---
13+
14+
# VMAccess Extension for Windows
15+
16+
The VMAccess Extension is used to manage administrative users, configure SSH, and check or repair disks on Azure Linux virtual machines. The extension integrates with Azure Resource Manager templates. It can also be invoked using Azure CLI, Azure PowerShell, the Azure portal, and the Azure Virtual Machines REST API.
17+
18+
This article describes how to run the VMAccess Extension from the Azure CLI, Azure PowerShell, and through an Azure Resource Manager template. This article also provides troubleshooting steps for Linux systems.
19+
20+
> [!NOTE]
21+
> If you use the VMAccess extension to reset the password of your VM after you install the Microsoft Entra Login extension, rerun the Microsoft Entra Login extension to re-enable Microsoft Entra Login for your VM.

articles/virtual-machines/vm-applications.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,14 @@ Example remove command:
455455
start /wait %windir%\\system32\\msiexec.exe /x $appname /quiet /forcerestart /log ${appname}_uninstall.log
456456
```
457457

458+
Typically, the `start` command would be called within a batch script. If used with the `/wait` parameter, the calling script will be paused until the called process terminates. Once complete, the batch script would check for the `errorlevel` variable set by the `start` command and exit as follows:
459+
460+
```batch
461+
start /wait %windir%\\system32\\msiexec.exe /i myapp /quiet /forcerestart /log myapp_install.log
462+
if %errorlevel% neq 0 exit /b %errorlevel%
463+
...
464+
```
465+
458466
### Zipped files
459467

460468
For .zip or other zipped files, rename and unzip the contents of the application package to the desired destination.

0 commit comments

Comments
 (0)