Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update cloudshell runner to use azure cloudshell api #124

Merged
merged 3 commits into from
Jun 12, 2018
Merged

Conversation

yungezz
Copy link
Contributor

@yungezz yungezz commented Jun 8, 2018

Summary

update cloudshell runner to use azure cloudshell api. previously there's no api to create cloudshell connection, now cloudshell team release it. update cloudshell runner to use api, which has status.

Issue Type

  • New Feature

@yungezz yungezz requested review from zikalino and yuwzho June 8, 2018 09:05
Copy link

@zikalino zikalino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a few small things i have noticed, but other than that looks good!

@@ -35,287 +29,89 @@ export async function getUserSettings(accessToken: string, armEndpoint: string):
});

if (response.statusCode < 200 || response.statusCode > 299) {
// if (response.body && response.body.error && response.body.error.message) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so why it's not handled in any way?

resourceGroup: storageAccountSettings[3],
storageAccountName: storageAccountSettings[7],
fileShareName: storageProfile.fileShareName,
storageAccountKey,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coma at the end is not necessary

terminal.show();
TelemetryClient.sendEvent('cloudshell', { 'status': CloudShellStatus.Succeeded });

terminal.sendText('ansible-playbook ' + remotePlaybookPath);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, i think this should be updated accordingly to match other pr

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merged

@yungezz yungezz merged commit cda489f into master Jun 12, 2018
@yungezz yungezz deleted the cloudshell-api branch June 12, 2018 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants