{"id":48,"date":"2022-04-26T20:18:55","date_gmt":"2022-04-26T20:18:55","guid":{"rendered":"https:\/\/estherisack.com\/?p=48"},"modified":"2022-04-26T20:40:21","modified_gmt":"2022-04-26T20:40:21","slug":"create-personalaccesstoken-pat-in-azure-devops-with-working-example","status":"publish","type":"post","link":"https:\/\/estherisack.com\/index.php\/2022\/04\/26\/create-personalaccesstoken-pat-in-azure-devops-with-working-example\/","title":{"rendered":"Create Personal Access Token (PAT) in Azure DevOps."},"content":{"rendered":"\n<p>Recently, my task at work was to automate the progress of Work Items in the Azure DevOps Board. To accomplish this task, an alternate password to authenticate into Azure DevOps is required. Below are the steps to successfully create Personal Access Token (PAT) in Azure DevOps. Happy Learning!<\/p>\n\n\n\n<ul><li>Sign in to your organization (<code>https:\/\/dev.azure.com\/{yourorganizationname}<\/code>).<\/li><li>From the Azure DevOps home page, open user settings and select <em><strong>Personal Access tokens<\/strong>. <\/em>See the screenshot below:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"613\" height=\"464\" src=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat1-1.png\" alt=\"\" class=\"wp-image-50\" srcset=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat1-1.png 613w, https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat1-1-300x227.png 300w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><figcaption>Figure 1: Screenshot select Personal access tokens<\/figcaption><\/figure>\n\n\n\n<ul><li>Select\u00a0<strong><em>+ New Token<\/em><\/strong>. See the screenshot below:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"613\" height=\"369\" src=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/part2.png\" alt=\"\" class=\"wp-image-51\" srcset=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/part2.png 613w, https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/part2-300x181.png 300w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><figcaption>Figure 2: Screenshot to click &#8220;New Token&#8221;<\/figcaption><\/figure>\n\n\n\n<p>If no token has been created before, the screenshot below will be shown:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"456\" src=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat2a_ifnotokenexist-1024x456.png\" alt=\"\" class=\"wp-image-53\" srcset=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat2a_ifnotokenexist-1024x456.png 1024w, https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat2a_ifnotokenexist-300x134.png 300w, https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat2a_ifnotokenexist-768x342.png 768w, https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat2a_ifnotokenexist.png 1354w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Figure 3: Screenshot to click &#8220;New Token&#8221; if no token has been created.<\/figcaption><\/figure>\n\n\n\n<ul><li>Give your token a name, choose the organization where the token will be used, and then set the token to automatically expire after a set number of days. The default value is 30 days. See the screenshot below:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"613\" height=\"369\" src=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat3-1.png\" alt=\"\" class=\"wp-image-54\" srcset=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat3-1.png 613w, https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat3-1-300x181.png 300w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><figcaption>Figure 4: Screenshot &#8211; Give token desired name.<\/figcaption><\/figure>\n\n\n\n<ul><li>The next step is to select the scope for the token to authorize for the specific task. In this case, the token is to read and write work items, the token scope will be limited to <em><strong>Work Items (Read &amp; write)<\/strong><\/em>. After selecting <em><strong>Read &amp; write<\/strong><\/em> under <strong><em>Work Items<\/em><\/strong>, select <strong><em>Create<\/em><\/strong>. See the screenshot below:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"613\" height=\"369\" src=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat4.png\" alt=\"\" class=\"wp-image-55\" srcset=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat4.png 613w, https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat4-300x181.png 300w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><figcaption>Figure 5: Screenshot to click &#8220;Create&#8221; after specifying scope to specific task<\/figcaption><\/figure>\n\n\n\n<ul><li>Copy the token, keep it in a safe place and keep it a secret. Pay attention to the warning in the screenshot below:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"613\" height=\"550\" src=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat5.png\" alt=\"\" class=\"wp-image-56\" srcset=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat5.png 613w, https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat5-300x269.png 300w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><figcaption>Figure 6: Screenshot to copy created token and keep in a safe place.<\/figcaption><\/figure>\n\n\n\n<ul><li>After the token has been successfully created, a summary notification will be sent to the email connected to your Azure DevOps account. See the screenshot below:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"781\" height=\"500\" src=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat6.png\" alt=\"\" class=\"wp-image-57\" srcset=\"https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat6.png 781w, https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat6-300x192.png 300w, https:\/\/estherisack.com\/wp-content\/uploads\/2022\/04\/pat6-768x492.png 768w\" sizes=\"(max-width: 781px) 100vw, 781px\" \/><figcaption>Figure 7: Screenshot showing summary of token sent to associated email.<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Recently, my task at work was to automate the progress of Work Items in the Azure DevOps Board. To accomplish this task, an alternate password to authenticate into Azure DevOps is required. Below are the steps to successfully create Personal Access Token (PAT) in Azure DevOps. Happy Learning! Sign in to your organization (https:\/\/dev.azure.com\/{yourorganizationname}). From &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/estherisack.com\/index.php\/2022\/04\/26\/create-personalaccesstoken-pat-in-azure-devops-with-working-example\/\"> <span class=\"screen-reader-text\">Create Personal Access Token (PAT) in Azure DevOps.<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":true,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[6],"tags":[8,10,13,14,9,16,17,11,12,15],"_links":{"self":[{"href":"https:\/\/estherisack.com\/index.php\/wp-json\/wp\/v2\/posts\/48"}],"collection":[{"href":"https:\/\/estherisack.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/estherisack.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/estherisack.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/estherisack.com\/index.php\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":5,"href":"https:\/\/estherisack.com\/index.php\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":65,"href":"https:\/\/estherisack.com\/index.php\/wp-json\/wp\/v2\/posts\/48\/revisions\/65"}],"wp:attachment":[{"href":"https:\/\/estherisack.com\/index.php\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/estherisack.com\/index.php\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/estherisack.com\/index.php\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}