Skip to content

Commit

Permalink
[TimeSeriesInsights] Fix timeSeriesIdPropertyName is not parsed prope…
Browse files Browse the repository at this point in the history
…rly (#1667)
  • Loading branch information
jiasli authored May 9, 2020
1 parent 5db8ce5 commit 01d4407
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 52 deletions.
5 changes: 5 additions & 0 deletions src/timeseriesinsights/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Release History
===============

0.1.1
++++++
* Fix #1657: ``timeSeriesIdPropertyName`` is not parsed properly
* Fix #1658: When creating a new Standard Environment, ``--data-retention-time`` is not properly documented

0.1.0
++++++
* Initial release.
2 changes: 1 addition & 1 deletion src/timeseriesinsights/azext_timeseriesinsights/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
short-summary: Create or update a standard environment in the specified subscription and resource group.
examples:
- name: Create a standard environment
text: az timeseriesinsights environment standard create -g {rg} -n {env} --location westus --sku-name S1 --sku-capacity 1 --data-retention-time P31D --partition-key DeviceId1 --storage-limit-exceeded-behavior PauseIngress
text: az timeseriesinsights environment standard create -g {rg} -n {env} --location westus --sku-name S1 --sku-capacity 1 --data-retention-time 31 --partition-key DeviceId1 --storage-limit-exceeded-behavior PauseIngress
"""

helps['timeseriesinsights environment standard update'] = """
Expand Down
2 changes: 1 addition & 1 deletion src/timeseriesinsights/azext_timeseriesinsights/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def create_timeseriesinsights_environment_longterm(cmd, client,
location=location,
tags=tags,
sku=Sku(name=sku_name, capacity=sku_capacity),
time_series_id_properties=[TimeSeriesIdProperty(name=time_series_id_properties, type="String")],
time_series_id_properties=[TimeSeriesIdProperty(name=id_property, type="String") for id_property in time_series_id_properties],
storage_configuration=LongTermStorageConfigurationInput(account_name=storage_account_name, management_key=storage_management_key),
data_retention=data_retention)
return sdk_no_wait(no_wait, client.create_or_update, resource_group_name=resource_group_name, environment_name=environment_name, parameters=parameters)
Expand Down
Loading

0 comments on commit 01d4407

Please sign in to comment.