{"id":786,"date":"2024-10-14T10:02:53","date_gmt":"2024-10-14T00:02:53","guid":{"rendered":"https:\/\/www.cloudproinc.com.au\/?p=786"},"modified":"2024-10-14T10:02:55","modified_gmt":"2024-10-14T00:02:55","slug":"auto-generate-azure-bearer-token-with-postman","status":"publish","type":"post","link":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/","title":{"rendered":"Auto-Generate Azure Bearer Token with Postman"},"content":{"rendered":"\n<p>In this Postman and Azure REST API, I will show you how to auto-generate a bearer token for each Azure REST API request with Postman.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-yoast-seo-estimated-reading-time yoast-reading-time__wrapper\"><span class=\"yoast-reading-time__icon\"><svg aria-hidden=\"true\" focusable=\"false\" data-icon=\"clock\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" style=\"display:inline-block;vertical-align:-0.1em\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z\"><\/path><\/svg><\/span><span class=\"yoast-reading-time__spacer\" style=\"display:inline-block;width:1em\"><\/span><span class=\"yoast-reading-time__descriptive-text\">Estimated reading time: <\/span><span class=\"yoast-reading-time__reading-time\">3<\/span><span class=\"yoast-reading-time__time-unit\"> minutes<\/span><\/p>\n\n\n\n<p>Postman API client allows us to develop API requests to many cloud services using an intuitive interface.<\/p>\n\n\n\n<p>When it comes to Azure, We can use the Azure REST API protocol to create and manage any service on Azure using API.<\/p>\n\n\n\n<p>In my previous post, I showed how to Create an App Registration for Microsoft Azure REST API.<\/p>\n\n\n\n<p>If you&#8217;re familiar with Azure REST API, one of the steps to create an API request is to generate a temporary access token. <\/p>\n\n\n\n<p>Creating an access token is a manual process that must be repeated every hour when the token expires. <\/p>\n\n\n\n<p>In this post, I will show you how to use a Pre-Request script in Postman to auto-generate an access token before sending a request. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-auto-generate-azure-bearer-token-with-postman\">Auto-Generate Azure Bearer Token with Postman<\/h2>\n\n\n\n<p>To auto-generate an access token, I have the following configuration. In my environment, I have the following variables.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"603\" height=\"323\" data-src=\"\/wp-content\/uploads\/2024\/10\/image-21.png\" alt=\"\" class=\"wp-image-787 lazyload\" data-srcset=\"\/wp-content\/uploads\/2024\/10\/image-21.png 603w, \/wp-content\/uploads\/2024\/10\/image-21-300x161.png 300w, \/wp-content\/uploads\/2024\/10\/image-21-480x257.png 480w\" data-sizes=\"(max-width: 603px) 100vw, 603px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 603px; --smush-placeholder-aspect-ratio: 603\/323;\" \/><\/figure>\n\n\n\n<p>The variable BearerToken needs to be left empty.<\/p>\n\n\n\n<p>I have the following JavaScript script on my collection page under the Pre-Request script. Please note that the values in the script need to match the values in the environment variables.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"641\" data-src=\"\/wp-content\/uploads\/2024\/10\/image-22.png\" alt=\"\" class=\"wp-image-788 lazyload\" data-srcset=\"\/wp-content\/uploads\/2024\/10\/image-22.png 1024w, \/wp-content\/uploads\/2024\/10\/image-22-300x188.png 300w, \/wp-content\/uploads\/2024\/10\/image-22-768x481.png 768w, \/wp-content\/uploads\/2024\/10\/image-22-400x250.png 400w, \/wp-content\/uploads\/2024\/10\/image-22-980x613.png 980w, \/wp-content\/uploads\/2024\/10\/image-22-480x300.png 480w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/641;\" \/><\/figure>\n\n\n\n<p>Copy the script below.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-47769437a90686dd59c01901270f1f04\"><code>const tokenExpired = !pm.environment.get(\"bearerToken\") || Date.now() &gt; pm.environment.get(\"bearerTokenExpiresOn\") * 1000;\n\nif (tokenExpired) {\n    const tenantId = pm.environment.get(\"tenantId\");\n    const client_id = pm.environment.get(\"client_id\");\n    const client_secret = pm.environment.get(\"client_secret\");\n    const resource = pm.environment.get(\"resource\") || \"https:\/\/management.azure.com\/\";\n\n    pm.sendRequest({\n        url: `https:\/\/login.microsoftonline.com\/${tenantId}\/oauth2\/token`,\n        method: 'POST',\n        header: { 'Content-Type': 'application\/x-www-form-urlencoded' },\n        body: {\n            mode: 'urlencoded',\n            urlencoded: &#91;\n                { key: \"grant_type\", value: \"client_credentials\" },\n                { key: \"client_id\", value: client_id },\n                { key: \"client_secret\", value: client_secret },\n                { key: \"resource\", value: resource }\n            ]\n        }\n    }, (err, res) =&gt; {\n        if (err) {\n            console.log(err);\n        } else {\n            const { expires_on, access_token } = res.json();\n            pm.environment.set(\"bearerTokenExpiresOn\", expires_on);\n            pm.environment.set(\"bearerToken\", access_token);\n        }\n    });\n}\n<\/code><\/pre>\n\n\n\n<p>To use the auto-generated token in a REST request, set the Auth Type as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"600\" height=\"471\" data-src=\"\/wp-content\/uploads\/2024\/10\/image-23.png\" alt=\"\" class=\"wp-image-789 lazyload\" data-srcset=\"\/wp-content\/uploads\/2024\/10\/image-23.png 600w, \/wp-content\/uploads\/2024\/10\/image-23-300x236.png 300w, \/wp-content\/uploads\/2024\/10\/image-23-480x377.png 480w\" data-sizes=\"(max-width: 600px) 100vw, 600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 600px; --smush-placeholder-aspect-ratio: 600\/471;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-related-articles\">Related Articles<\/h2>\n\n\n\n<ul class=\"wp-block-yoast-seo-related-links yoast-seo-related-links\">\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-images-with-azure-openai-dall-e-and-postman\/\">Generate Images with Azure OpenAI DALL-E and Postman<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/03\/28\/how-to-add-a-registry-key-to-windows-11-using-microsoft-intune\/\">How to Add a Registry Key to Windows 11 Using Microsoft Intune<\/a><\/li>\n\n\n\n<li><a href=\"null\">Setting Up Azure AI Translator with REST API: Step-by-Step Guide<\/a><\/li>\n\n\n\n<li><a href=\"null\">How to Create an Azure AI Language Account Using REST API<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/\">Generate DALL-E Images with .NET C# Console Application<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this Postman and Azure REST API, I will show you how to auto-generate a bearer token for each Azure REST API request with Postman.<\/p>\n","protected":false},"author":1,"featured_media":660,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"Auto-Generate Azure Bearer Token with Postman","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Learn how to automatically generate Azure bearer tokens with Postman for seamless integration with Azure REST API requests.","_yoast_wpseo_opengraph-title":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_twitter-title":"","_yoast_wpseo_twitter-description":"","_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16,13,56],"tags":[],"class_list":["post-786","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-azure","category-blog","category-postman"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Auto-Generate Azure Bearer Token with Postman - CPI Consulting<\/title>\n<meta name=\"description\" content=\"Learn how to automatically generate Azure bearer tokens with Postman for seamless integration with Azure REST API requests.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Auto-Generate Azure Bearer Token with Postman\" \/>\n<meta property=\"og:description\" content=\"Learn how to automatically generate Azure bearer tokens with Postman for seamless integration with Azure REST API requests.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/\" \/>\n<meta property=\"og:site_name\" content=\"CPI Consulting\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-14T00:02:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-14T00:02:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudproinc.com.au\/wp-content\/uploads\/2024\/09\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"CPI Staff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CPI Staff\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/14\\\/auto-generate-azure-bearer-token-with-postman\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/14\\\/auto-generate-azure-bearer-token-with-postman\\\/\"},\"author\":{\"name\":\"CPI Staff\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#\\\/schema\\\/person\\\/192eeeb0ce91062126ce3822ae88fe6e\"},\"headline\":\"Auto-Generate Azure Bearer Token with Postman\",\"datePublished\":\"2024-10-14T00:02:53+00:00\",\"dateModified\":\"2024-10-14T00:02:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/14\\\/auto-generate-azure-bearer-token-with-postman\\\/\"},\"wordCount\":291,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/14\\\/auto-generate-azure-bearer-token-with-postman\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp\",\"articleSection\":[\"Azure\",\"Blog\",\"Postman\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/14\\\/auto-generate-azure-bearer-token-with-postman\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/14\\\/auto-generate-azure-bearer-token-with-postman\\\/\",\"url\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/14\\\/auto-generate-azure-bearer-token-with-postman\\\/\",\"name\":\"Auto-Generate Azure Bearer Token with Postman - CPI Consulting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/14\\\/auto-generate-azure-bearer-token-with-postman\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/14\\\/auto-generate-azure-bearer-token-with-postman\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp\",\"datePublished\":\"2024-10-14T00:02:53+00:00\",\"dateModified\":\"2024-10-14T00:02:55+00:00\",\"description\":\"Learn how to automatically generate Azure bearer tokens with Postman for seamless integration with Azure REST API requests.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/14\\\/auto-generate-azure-bearer-token-with-postman\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/14\\\/auto-generate-azure-bearer-token-with-postman\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/14\\\/auto-generate-azure-bearer-token-with-postman\\\/#primaryimage\",\"url\":\"\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp\",\"width\":1024,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/14\\\/auto-generate-azure-bearer-token-with-postman\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Auto-Generate Azure Bearer Token with Postman\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#website\",\"url\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/\",\"name\":\"Cloud Pro Inc - CPI Consulting Pty Ltd\",\"description\":\"Cloud, AI &amp; Cybersecurity Consulting | Melbourne\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#organization\",\"name\":\"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd\",\"url\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/favfinalfile.png\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/favfinalfile.png\",\"width\":500,\"height\":500,\"caption\":\"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#\\\/schema\\\/person\\\/192eeeb0ce91062126ce3822ae88fe6e\",\"name\":\"CPI Staff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"caption\":\"CPI Staff\"},\"sameAs\":[\"http:\\\/\\\/www.cloudproinc.com.au\"],\"url\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/author\\\/cpiadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Auto-Generate Azure Bearer Token with Postman - CPI Consulting","description":"Learn how to automatically generate Azure bearer tokens with Postman for seamless integration with Azure REST API requests.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/","og_locale":"en_US","og_type":"article","og_title":"Auto-Generate Azure Bearer Token with Postman","og_description":"Learn how to automatically generate Azure bearer tokens with Postman for seamless integration with Azure REST API requests.","og_url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/","og_site_name":"CPI Consulting","article_published_time":"2024-10-14T00:02:53+00:00","article_modified_time":"2024-10-14T00:02:55+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/cloudproinc.com.au\/wp-content\/uploads\/2024\/09\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp","type":"image\/webp"}],"author":"CPI Staff","twitter_card":"summary_large_image","twitter_misc":{"Written by":"CPI Staff","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/#article","isPartOf":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/"},"author":{"name":"CPI Staff","@id":"https:\/\/www.cloudproinc.com.au\/#\/schema\/person\/192eeeb0ce91062126ce3822ae88fe6e"},"headline":"Auto-Generate Azure Bearer Token with Postman","datePublished":"2024-10-14T00:02:53+00:00","dateModified":"2024-10-14T00:02:55+00:00","mainEntityOfPage":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/"},"wordCount":291,"commentCount":0,"publisher":{"@id":"https:\/\/www.cloudproinc.com.au\/#organization"},"image":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/09\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp","articleSection":["Azure","Blog","Postman"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/","url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/","name":"Auto-Generate Azure Bearer Token with Postman - CPI Consulting","isPartOf":{"@id":"https:\/\/www.cloudproinc.com.au\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/#primaryimage"},"image":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/09\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp","datePublished":"2024-10-14T00:02:53+00:00","dateModified":"2024-10-14T00:02:55+00:00","description":"Learn how to automatically generate Azure bearer tokens with Postman for seamless integration with Azure REST API requests.","breadcrumb":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/#primaryimage","url":"\/wp-content\/uploads\/2024\/09\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp","contentUrl":"\/wp-content\/uploads\/2024\/09\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp","width":1024,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cloudproinc.com.au\/"},{"@type":"ListItem","position":2,"name":"Auto-Generate Azure Bearer Token with Postman"}]},{"@type":"WebSite","@id":"https:\/\/www.cloudproinc.com.au\/#website","url":"https:\/\/www.cloudproinc.com.au\/","name":"Cloud Pro Inc - CPI Consulting Pty Ltd","description":"Cloud, AI &amp; Cybersecurity Consulting | Melbourne","publisher":{"@id":"https:\/\/www.cloudproinc.com.au\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cloudproinc.com.au\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.cloudproinc.com.au\/#organization","name":"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd","url":"https:\/\/www.cloudproinc.com.au\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cloudproinc.com.au\/#\/schema\/logo\/image\/","url":"\/wp-content\/uploads\/2022\/01\/favfinalfile.png","contentUrl":"\/wp-content\/uploads\/2022\/01\/favfinalfile.png","width":500,"height":500,"caption":"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd"},"image":{"@id":"https:\/\/www.cloudproinc.com.au\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.cloudproinc.com.au\/#\/schema\/person\/192eeeb0ce91062126ce3822ae88fe6e","name":"CPI Staff","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","caption":"CPI Staff"},"sameAs":["http:\/\/www.cloudproinc.com.au"],"url":"https:\/\/cloudproinc.com.au\/index.php\/author\/cpiadmin\/"}]}},"jetpack_featured_media_url":"\/wp-content\/uploads\/2024\/09\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp","jetpack-related-posts":[{"id":753,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-images-with-azure-openai-dall-e-and-postman\/","url_meta":{"origin":786,"position":0},"title":"Generate Images with Azure OpenAI DALL-E and Postman","author":"CPI Staff","date":"October 7, 2024","format":false,"excerpt":"In this Azure OpenAI DALL-E article, we will show you how to generate images with Azure OpenAI DALL-E and Postman. Table of contentsDeploy Resource and AI ModelGenerate Images with Azure OpenAI DALL-E and PostmanRelated Articles Azure OpenAI DALL-E offers the latest text-to-image generation model, DALL-E 3. The model offers advanced\u2026","rel":"","context":"In &quot;Azure OpenAI&quot;","block_context":{"text":"Azure OpenAI","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/azure-openai\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 1x, \/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 1.5x, \/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 2x, \/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 3x, \/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 4x"},"classes":[]},{"id":791,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/15\/set-timezone-on-computers-with-microsoft-intune-and-graph-api\/","url_meta":{"origin":786,"position":1},"title":"Set TimeZone on Computers with Microsoft Intune and Graph API","author":"CPI Staff","date":"October 15, 2024","format":false,"excerpt":"In this Microsoft Intune and Graph API post, we will show how to Set TimeZone on computers with Microsoft Intune and Graph API. Estimated reading time: 3 minutes Table of contentsSet TimeZone on Computers with Microsoft Intune and Graph APIPostman POST RequestRequest Body (JSON)Related Articles Microsoft Graph API is a\u2026","rel":"","context":"In &quot;Blog&quot;","block_context":{"text":"Blog","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/blog\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/07\/Deploy-Azure-OpenAI-GPT-4o-Resource-and-Model-using-Bicep.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/07\/Deploy-Azure-OpenAI-GPT-4o-Resource-and-Model-using-Bicep.webp 1x, \/wp-content\/uploads\/2024\/07\/Deploy-Azure-OpenAI-GPT-4o-Resource-and-Model-using-Bicep.webp 1.5x, \/wp-content\/uploads\/2024\/07\/Deploy-Azure-OpenAI-GPT-4o-Resource-and-Model-using-Bicep.webp 2x"},"classes":[]},{"id":231,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/03\/28\/how-to-add-a-registry-key-to-windows-11-using-microsoft-intune\/","url_meta":{"origin":786,"position":2},"title":"How to Add a Registry Key to Windows 11 Using Microsoft Intune","author":"CPI Staff","date":"March 28, 2024","format":false,"excerpt":"In this article, we'll guide you through the process of adding a registry key to Windows 11 utilizing Microsoft Intune. Estimated reading time: 2 minutes Table of contentsListen to articlePowerShell Script:Adding Script to Intune:Related Articles Listen to article As businesses increasingly embrace cloud-based solutions, the necessity for streamlined and centralized\u2026","rel":"","context":"In &quot;Blog&quot;","block_context":{"text":"Blog","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/blog\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/03\/WindowsReg.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/03\/WindowsReg.webp 1x, \/wp-content\/uploads\/2024\/03\/WindowsReg.webp 1.5x, \/wp-content\/uploads\/2024\/03\/WindowsReg.webp 2x"},"classes":[]},{"id":417,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/07\/23\/how-to-use-microsoft-graph-security-api\/","url_meta":{"origin":786,"position":3},"title":"How to Use Microsoft Graph Security API","author":"CPI Staff","date":"July 23, 2024","format":false,"excerpt":"In this Microsoft Defender XDR article, we will show how to use Microsoft Graph Security API using a REST API client and retrieve XDR alerts. Microsoft Defender Extended Detection and Response (XDR) is an enterprise end-to-end security solution that detects, prevents, investigates and responds to security threats from endpoints, users,\u2026","rel":"","context":"In &quot;Blog&quot;","block_context":{"text":"Blog","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/blog\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 1x, \/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 1.5x, \/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 2x, \/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 3x, \/wp-content\/uploads\/2024\/07\/How-to-Use-Microsoft-Graph-Security-API.webp 4x"},"classes":[]},{"id":369,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/07\/11\/list-classic-azure-administrators-using-powershell-and-azure-rest-api\/","url_meta":{"origin":786,"position":4},"title":"List Classic Azure Administrators Using PowerShell and Azure REST API","author":"CPI Staff","date":"July 11, 2024","format":false,"excerpt":"This Microsoft Azure article will show how to list classic Azure Administrators using PowerShell and Azure REST API. As an IT consultancy company that helps companies safeguard their Azure tenant, we perform many tenant assessments. As part of our identity and access review, we always check how many users have\u2026","rel":"","context":"In &quot;Azure&quot;","block_context":{"text":"Azure","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/microsoft-azure\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/07\/AzureAdmins.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/07\/AzureAdmins.webp 1x, \/wp-content\/uploads\/2024\/07\/AzureAdmins.webp 1.5x, \/wp-content\/uploads\/2024\/07\/AzureAdmins.webp 2x, \/wp-content\/uploads\/2024\/07\/AzureAdmins.webp 3x, \/wp-content\/uploads\/2024\/07\/AzureAdmins.webp 4x"},"classes":[]},{"id":53786,"url":"https:\/\/cloudproinc.com.au\/index.php\/2025\/09\/08\/read-json-files-from-azure-app-configuration\/","url_meta":{"origin":786,"position":5},"title":"Read JSON Files from Azure App Configuration","author":"CPI Staff","date":"September 8, 2025","format":false,"excerpt":"This post walks through the steps of reading JSON files from Azure App Configuration, complete with explanations and code samples. Modern cloud applications often rely on configuration management systems to centralize and secure application settings. Azure App Configuration is one such service that allows developers to store and manage configurations\u2026","rel":"","context":"In &quot;Azure&quot;","block_context":{"text":"Azure","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/microsoft-azure\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2025\/09\/read-json-files-from-azure-app-configuration.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2025\/09\/read-json-files-from-azure-app-configuration.png 1x, \/wp-content\/uploads\/2025\/09\/read-json-files-from-azure-app-configuration.png 1.5x, \/wp-content\/uploads\/2025\/09\/read-json-files-from-azure-app-configuration.png 2x, \/wp-content\/uploads\/2025\/09\/read-json-files-from-azure-app-configuration.png 3x, \/wp-content\/uploads\/2025\/09\/read-json-files-from-azure-app-configuration.png 4x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/comments?post=786"}],"version-history":[{"count":1,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/786\/revisions"}],"predecessor-version":[{"id":790,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/786\/revisions\/790"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media\/660"}],"wp:attachment":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}