Troubleshoot common issues with Start/Stop VMs (preview)
This article provides information on troubleshooting and resolving issues that may occur while attempting to install and configure Start/Stop VMs (preview). For general information, see Start/Stop VMs overview.
General validation and troubleshooting
This section covers how to troubleshoot general issues with the schedules scenarios and help identify the root cause.
You can start by reviewing the Azure shared dashboard. The Azure shared dashboard deployed as part of Start/Stop VMs v2 (preview) is a quick and easy way to verify the status of each operation that's performed on your VMs. Refer to the Recently attempted actions on VMs tile to see all the recent operations executed on your VMs. There is some latency, around five minutes, for data to show up in the report as it pulls data from the Application Insights resource.
Depending on which Logic Apps you have enabled to support your start/stop scenario, you can review its run history to help identify why the scheduled startup/shutdown scenario did not complete successfully for one or more target VMs. To learn how to review this in detail, see Logic Apps run history.
You can review the details for the operations performed on the VMs that are written to the table requestsstoretable in the Azure storage account used for Start/Stop VMs v2 (preview). Perform the following steps to view those records.
- Navigate to the storage account in the Azure portal and in the account select Storage Explorer (preview) from the left-hand pane.
- Select TABLES and then select requeststoretable.
- Each record in the table represents the start/stop action performed against an Azure VM based on the target scope defined in the logic app scenario. You can filter the results by any one of the record properties (for example, TIMESTAMP, ACTION, or TARGETTOPLEVELRESOURCENAME).
You can review the latest invocation details for any of the Azure Functions responsible for the VM start and stop execution. First let's review the execution flow.
The execution flow for both Scheduled and Sequenced scenario is controlled by the same function. The payload schema is what determines which scenario is performed. For the Scheduled scenario, the execution flow is - Scheduled HTTP > VirtualMachineRequestOrchestrator Queue > VirtualMachineRequestExecutor Queue.
From the logic app, the Scheduled HTTP function is invoked with Payload schema. Once the Scheduled HTTP function receives the request, it sends the information to the Orchestrator queue function, which in turn creates several queues for each VM to perform the action.
Perform the following steps to see the invocation details.
- In the Azure portal, navigate to Azure Functions.
- Select the Function app for Start/Stop VMs v2 (preview) from the list.
- Select Functions from the left-hand pane.
- In the list, you see several functions associated for each scenario. Select the Scheduled HTTP function.
- Select Monitor from the left-hand pane.
- Select the latest execution trace to see the invocation details and the message section for detailed logging.
- Repeat the same steps for each function described as part of reviewing the execution flow earlier.
To learn more about monitoring Azure Functions, see Analyze Azure Functions telemetry in Application Insights.
Learn more about monitoring Azure Functions and logic apps:
If you run into problems during deployment, you encounter an issue when using Start/Stop VMs v2 (preview), or if you have a related question, you can submit an issue on GitHub. Filing an Azure support incident from the Azure support site is not available for this preview version.