-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Iot Central] az iotcentral deprecated #12681
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
[Iot Central] az iotcentral deprecated #12681
Conversation
|
HI @fengzhou-msft could you pls help to review the PR? thanks. |
|
iotcentral |
|
Please run |
|
@fengzhou-msft During this experience, I had recommended to my team that I feel it's odd that we are putting control plane operations at a 4th level. For example, I read the general guidance docs but we'd like to get some insights from a member of the Azure CLI team. |
@fengzhou-msft I ran azdev style and test locally and pushed the changes but "checks" are still failing for test failures. I ran |
src/azure-cli/azure/cli/command_modules/iotcentral/tests/latest/test_iotcentral_commands.py
Show resolved
Hide resolved
Can you check if you commited the latest recording files after your successful live run? |
…elgadillo/azure-cli into rodelga/iotcentral/deprecate
|
@fengzhou-msft Can we get this merged in. Thank you |
I don't believe there's any deletion. I ran the tests according to the documentation with |
|
@Juliehzl @haroldrandom Can you please take a look at the PR and merge if it's ok. Thank you |
| help='Pricing tier for IoT Central applications. Default value is ST2.') | ||
| c.argument('subdomain', | ||
| help='Subdomain for the IoT Central URL. Each application must have a unique subdomain.') | ||
| c.argument('template', |
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.
Are there allowed values for template?
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, there is. We have an API that allows customers to see the available options.
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.
We do not want to hardcode these values in the Azure CLI
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.
In this way can we put the API in help message? Because for me (a new user), I totally don't know which value is available for template.
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.
Yeah, I can see how that can be confusing. We have an item in our backlog to rewrite the documentation for Swagger and Az CLI. I added some details about the issue of not seeing available templates so we can address it when we have the capacity.
| g.custom_show_command('show', 'iot_central_app_get') | ||
| g.generic_update_command('update', getter_name='iot_central_app_get', | ||
| setter_name='iot_central_app_update', command_type=update_custom_util) | ||
| g.custom_command('delete', 'iot_central_app_delete') |
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 confirmation=True for delete command.
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.
done
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 reverted this change because this will break existing scripts customers are using. This will require them to pass in --yes in order for it proceeds with existing functionality we had before.
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.
Additionally, we really don't want to introduce any new functionality in this PR we just want to migrate existing command module code from iotcentral to iot
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 you add deprecation information for original commands? And because you already give users breaking change, and they need to change the scripts anyway, it should be fine to add one more -y in their scripts.
Please feel free to let me know your concern.
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, the deprecation information for az iotcentral command module is in ~/command_modules/iotcentral/commands.py in this PR. That makes sense about breaking them either way, I added it back thanks.
History Notes
[IoT Central] Deprecate
az iotcentral[IoT Central] Add
az iot centralcommand moduleThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.