Azure-cli: [Monitor] Autoscale-settings "autoscale-parameters-template.json" file not included with PIP install

Created on 13 May 2017  路  2Comments  路  Source: Azure/azure-cli

After doing a PIP install, if I run az monitor autoscale-settings get-parameters-template I get the following error:

File C:\Users\trpresco\Documents\github\env3\lib\site-packages\azure\cli\command_modules\monitor\autoscale-parameters-template.json not found.

It seems like the JSON file that is embedded in the command module for a dev_setup does not get included in the final package.


Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: pip

CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here: azure-cli (2.0.6)

acr (2.0.4)
acs (2.0.6)
appservice (0.1.6)
batch (2.0.4)
cdn (0.0.2)
cloud (2.0.2)
cognitiveservices (0.1.2)
command-modules-nspkg (2.0.0)
component (2.0.4)
configure (2.0.6)
core (2.0.6)
cosmosdb (0.1.6)
dla (0.0.6)
dls (0.0.6)
feedback (2.0.2)
find (0.2.2)
interactive (0.3.1)
iot (0.1.5)
keyvault (2.0.4)
lab (0.0.4)
monitor (0.0.4)
network (2.0.6)
nspkg (3.0.0)
profile (2.0.4)
rdbms (0.0.1)
redis (0.2.3)
resource (2.0.6)
role (2.0.4)
sf (1.0.1)
sql (2.0.3)
storage (2.0.6)
vm (2.0.6)

OS Version: What OS and version are you using?
Answer here: Win10CU

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: cmd.exe

Monitor Packaging bug

Most helpful comment

This is a bug in the setup.py of the module. The file should be included in the setup.py file of the module.
https://docs.python.org/2/distutils/setupscript.html#installing-package-data

All 2 comments

This is a bug in the setup.py of the module. The file should be included in the setup.py file of the module.
https://docs.python.org/2/distutils/setupscript.html#installing-package-data

Thanks @tjprescott for finding this & @derekbekoe for point to the solution. Let me fix this soon

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kannaj picture Kannaj  路  3Comments

derekperkins picture derekperkins  路  3Comments

PrHar picture PrHar  路  3Comments

rlewkowicz picture rlewkowicz  路  3Comments

dhermans picture dhermans  路  3Comments