LoginSignup
0
0

More than 3 years have passed since last update.

Azure Static Web Appsのアプリケーション構成はAzure Functionsと同一ではないらしい。

Posted at

AzureWebJobsStorage設定が追加できない

Azure Static Web Apps結構お手軽で便利そうなんだが、まだプレビューということもあり、いろんな情報少ない。
特にAPIの方はAzure Functionsと同じノリでいくとデバッグとかで痛い目にあった。

アプリケーション構成(Static Web Apps)

スクリーンショット 2021-04-09 18.00.53.png

このへんからAPIの環境変数が追加できる。
ところがAzure Functionsと同じようにストレージアカウントつけようとすると、「保存」したあとに何故か消える。
いろいろと調べるとこれに行き着いた。↓
https://github.com/Azure/static-web-apps/issues/80
https://github.com/FeedReaderOrg/FeedReader/commit/98bc37bc68bc20f69129358a3a4f7ee86bb02529

「AzureWebJobsStorage」などの文字列はブロックされているらしい。(なぜ?)
なのでStatic Web Appsの場合は「AzureStorage」にするみたい。
(Webからでエラーになってるのかと思いきや、当然CLIでも追加できなかった。)

これのせいでかなり時間使ってしまったんだぜ…

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0