public async getUpgradePlanToLatest()

in vscode-extension/src/powershell.ts [28:39]


    public async getUpgradePlanToLatest(filePath: string, azureRmVersion: string): Promise<string> {
        if (this.powershell.invocationStateInfo == "Running") {
            //the latter cancels the former powershell process
            await this.restart();
        }

        const command = `New-AzUpgradeModulePlan -FilePath "${filePath}" -FromAzureRmVersion "${azureRmVersion}" -ToAzVersion "latest" | ConvertTo-Json`;
        this.powershell.addCommand(command);
        const planResult = await this.powershell.invoke();

        return planResult;
    }