Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

can't retrieve function apps

オープン
#72 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@bc0la がすでに取り組んでいます。

2025年2月12日 から。

  • #114 @bc0la による — オープン

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
57/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
azure, go
領域
cloud

調査の方向性

Start in cmd/list-function-apps.go at line 100 and compare the Function App kind returned by the Azure Management API with the current match condition. Verify that list-function-apps retrieves Function Apps whose kind includes functionapp, including functionapp,linux, and check whether the change affects other Azure resource kinds.

索引モデルが issue の本文から書いたものです。

説明

Hi,

We found a bug in the code that doesn't retrieve Function Apps using AzureHound list function-apps.

The problem concern the API management.azure.com that return the kind "functionapp,linux" :

{
	"value": [
		{
			"id": "/subscriptions/[subID]/resourceGroups/production/providers/Microsoft.Web/sites/myfunction",
			"name": "myfunction",
			"type": "Microsoft.Web/sites",
			"kind": "functionapp,linux",
			"location": "West Europe",
			"tags": {
				"hidden-link: /app-insights-resource-id": "/subscriptions/[subID]/resourceGroups/production/providers/microsoft.insights/components/AzureFuncProdAppInsights"
			}
                },...
	 ]
  ...
}

However, line 100 in file cmd/list-function-apps.go : if functionApp.Kind == "functionapp" can't match the value returned by Azure Management API.

The possible fix that we found is to search a substring that match "functionapp" :

if strings.Contains(functionApp.Kind,"functionapp"), we tested it and we could retrieve the function apps. But the fix need to import "strings".

The import and processing of data succeded using Docker BloodHound.

There is possibly more Azure Resources that are concerned by this problem. We only tested Azure Function Apps.
We will continue to contribute by testing other resources.

Best Regards,

主要言語
Go
スター
979
フォーク
150
平均マージ
1時間 45分
マージ済み PR(30日)
1

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SpecterOps/AzureHound のほかの issue

SpecterOps/AzureHound の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。