-
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
SCVMM Extension for Public Preview #4631
Conversation
2a6cbe6
to
daf85b8
Compare
SCVMM |
Hi @kairu-ms , the build is failing with this error:
Is it some issue with the PR?
|
I understood the issue. It was with this line: In my local environment |
@kairu-ms , we are targeting to publish the az cli by end of April, let us know if there is any feedback so that we can incorporate. |
g.custom_command('connect', 'connect_vmmserver', supports_no_wait=True) | ||
g.custom_command('update', 'update_vmmserver', supports_no_wait=True) | ||
g.custom_command('delete', 'delete_vmmserver', supports_no_wait=True) |
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.
Please add "wait" commands for this command group. For example:
g.wait_command('wait') |
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.
Have added wait command everywhere. I had to change the scvmm vm-template wait
command to custom_wait_command
, because --virtual-machine-template-name
parameter was exceeding the max length of parameter (azdev linter
was failing). Any suggestions if we could rename the parameter in the wait command without using custom wait?
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.
Hi @nascarsayan, you can suppress the max length of parameter linter validation by adding a linter_exclusions.yml file. For example:
azure-cli-extensions/src/datafactory/linter_exclusions.yml
Lines 1 to 5 in 6bb827f
datafactory get-git-hub-access-token: | |
parameters: | |
git_hub_access_token_base_url: | |
rule_exclusions: | |
- option_length_too_long |
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.
Hi @nascarsayan, another way is that you can use options_list
property of argument to provide a short name instead of --virtual-machine-template-name
, for example:
c.argument('factory_vsts_configuration', options_list=['--vsts-config', '--factory-vsts-configuration'], | |
action=AddFactoryVstsConfiguration, nargs='+', help='Factory\'s VSTS repo information.', | |
arg_group='RepoConfiguration') |
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.
Hi @kairu-ms, I've used options_list
to use a shorter name for the param. Thanks for the references.
One question: We don't have a wait
on a particular disk/nic of the VM, is that fine? The wait we are providing for scvmm vm disk
/ scvmm vm nic
is the same as for scvmm vm
.
These command groups use VirtualMachinesOperations
under the hood, i.e., there's no separate client_factory
for them.
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.
I see, that’s ok
Please ping me when above comments resolved. I will help you to release extension on time. |
…ific ones, min-max azcli version
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
.