{"id":2660,"date":"2022-08-21T08:09:11","date_gmt":"2022-08-21T13:09:11","guid":{"rendered":"https:\/\/www.ciraltos.com\/?p=2660"},"modified":"2023-03-23T05:00:55","modified_gmt":"2023-03-23T10:00:55","slug":"getting-started-with-microsoft-graph-and-powershell","status":"publish","type":"post","link":"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/","title":{"rendered":"Getting Started with Microsoft Graph and PowerShell"},"content":{"rendered":"\n<figure class=\"wp-block-image alignleft size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"150\" height=\"132\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2022\/08\/Graph.png\" alt=\"\" class=\"wp-image-2661\"\/><\/figure>\n\n\n\n<p>The Azure AD and MSOnline PowerShell Modules will be depreciated soon.&nbsp; The replacement is the Microsoft Graph PowerShell module based on the Microsoft Graph API.&nbsp; This video is for those new to the Microsoft Graph API.&nbsp; The video starts by reviewing the change and outlining differences between the Azure AD and MSOnline modules and the new Microsoft Graph module.&nbsp; We then move on to examples using groups.&nbsp; We search for a group, add a group, update group membership, and then remove the group.&nbsp; <\/p>\n\n\n\n<!--more-->\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"ast-oembed-container\" style=\"height: 100%;\"><iframe loading=\"lazy\" title=\"Getting Started with Microsoft Graph and PowerShell\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/oilylijvbic?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<h2>Links<\/h2>\n\n\n\n<p>Zero to Hero with Azure Virtual Desktop <br><a href=\"https:\/\/www.udemy.com\/course\/zero-to-hero-with-windows-virtual-desktop\/?referralCode=B2FE49E6FCEE7A7EA8D4\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"https:\/\/www.udemy.com\/course\/zero-to-hero-with-windows-virtual-desktop\/?referralCode=B2FE49E6FCEE7A7EA8D4 (opens in a new tab)\">https:\/\/www.udemy.com\/course\/zero-to-hero-with-windows-virtual-desktop\/?referralCode=B2FE49E6FCEE7A7EA8D4<\/a><\/p>\n\n\n\n<p>Hybrid Identity with Windows AD and Azure AD <br><a href=\"https:\/\/www.udemy.com\/course\/hybrid-identity-and-azure-active-directory\/?referralCode=7F62C4C6FD05C73ACCC3\">https:\/\/www.udemy.com\/course\/hybrid-identity-and-azure-active-<\/a><a href=\"https:\/\/www.udemy.com\/course\/hybrid-identity-and-azure-active-directory\/?referralCode=7F62C4C6FD05C73ACCC3\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"directory\/?referralCode=7F62C4C6FD05C73ACCC3 (opens in a new tab)\">directory\/?referralCode=7F62C4C6FD05C73ACCC3<\/a><\/p>\n\n\n\n<p>Get Started with Microsoft Graph PowerShell SDK<br><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/microsoftgraph\/get-started?view=graph-powershell-1.0&amp;WT.mc_id=AZ-MVP-5004159\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" https:\/\/docs.microsoft.com\/en-us\/powershell\/microsoftgraph\/get-started?view=graph-powershell-1.0 (opens in a new tab)\"> https:\/\/docs.microsoft.com\/en-us\/powershell\/microsoftgraph\/get-started?view=graph-powershell-1.0<\/a><\/p>\n\n\n\n<p>Filtering with MS Graph and PowerShell<br><a rel=\"noreferrer noopener\" aria-label=\" https:\/\/docs.microsoft.com\/en-us\/graph\/aad-advanced-queries?tabs=powershell#legend (opens in a new tab)\" href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/aad-advanced-queries?tabs=powershell&amp;WT.mc_id=AZ-MVP-5004159#legend\" target=\"_blank\">https:\/\/docs.microsoft.com\/en-us\/graph\/aad-advanced-queries?tabs=powershell#legend<\/a><\/p>\n\n\n\n<p>Create a Group<br><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/group-post-groups?view=graph-rest-1.0&amp;tabs=powershell&amp;WT.mc_id=AZ-MVP-5004159\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/group-post-groups?view=graph-rest-1.0&amp;tabs=powershell (opens in a new tab)\">https:\/\/docs.microsoft.com\/en-us\/graph\/api\/group-post-groups?view=graph-rest-1.0&amp;tabs=powershell<\/a><\/p>\n\n\n\n<p>Command Reference<br><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.graph.groups\/get-mggroup?view=graph-powershell-1.0&amp;WT.mc_id=AZ-MVP-5004159\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.graph.groups\/get-mggroup?view=graph-powershell-1.0  (opens in a new tab)\">https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/microsoft.graph.groups\/get-mggroup?view=graph-powershell-1.0 <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Azure AD and MSOnline PowerShell Modules will be depreciated soon.&nbsp; The replacement is the Microsoft Graph PowerShell module based on the Microsoft Graph API.&nbsp; This video is for those new to the Microsoft Graph API.&nbsp; The video starts by reviewing the change and outlining differences between the Azure AD and MSOnline modules and the &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/\"> <span class=\"screen-reader-text\">Getting Started with Microsoft Graph and PowerShell<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":2661,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","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":[2,170],"tags":[240,9,142,1197,12,1338,1339,286,11,462,1336,1340,1341,20,1334,1337,1335],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Getting Started with Microsoft Graph and PowerShell - ciraltos<\/title>\n<meta name=\"description\" content=\"This video is for those starting with Microsoft Graph API. It starts by reviewing the change and outlining differences between the Azure AD and MSOnline modules and the new Microsoft Graph module. We then move on to examples using groups.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting Started with Microsoft Graph and PowerShell - ciraltos\" \/>\n<meta property=\"og:description\" content=\"This video is for those starting with Microsoft Graph API. It starts by reviewing the change and outlining differences between the Azure AD and MSOnline modules and the new Microsoft Graph module. We then move on to examples using groups.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"ciraltos\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-21T13:09:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-23T10:00:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2022\/08\/Graph.png\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"132\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Travis Roberts\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ciraltos\" \/>\n<meta name=\"twitter:site\" content=\"@ciraltos\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Travis Roberts\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/\"},\"author\":{\"name\":\"Travis Roberts\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"headline\":\"Getting Started with Microsoft Graph and PowerShell\",\"datePublished\":\"2022-08-21T13:09:11+00:00\",\"dateModified\":\"2023-03-23T10:00:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/\"},\"wordCount\":208,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"keywords\":[\"api\",\"Azure\",\"Azure AD\",\"Azure Cloud\",\"cloud\",\"depreciated\",\"dev\",\"management\",\"Microsoft\",\"Microsoft Azure\",\"Microsoft Graph\",\"Module\",\"MSonline\",\"Powershell\",\"Rest API\",\"RESTful\",\"SDKs\"],\"articleSection\":[\"Azure\",\"PowerShell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/\",\"name\":\"Getting Started with Microsoft Graph and PowerShell - ciraltos\",\"isPartOf\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/#website\"},\"datePublished\":\"2022-08-21T13:09:11+00:00\",\"dateModified\":\"2023-03-23T10:00:55+00:00\",\"description\":\"This video is for those starting with Microsoft Graph API. It starts by reviewing the change and outlining differences between the Azure AD and MSOnline modules and the new Microsoft Graph module. We then move on to examples using groups.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.ciraltos.com\/staging2\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Getting Started with Microsoft Graph and PowerShell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/#website\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/\",\"name\":\"ciraltos\",\"description\":\"cloud, technology and trends\",\"publisher\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.ciraltos.com\/staging2\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\",\"name\":\"Travis Roberts\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png\",\"contentUrl\":\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png\",\"width\":5657,\"height\":3563,\"caption\":\"Travis Roberts\"},\"logo\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.ciraltos.com\",\"https:\/\/twitter.com\/ciraltos\"],\"url\":\"https:\/\/www.ciraltos.com\/staging2\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Getting Started with Microsoft Graph and PowerShell - ciraltos","description":"This video is for those starting with Microsoft Graph API. It starts by reviewing the change and outlining differences between the Azure AD and MSOnline modules and the new Microsoft Graph module. We then move on to examples using groups.","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:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/","og_locale":"en_US","og_type":"article","og_title":"Getting Started with Microsoft Graph and PowerShell - ciraltos","og_description":"This video is for those starting with Microsoft Graph API. It starts by reviewing the change and outlining differences between the Azure AD and MSOnline modules and the new Microsoft Graph module. We then move on to examples using groups.","og_url":"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/","og_site_name":"ciraltos","article_published_time":"2022-08-21T13:09:11+00:00","article_modified_time":"2023-03-23T10:00:55+00:00","og_image":[{"width":150,"height":132,"url":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2022\/08\/Graph.png","type":"image\/png"}],"author":"Travis Roberts","twitter_card":"summary_large_image","twitter_creator":"@ciraltos","twitter_site":"@ciraltos","twitter_misc":{"Written by":"Travis Roberts","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/#article","isPartOf":{"@id":"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/"},"author":{"name":"Travis Roberts","@id":"https:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"headline":"Getting Started with Microsoft Graph and PowerShell","datePublished":"2022-08-21T13:09:11+00:00","dateModified":"2023-03-23T10:00:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/"},"wordCount":208,"commentCount":0,"publisher":{"@id":"https:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"keywords":["api","Azure","Azure AD","Azure Cloud","cloud","depreciated","dev","management","Microsoft","Microsoft Azure","Microsoft Graph","Module","MSonline","Powershell","Rest API","RESTful","SDKs"],"articleSection":["Azure","PowerShell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/","url":"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/","name":"Getting Started with Microsoft Graph and PowerShell - ciraltos","isPartOf":{"@id":"https:\/\/www.ciraltos.com\/staging2\/#website"},"datePublished":"2022-08-21T13:09:11+00:00","dateModified":"2023-03-23T10:00:55+00:00","description":"This video is for those starting with Microsoft Graph API. It starts by reviewing the change and outlining differences between the Azure AD and MSOnline modules and the new Microsoft Graph module. We then move on to examples using groups.","breadcrumb":{"@id":"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.ciraltos.com\/staging2\/getting-started-with-microsoft-graph-and-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.ciraltos.com\/staging2\/"},{"@type":"ListItem","position":2,"name":"Getting Started with Microsoft Graph and PowerShell"}]},{"@type":"WebSite","@id":"https:\/\/www.ciraltos.com\/staging2\/#website","url":"https:\/\/www.ciraltos.com\/staging2\/","name":"ciraltos","description":"cloud, technology and trends","publisher":{"@id":"https:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ciraltos.com\/staging2\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a","name":"Travis Roberts","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/","url":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png","contentUrl":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png","width":5657,"height":3563,"caption":"Travis Roberts"},"logo":{"@id":"https:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.ciraltos.com","https:\/\/twitter.com\/ciraltos"],"url":"https:\/\/www.ciraltos.com\/staging2\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/2660"}],"collection":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/comments?post=2660"}],"version-history":[{"count":3,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/2660\/revisions"}],"predecessor-version":[{"id":3746,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/2660\/revisions\/3746"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media\/2661"}],"wp:attachment":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media?parent=2660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/categories?post=2660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/tags?post=2660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}