Python Web App demo using Microsoft Intelligent Security Graph

6月 11, 2023

マイクロソフトのpythonサンプルを試行した時の情報です。

https://docs.microsoft.com/ja-jp/samples/microsoftgraph/python-security-rest-sample/python-web-app-demo-using-microsoft-intelligent-security-graph/

結果としては、AzureでのAPI権限が付与できず、中断しました。


目次

前提条件

PythonとMicrosoftアカウントが必要です。

ソースの入手

git clone https://github.com/microsoftgraph/python-security-rest-sample.git

Python仮想環境

Minicondaを使用したPython仮想環境での実行が推奨されています。

下記URLからインストールし、仮想環境を作成します。コマンドは、condaプロンプトを起動して入力します。

https://docs.conda.io/en/latest/miniconda.html

conda create -n rest-sample
conda activate rest-sample

Azureでアプリケーション登録

Azureでアプリケーションを登録し、APIが呼び出せるように準備するのですが、個人用のMicrosoftアカウントでは、このサンプルに必要な権限が付与できないようでした。

プログラム開発

Posted by iwadjp