wiki:connect_azure_rest_api
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:connect_azure_rest_api [2022/08/30 11:45] – created antisa | wiki:connect_azure_rest_api [2023/09/05 09:29] (current) – Add Renew/generate new token i.e. client secret antisa | ||
---|---|---|---|
Line 2: | Line 2: | ||
====== Connect to Azure REST API ====== | ====== Connect to Azure REST API ====== | ||
+ | This uses so-called [[https:// | ||
+ | |||
In your account open the azure shell. After connecting create the principal | In your account open the azure shell. After connecting create the principal | ||
Line 19: | Line 21: | ||
This data can now be used to get query the API but you still need the **BearerToken** which can be obtained via [[https:// | This data can now be used to get query the API but you still need the **BearerToken** which can be obtained via [[https:// | ||
+ | |||
+ | You can also get the token via curl see [[https:// | ||
+ | |||
+ | ====== Renew/ | ||
+ | |||
+ | - In the Azure portal, in App registrations, | ||
+ | - Select Certificates & secrets > Client secrets > New client secret. | ||
+ | - Add a description for your client secret. | ||
+ | - Select an expiration for the secret or specify a custom lifetime. Client secret lifetime is limited to two years (24 months) or less. You can't specify a custom lifetime longer than 24 months. Microsoft recommends that you set an expiration value of less than 12 months. | ||
+ | - Select Add. | ||
+ | - Record the secret' | ||
+ | |||
+ | |||
====== Tested on ====== | ====== Tested on ====== | ||
* Microsoft Azure accessed on 2022-08-30 | * Microsoft Azure accessed on 2022-08-30 | ||
====== See also ====== | ====== See also ====== | ||
+ | * [[wiki: | ||
====== References ====== | ====== References ====== | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | * https:// | ||
wiki/connect_azure_rest_api.1661859916.txt.gz · Last modified: 2022/08/30 11:45 by antisa