{"id":15366,"date":"2020-08-06T05:12:15","date_gmt":"2020-08-06T05:12:15","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=15366"},"modified":"2020-08-06T05:12:16","modified_gmt":"2020-08-06T05:12:16","slug":"learn-to-access-resource-manager-and-register-new-application","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/","title":{"rendered":"Learn to access Resource Manager and register new application"},"content":{"rendered":"\n<p>This tutorial will help you to Learn to access Resource Manager. Managing identities for Azure resources is a feature of Azure Active Directory. Each of the\u00a0Azure services that supports managed identities for Azure resources\u00a0are subjected to their own timeline.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"grant-your-vm-access-to-a-resource-group-in-resource-manager\"><strong>Learn to Grant your VM access to a resource group in Resource Manager<\/strong><\/h3>\n\n\n\n<p>Using managed identities for Azure resources, your code can get access tokens to authenticate to resources that support Azure AD authentication. The Azure Resource Manager supports Azure AD authentication. First, we need to grant this VM\u2019s system-assigned managed identity access to a resource in Resource Manager, in this case the Resource Group in which the VM is contained.<\/p>\n\n\n\n<ol><li>Firstly, Reach out to the tab for\u00a0<strong>Resource Groups<\/strong>.<\/li><li>Now, choose the specific\u00a0<strong>Resource Group<\/strong>\u00a0you created for your\u00a0<strong>Windows VM<\/strong>.<\/li><li>now, visit\u00a0<strong>Access control (IAM)<\/strong>\u00a0in the left panel.<\/li><li>Then\u00a0<strong>Add role assignment<\/strong>\u00a0and a new role assignment for your\u00a0<strong>Windows VM<\/strong>. Select\u00a0<strong>Role<\/strong>\u00a0as\u00a0<strong>Reader<\/strong>.<\/li><li>In the next drop-down list,\u00a0choose to <strong>Assign access to<\/strong>\u00a0the resource\u00a0<strong>Virtual Machine<\/strong>.<\/li><li>Next, important step is to ensure that the proper subscription is listed in the\u00a0<strong>Subscription<\/strong>\u00a0dropdown. And for\u00a0<strong>Resource Group<\/strong>, select\u00a0<strong>All resource groups<\/strong>.<\/li><li>Finally, in\u00a0<strong>click <\/strong>choose your Windows VM in the dropdown and choose\u00a0<strong>Save<\/strong>.<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/managed-identities-azure-resources\/media\/msi-tutorial-windows-vm-access-arm\/msi-windows-permissions.png\" alt=\"Learn to access Resource Manager\"\/><figcaption>Image source &#8211; microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"get-an-access-token-using-the-vms-system-assigned-managed-identity-and-use-it-to-call-azure-resource-manager\"><strong>Get an access token using the VM&#8217;s system-assigned managed identity and use it to call Azure Resource Manager<\/strong><\/h3>\n\n\n\n<p>You will have to use\u00a0<strong>PowerShell<\/strong>\u00a0in this portion. <\/p>\n\n\n\n<ol><li>Firstly, In the portal, navigate to\u00a0<strong>Virtual Machines<\/strong>\u00a0and choose to go to your Windows virtual machine and in the\u00a0<strong>Overview<\/strong>, choose\u00a0<strong>Connect<\/strong>.<\/li><li>Type in your\u00a0<strong>Username<\/strong>\u00a0and\u00a0<strong>Password<\/strong>\u00a0for which you added when you created the Windows VM.<\/li><li>Subsequently, you have created a\u00a0<strong>Remote Desktop Connection<\/strong>\u00a0with the virtual machine, open\u00a0<strong>PowerShell<\/strong>\u00a0in the remote session.<\/li><li>Furthermore, Using the Invoke-WebRequest cmdlet, make a request to the local managed identity for Azure resources endpoint to get an access token for Azure Resource Manager.<\/li><li>Now, Next, extract the full response, stored as a JavaScript Object Notation (JSON) formatted string in the $response object.<\/li><li>Next, choose to extract the access token from the response.<\/li><li>Finally, call Azure Resource Manager using the access token. In this instance, we&#8217;re also using the Invoke-WebRequest cmdlet to make the call to Azure Resource Manager, and include the access token in the Authorization header.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"register-a-new-application-using-the-azure-portal\"><strong>Register a new application using the Azure portal<\/strong><\/h3>\n\n\n\n<ol><li>Firstly, visit and sign in\u00a0Azure portal\u00a0using either a work or school account or a personal Microsoft account.<\/li><li>Now that, If your account gives you access to more than one tenant, select your account in the upper right corner. Set your portal session to the Azure AD tenant according to your wants. <\/li><li>Choose\u00a0<strong>Azure Active Directory<\/strong>. Under\u00a0<strong>Manage<\/strong>, choose\u00a0<strong>App registrations<\/strong>.<\/li><li>choose\u00a0<strong>New registration<\/strong>.<\/li><li>In\u00a0<strong>Register an application<\/strong>, enter a logical application name to display to users.<\/li><li>Under\u00a0<strong>Redirect URI (optional)<\/strong>, choose the type of app you&#8217;re building:\u00a0<strong>Web<\/strong>\u00a0or\u00a0<strong>Public client (mobile &amp; desktop)<\/strong>. Then type the redirect URI, or reply URL, for your application.<ul><li>Firstly, For web applications, provide the base URL of your application. For example,\u00a0<code>https:\/\/localhost:31544<\/code>\u00a0might be the URL for a web app running on your local machine. Users would be using this URL to sign in to a web client application.<\/li><li>Subsequently, For public client applications, provide the URI used by Azure AD to return to token responses. type a value specific to your application, such as\u00a0<code>myapp:\/\/auth<\/code>.<\/li><\/ul><\/li><li>When you are finished, choose\u00a0\u00a0<strong>Register<\/strong>.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/media\/quickstart-add-azure-ad-app-preview\/new-app-registration.png\" alt=\"Shows the screen to register a new application in the Azure portal\"\/><figcaption>Image source &#8211; microsoft<\/figcaption><\/figure>\n\n\n\n<p>Azure AD always assigns a unique application, or client, ID to your app. The portal will open your application&#8217;s\u00a0<strong>Overview<\/strong>\u00a0page. To add capabilities to your application, you can choose other configuration options including branding, certificates and secrets, API permissions, and many more options.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/media\/quickstart-add-azure-ad-app-preview\/new-app-overview-page-expanded.png\" alt=\"Example of a newly registered app overview page\"\/><figcaption>Image source &#8211; microsoft<\/figcaption><\/figure>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.testpreptraining.com\/microsoft-azure-architect-technologies-az-303-free-practice-test\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"150\" src=\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png\" alt=\"free practice test for AZ- 303\" class=\"wp-image-13928\" srcset=\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png 960w, https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5-750x117.png 750w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><a href=\"https:\/\/www.testpreptraining.com\/tutorial\/exam-az-303-microsoft-azure-architect-technologies\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Go back to home page <\/strong><\/a><\/p>\n\n\n\n<p class=\"has-text-align-right\"><strong>Reference documentation &#8211; <\/strong><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/managed-identities-azure-resources\/tutorial-windows-vm-access-arm\" target=\"_blank\" rel=\"noreferrer noopener\">Use a Windows VM system-assigned managed identity to access Resource Manager<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will help you to Learn to access Resource Manager. Managing identities for Azure resources is a feature of Azure Active Directory. Each of the\u00a0Azure services that supports managed identities for Azure resources\u00a0are subjected to their own timeline. Learn to Grant your VM access to a resource group in Resource Manager Using managed identities&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Learn to access Resource Manager and register new application<\/title>\n<meta name=\"description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Learn to access Resource Manager and register new application!\" \/>\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.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn to access Resource Manager and register new application\" \/>\n<meta property=\"og:description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Learn to access Resource Manager and register new application!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-06T05:12:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/managed-identities-azure-resources\/media\/msi-tutorial-windows-vm-access-arm\/msi-windows-permissions.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/\",\"name\":\"Learn to access Resource Manager and register new application\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.com\/tutorial\/#website\"},\"datePublished\":\"2020-08-06T05:12:15+00:00\",\"dateModified\":\"2020-08-06T05:12:16+00:00\",\"description\":\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Learn to access Resource Manager and register new application!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.com\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn to access Resource Manager and register new application\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.com\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.com\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.com\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.com\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.com\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.com\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn to access Resource Manager and register new application","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Learn to access Resource Manager and register new application!","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.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/","og_locale":"en_US","og_type":"article","og_title":"Learn to access Resource Manager and register new application","og_description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Learn to access Resource Manager and register new application!","og_url":"https:\/\/www.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-08-06T05:12:16+00:00","og_image":[{"url":"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/managed-identities-azure-resources\/media\/msi-tutorial-windows-vm-access-arm\/msi-windows-permissions.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/","name":"Learn to access Resource Manager and register new application","isPartOf":{"@id":"https:\/\/www.testpreptraining.com\/tutorial\/#website"},"datePublished":"2020-08-06T05:12:15+00:00","dateModified":"2020-08-06T05:12:16+00:00","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Learn to access Resource Manager and register new application!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.com\/tutorial\/learn-to-access-resource-manager-and-register-new-application\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.com\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Learn to access Resource Manager and register new application"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.com\/tutorial\/#website","url":"https:\/\/www.testpreptraining.com\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.com\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.com\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.com\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.com\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.com\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.com\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.com\/tutorial\/wp-json\/wp\/v2\/pages\/15366"}],"collection":[{"href":"https:\/\/www.testpreptraining.com\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.com\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.com\/tutorial\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.com\/tutorial\/wp-json\/wp\/v2\/comments?post=15366"}],"version-history":[{"count":1,"href":"https:\/\/www.testpreptraining.com\/tutorial\/wp-json\/wp\/v2\/pages\/15366\/revisions"}],"predecessor-version":[{"id":15376,"href":"https:\/\/www.testpreptraining.com\/tutorial\/wp-json\/wp\/v2\/pages\/15366\/revisions\/15376"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.com\/tutorial\/wp-json\/wp\/v2\/media?parent=15366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.com\/tutorial\/wp-json\/wp\/v2\/categories?post=15366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.com\/tutorial\/wp-json\/wp\/v2\/tags?post=15366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}