くにまつのブログ

くにまつのブログ 

Azure でアプリを動かす

Pythonでやってみたい!

docs.microsoft.com

az webapp up --sku F1 -n <app-name>

(venv) kuni@GTune:~/pythontest$ az webapp up --sku F1 -n test-app -l japaneast ...> The command failed with an unexpected error. Here is the traceback:

No module named 'decorator' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/fabric/connection.py", line 5, in from invoke.vendor.six import StringIO ModuleNotFoundError: No module named 'invoke.vendor.six'

During handling of the above exception, another exception occurred: めっちゃ怒られてる!!

github.com これみて azure をアンインストール インストールしなおしで改善!

{ "URL": "http://ほげほげ.azurewebsites.net", "appserviceplan": "hoge_asp_Linux_centralus_0", "location": "centralus", "name": "hoge", "os": "Linux", "resourcegroup": "kunim_rg_Linux_centralus", "runtime_version": "python|3.7", "runtime_version_detected": "-", "sku": "FREE", "src_path": "//home//ほげほげ//pythontest" }