Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

feat: Added feature to specify Azure subcription ID in CLI before deployment #203

Merged
merged 5 commits into from
Jul 17, 2019

Conversation

neerajmandal
Copy link
Contributor

Added feature to specify subscription ID in the CLI which overrides any existing subscriptions ID and deploys the functions to the subscription specified by the user.

sls deploy -i <subscriptionID>

AB#360

Copy link
Contributor

@tbarlow12 tbarlow12 left a comment

Choose a reason for hiding this comment

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

A few comments, also would like to see some unit tests here

@coveralls
Copy link

coveralls commented Jul 12, 2019

Coverage Status

Coverage increased (+0.02%) to 84.19% when pulling 396af86 on t-nemand/subscriptionId into d8cca60 on dev.

@neerajmandal neerajmandal requested review from tbarlow12 and wbreza July 12, 2019 21:19
wbreza
wbreza previously requested changes Jul 12, 2019
Copy link
Contributor

@wbreza wbreza left a comment

Choose a reason for hiding this comment

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

Added a few comments. Overall looks good.

Copy link
Contributor

@tbarlow12 tbarlow12 left a comment

Choose a reason for hiding this comment

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

Looks good, added a few style suggestions

@pjlittle
Copy link
Contributor

looks good - one low hanging question on authResult.subscriptions[0].id -- is authResult and or subscriptions guaranteed or would that potentially get a nullref? If the user bails on an interactive login, is it possible to hit this code path or it is not a possibility?

Nice work on this! 👍

@neerajmandal neerajmandal dismissed wbreza’s stale review July 17, 2019 16:33

Test cases added. It is not recognizing the changes made.

@neerajmandal neerajmandal merged commit 7ceb484 into dev Jul 17, 2019
tbarlow12 pushed a commit that referenced this pull request Sep 13, 2019
…loyment (#203)

* option to specify subscription id from CLI added

* Build issue resolved

* azureBasePlugin issue resolved

* Two test cases added to test subscription ID feature

* Changes made accoridng to feedback
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants