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

[IoT] Deprecated command group 'iot hub job' #11794

Merged
merged 5 commits into from
Jan 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/azure-cli/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Release History
* Fix issue #11658: `az group export` command does not support `--query` and `--output` parameters
* Fix issue #10279: The exit code of `az group deployment validate` is 0 when the verification fails

**IoT**

* Deprecated 'IoT hub Job' commands.

**IoT Central**

* Support app creation/update with the new sku name ST0, ST1, ST2.
Expand Down Expand Up @@ -384,6 +388,7 @@ Release History
* Add --runtime-version property to `az functionapp create`
* az appservice vnet-integration add: Fixed so that subnet delegation is case insensitive and delegating subnets does not overwrite previous data.


**ARM**

* deployment/group deployment validate: Add --handle-extended-json-format parameter to support multiline and comments in json template when deployment.
Expand Down
6 changes: 5 additions & 1 deletion src/azure-cli/azure/cli/command_modules/iot/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
from ._client_factory import iot_pnp_service_factory


JOB_DEPRECATION_INFO = 'IoT Extension (azure-cli-iot-ext) Job commands'


class PolicyUpdateResultTransform(LongRunningOperation): # pylint: disable=too-few-public-methods
def __call__(self, poller):
result = super(PolicyUpdateResultTransform, self).__call__(poller)
Expand Down Expand Up @@ -119,7 +122,8 @@ def load_command_table(self, _): # pylint: disable=too-many-statements
g.custom_command('renew-key', 'iot_hub_policy_key_renew', supports_no_wait=True)

# iot hub job commands
with self.command_group('iot hub job', client_factory=iot_hub_service_factory) as g:
with self.command_group('iot hub job', deprecate_info=self.deprecate(redirect=JOB_DEPRECATION_INFO),
client_factory=iot_hub_service_factory) as g:
g.custom_command('list', 'iot_hub_job_list')
g.custom_command('show', 'iot_hub_job_get')
g.custom_command('cancel', 'iot_hub_job_cancel')
Expand Down