-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Account] Add new alias, tenant commands #2308
Conversation
If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
|
account |
c.argument('display_name', type=str, help='The friendly name of the subscription.') | ||
c.argument('workload', arg_type=get_enum_type(['Production', 'DevTest']), help='The workload type of the ' | ||
'subscription. It can be either Production or DevTest.') | ||
c.argument('billing_scope', type=str, help='Determines whether subscription is fieldLed, partnerLed or ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the case isn't consistent? from Swagger directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's from swagger. I have updated it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Feng. better to feedback to swagger, really confusing. :)
self.cmd('az account subscription cancel --subscription-id {subscription_id} --yes', | ||
checks=[self.check('subscriptionId', '{subscription_id}')]) | ||
if self.in_recording: | ||
time.sleep(300) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sleep is mocked. if self.in_recording
is not necessary.
Why 300? Is it an asynchronous operation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. it is asynchronous.
Co-authored-by: Feiyue Yu <[email protected]>
az account subscription create
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
azdev style <YOUR_EXT>
locally? (pip install azdev
required)python scripts/ci/test_index.py -q
locally?For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update
src/index.json
automatically.The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify
src/index.json
.