1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【C#】Aspire経由でAzureのリソースグループが作成されない

Posted at

Aspire と Azure の連携を確認していた際にハマってしまったため共有します。

現象

Azure にリソースグループが存在しない状態で Aspire から Azure のリソースを作成しようとした。

※サブスクリプション ID、リソースグループ名、リソースを作成する場所は対話型構成のプロンプトで指定済み。

原因

Aspire からリソースグループ作成を許可する設定がappsetting.jsonに記載していなかった。

対策

appsetting.jsonに下記を追記。

  "Azure": {
    "AllowResourceGroupCreation": true,
  }

おわりに

公式ページに記載されていたのですがほかの設定項目が対話型構成のプロンプトで設定済みの内容だったため読み飛ばしていました。反省です。。。

この記事が皆様のコーディングライフの助けになれば幸いです。

参考

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?