LoginSignup
0
0

サービス プリンシパルの認証トークンを取得する

Last updated at Posted at 2023-09-21

<YOUR-TENANT-ID><YOUR-CLIENT-ID><YOUR-CLIENT-SECRET> を使用する実際の値に置き換えて、下記のコマンドをコマンドプロンプトで実行する。

curl -X POST https://login.microsoftonline.com/<YOUR-TENANT-ID>/oauth2/token -d "grant_type=client_credentials&resource=https%3A%2F%2Fmanagement.azure.com%2F&client_id=<YOUR-CLIENT-ID>&client_secret=<YOUR-CLIENT-SECRET>"

1 時間有効なアクセス トークンが返される。

引用元:
https://learn.microsoft.com/ja-jp/azure/machine-learning/how-to-manage-rest?view=azureml-api-2#retrieve-a-service-principal-authentication-token

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