How to get your Azure access token ?
Sometimes it is required to obtain your currently active Azure Token. The very convenient way is to use following AZ command:
az account get-access-token --query accessToken -o tsv
The result will look like:
eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkJCOENlRlZxeWFHckdOdWVoSklpTDRkZmp6dyIsImtpZCI6IkJCOENlRlZxeWFHckdOdWVoSklpTDRkZmp6dyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQ...
_uR6ZaHP8v6nrYED3hz3zl6I0dRGE14_RexE_R4aABQ6k1DwuA_hovnaGHi7g4Ax_MnQ-byCS7FGvX7lIdiKDdnPQ4IeFJBIThbBnNPIbUOMCj8R9ukFtbmmYmEkRFBYZl1UuhzOMwBVEuvHxBM3pP1QDyxQaUREMZxvzrpnDAk-6FyfS1cKRpJc7wXgNbOoid2MniKFkd5EeVU_dBRdaVWmVMf6itqQbYT8fkUzF-OtZ6htDj0rB9eVre71sRzkd6SL2_neZcbqAyxlAEw3tO29chPF2bke-SV0XaIwah6mzVNg