{"id":3734,"date":"2021-09-28T10:43:32","date_gmt":"2021-09-28T09:43:32","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?p=3734"},"modified":"2021-09-28T10:43:32","modified_gmt":"2021-09-28T09:43:32","slug":"license-reports-by-a-managed-identity","status":"publish","type":"post","link":"https:\/\/lieben.nu\/liebensraum\/2021\/09\/license-reports-by-a-managed-identity\/","title":{"rendered":"License reports by a Managed Identity"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Capitalizing on the huge advantages that <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/managed-identities-azure-resources\/overview\" data-type=\"URL\" data-id=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/managed-identities-azure-resources\/overview\">managed identities<\/a> in Azure offer, here&#8217;s another use case similar to the <a href=\"https:\/\/www.lieben.nu\/liebensraum\/2021\/08\/scheduled-migration-group-add-script\/\" data-type=\"post\" data-id=\"3676\">scheduled migration<\/a> script that also uses it&#8217;s managed identity (and graph permissions) to autonomously run as an Azure Runbook without any credentials stored.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/gitlab.com\/Lieben\/assortedFunctions\/-\/blob\/master\/get-licenseReportByDomain.ps1\">https:\/\/gitlab.com\/Lieben\/assortedFunctions\/-\/blob\/master\/get-licenseReportByDomain.ps1<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The script will log in to Graph, retrieve all unique license types and how they are assigned to users, and will then email an HTML report (table) the the specified recipient, order by email domain.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Capitalizing on the huge advantages that managed identities in Azure offer, here&#8217;s another use case similar to the scheduled migration script that also uses it&#8217;s managed identity (and graph permissions) to autonomously run as an Azure Runbook without any credentials stored. https:\/\/gitlab.com\/Lieben\/assortedFunctions\/-\/blob\/master\/get-licenseReportByDomain.ps1 The script will log in to Graph, retrieve all unique license types and &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/2021\/09\/license-reports-by-a-managed-identity\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">License reports by a Managed Identity<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[4,5,21,39],"tags":[],"class_list":["post-3734","post","type-post","status-publish","format-standard","hentry","category-automation","category-azure","category-identity","category-powershell"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/3734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/comments?post=3734"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/3734\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=3734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/categories?post=3734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/tags?post=3734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}