Skip to content

Commit

Permalink
fix: Azure start should use start() and not restart() function
Browse files Browse the repository at this point in the history
otherwise Azure API fails as restarting a stopped instance is not allowed...
  • Loading branch information
PierreBeucher committed Nov 30, 2024
1 parent 129254c commit 7fc38aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/azure/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class AzureInstanceRunner extends AbstractInstanceRunner {
const vmName = this.getVmName()
const resourceGroupName = this.getResourceGroupName()

await this.client.restartInstance(resourceGroupName, vmName)
await this.client.startInstance(resourceGroupName, vmName)
}

async stop() {
Expand Down

0 comments on commit 7fc38aa

Please sign in to comment.