{"id":784,"date":"2024-10-11T08:17:51","date_gmt":"2024-10-10T22:17:51","guid":{"rendered":"https:\/\/www.cloudproinc.com.au\/?p=784"},"modified":"2024-10-11T08:18:27","modified_gmt":"2024-10-10T22:18:27","slug":"create-an-app-registration-for-microsoft-azure-sdk-for-net","status":"publish","type":"post","link":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/","title":{"rendered":"Create an App Registration for Microsoft Azure SDK for .NET"},"content":{"rendered":"\n<p>In this\u00a0\u00a0Azure\u00a0REST API post, I will show you how to create an App Registration for Microsoft Azure SDK for .NET.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Azure SDK for .NET allows us to manage Azure programmatically using .NET libraries. Using the SDK, we can create and manage any Azure resource.<\/p>\n\n\n\n<p>The Azure SDK for .NET has more than 200 libraries for almost any Azure service, which allows us to create programs with a small footprint.<\/p>\n\n\n\n<p>To connect to Azure using .NET, we can use the following methods:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Azure CLI or Azure PowerShell<\/li>\n\n\n\n<li>App Registration<\/li>\n\n\n\n<li>Managed identity<\/li>\n<\/ul>\n\n\n\n<p>In this post, we will show you how to connect using an App Registration because this is how most applications will be used when not in the development stage.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-create-an-app-registration-for-microsoft-azure-rest-api\">Create an App Registration for Microsoft Azure REST API<\/h2>\n\n\n\n<p>To create an App Registration that can access Azure resources, we must use the following Azure CLI command to create a service principal with RBAC permissions.<\/p>\n\n\n\n<p>Start with login into Azure CLI using:<\/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-d3044308b93314f358d27e8f034976ba\"><code>az login<\/code><\/pre>\n\n\n\n<p>And run the command below to create the service principal account.<\/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-9d0acd15b8e555e2d0e1741f8b3a6fa1\"><code>az ad sp create-for-rbac -n AzureAPIAccess  --role Contributor --scopes \/subscriptions\/YOURSUBSCRIPTIONID<\/code><\/pre>\n\n\n\n<p>Note: In the above example, I\u2019m giving the service account contributor access at my subscription level.<\/p>\n\n\n\n<p>The command output will return an App ID, Display name, Password and the tenant ID. Note down the values, as we will need them soon.<\/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-589bce938c773be82e0710bf35b43886\"><code>{\n\"appId\": \"appid\",\n\"displayName\": \"AzureAPIAccess\",\n\"password\": \"password\",\n\"tenant\": \"tenantID\"\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-use-app-registration-with-azure-sdk-for-net\">Use App Registration with Azure SDK for .NET<\/h2>\n\n\n\n<p>To connect successfully to Azure using the newly created App Registration, we need to use environment variables that the SDK will use to authenticate.<\/p>\n\n\n\n<p>On your server, VS Code or the environment your app will run, add the following environment variables (use the values for the output from the previous section). In the code below, I\u2019m using PowerShell.<\/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-e7af85c4c05dfd40ff9f80be22bcdb31\"><code>$env:AZURE_CLIENT_ID=\"CLIENTID\"\n$env:AZURE_TENANT_ID=\"TENATID\"\n$env:AZURE_CLIENT_SECRET=\"PASSWORD\"<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-list-azure-resource-groups\">List Azure Resource Groups<\/h2>\n\n\n\n<p>The following C# Console application will list all the resource groups in the default subscription.<\/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-edae74f6dae437c56267216fb7a00033\"><code>using System;\nusing System.Threading.Tasks;\nusing Azure.Core;\nusing Azure.Identity;\nusing Azure.ResourceManager;\nusing Azure.ResourceManager.Resources;\nusing Azure;\n\nclass Program\n{\n    static async Task Main(string&#91;] args)\n    {\n        \/\/ Create an instance of ArmClient using DefaultAzureCredential\n        ArmClient armClient = new ArmClient(new DefaultAzureCredential());\n        \n        \/\/ Get the default Azure subscription\n        var subdetails = armClient.GetDefaultSubscription();\n        Console.WriteLine($\"The default Azure subscription is: {subdetails.Id}\");\n\n        \/\/ Get all resource groups in the subscription\n        ResourceGroupCollection resourceGroupCollection = subdetails.GetResourceGroups();\n\n        \/\/ Iterate over the resource group collection\n        await foreach (var resourceGroup in resourceGroupCollection.GetAllAsync())\n        {\n            \n                Console.WriteLine($\"Resource Group ID: {resourceGroup.Id}\");\n                Console.WriteLine($\"Resource Group Name: {resourceGroup.Data.Name}\");\n                Console.WriteLine($\"Resource Group Location: {resourceGroup.Data.Location}\");\n                Console.WriteLine(\"-------------------------------------------\");\n            \n        }\n\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>Before you run the code, make sure you add the following libraries to your .csproj file.<\/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-5aca27583695d3db4648d993f35439d3\"><code>   &lt;PackageReference Include=\"Azure.Identity\" Version=\"1.10.4\" \/&gt;\n    &lt;PackageReference Include=\"Azure.ResourceManager.Storage\" Version=\"1.2.1\" \/&gt;\n    &lt;PackageReference Include=\"Azure.Storage.Blobs\" Version=\"12.19.1\" \/&gt;\n    &lt;PackageReference Include=\"Microsoft.Extensions.Azure\" Version=\"1.7.2\" \/&gt;\n    &lt;PackageReference Include=\"Azure.Core\" Version=\"1.38.0\" \/&gt;<\/code><\/pre>\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:\/\/cloudproinc.com.au\/index.php\/2024\/07\/29\/streamlining-entra-id-app-registrations-with-azure-bicep\/\">Streamlining Entra ID App Registrations with Azure Bicep<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/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\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/07\/23\/how-to-use-microsoft-graph-security-api\/\">How to Use Microsoft Graph Security API<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/08\/20\/hardening-azure-wiz-outpost\/\">Hardening Azure Wiz Outpost<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/08\/26\/create-a-custom-extension-attribute-entra-id\/\">Create a Custom Extension Attribute Entra ID<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this\u00a0\u00a0Azure\u00a0REST API post, I will show you how to create an App Registration for Microsoft Azure SDK for .NET.<\/p>\n","protected":false},"author":1,"featured_media":632,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"Create an App Registration for Microsoft Azure SDK for .NET","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Learn how to create an App Registration for Microsoft Azure SDK for .NET and manage Azure resources programmatically.","_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":[27,16,13,36],"tags":[],"class_list":["post-784","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-net","category-microsoft-azure","category-blog","category-entra-id"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Create an App Registration for Microsoft Azure SDK for .NET - CPI Consulting<\/title>\n<meta name=\"description\" content=\"Learn how to create an App Registration for Microsoft Azure SDK for .NET and manage Azure resources programmatically.\" \/>\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\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create an App Registration for Microsoft Azure SDK for .NET\" \/>\n<meta property=\"og:description\" content=\"Learn how to create an App Registration for Microsoft Azure SDK for .NET and manage Azure resources programmatically.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/\" \/>\n<meta property=\"og:site_name\" content=\"CPI Consulting\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-10T22:17:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-10T22:18:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudproinc.com.au\/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.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=\"2 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\\\/11\\\/create-an-app-registration-for-microsoft-azure-sdk-for-net\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/11\\\/create-an-app-registration-for-microsoft-azure-sdk-for-net\\\/\"},\"author\":{\"name\":\"CPI Staff\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#\\\/schema\\\/person\\\/192eeeb0ce91062126ce3822ae88fe6e\"},\"headline\":\"Create an App Registration for Microsoft Azure SDK for .NET\",\"datePublished\":\"2024-10-10T22:17:51+00:00\",\"dateModified\":\"2024-10-10T22:18:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/11\\\/create-an-app-registration-for-microsoft-azure-sdk-for-net\\\/\"},\"wordCount\":363,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/11\\\/create-an-app-registration-for-microsoft-azure-sdk-for-net\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp\",\"articleSection\":[\".NET\",\"Azure\",\"Blog\",\"Entra ID\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/11\\\/create-an-app-registration-for-microsoft-azure-sdk-for-net\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/11\\\/create-an-app-registration-for-microsoft-azure-sdk-for-net\\\/\",\"url\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/11\\\/create-an-app-registration-for-microsoft-azure-sdk-for-net\\\/\",\"name\":\"Create an App Registration for Microsoft Azure SDK for .NET - CPI Consulting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/11\\\/create-an-app-registration-for-microsoft-azure-sdk-for-net\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/11\\\/create-an-app-registration-for-microsoft-azure-sdk-for-net\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp\",\"datePublished\":\"2024-10-10T22:17:51+00:00\",\"dateModified\":\"2024-10-10T22:18:27+00:00\",\"description\":\"Learn how to create an App Registration for Microsoft Azure SDK for .NET and manage Azure resources programmatically.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/11\\\/create-an-app-registration-for-microsoft-azure-sdk-for-net\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/11\\\/create-an-app-registration-for-microsoft-azure-sdk-for-net\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/11\\\/create-an-app-registration-for-microsoft-azure-sdk-for-net\\\/#primaryimage\",\"url\":\"\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp\",\"width\":1024,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2024\\\/10\\\/11\\\/create-an-app-registration-for-microsoft-azure-sdk-for-net\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create an App Registration for Microsoft Azure SDK for .NET\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#website\",\"url\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/\",\"name\":\"Cloud Pro Inc - CPI Consulting Pty Ltd\",\"description\":\"Cloud, AI &amp; Cybersecurity Consulting | Melbourne\",\"publisher\":{\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#organization\",\"name\":\"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd\",\"url\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#\\\/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:\\\/\\\/cloudproinc.azurewebsites.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cloudproinc.azurewebsites.net\\\/#\\\/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":"Create an App Registration for Microsoft Azure SDK for .NET - CPI Consulting","description":"Learn how to create an App Registration for Microsoft Azure SDK for .NET and manage Azure resources programmatically.","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\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/","og_locale":"en_US","og_type":"article","og_title":"Create an App Registration for Microsoft Azure SDK for .NET","og_description":"Learn how to create an App Registration for Microsoft Azure SDK for .NET and manage Azure resources programmatically.","og_url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/","og_site_name":"CPI Consulting","article_published_time":"2024-10-10T22:17:51+00:00","article_modified_time":"2024-10-10T22:18:27+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/cloudproinc.com.au\/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp","type":"image\/webp"}],"author":"CPI Staff","twitter_card":"summary_large_image","twitter_misc":{"Written by":"CPI Staff","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/#article","isPartOf":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/"},"author":{"name":"CPI Staff","@id":"https:\/\/cloudproinc.azurewebsites.net\/#\/schema\/person\/192eeeb0ce91062126ce3822ae88fe6e"},"headline":"Create an App Registration for Microsoft Azure SDK for .NET","datePublished":"2024-10-10T22:17:51+00:00","dateModified":"2024-10-10T22:18:27+00:00","mainEntityOfPage":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/"},"wordCount":363,"commentCount":0,"publisher":{"@id":"https:\/\/cloudproinc.azurewebsites.net\/#organization"},"image":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp","articleSection":[".NET","Azure","Blog","Entra ID"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/","url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/","name":"Create an App Registration for Microsoft Azure SDK for .NET - CPI Consulting","isPartOf":{"@id":"https:\/\/cloudproinc.azurewebsites.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/#primaryimage"},"image":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp","datePublished":"2024-10-10T22:17:51+00:00","dateModified":"2024-10-10T22:18:27+00:00","description":"Learn how to create an App Registration for Microsoft Azure SDK for .NET and manage Azure resources programmatically.","breadcrumb":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/#primaryimage","url":"\/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp","contentUrl":"\/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp","width":1024,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/11\/create-an-app-registration-for-microsoft-azure-sdk-for-net\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudproinc.azurewebsites.net\/"},{"@type":"ListItem","position":2,"name":"Create an App Registration for Microsoft Azure SDK for .NET"}]},{"@type":"WebSite","@id":"https:\/\/cloudproinc.azurewebsites.net\/#website","url":"https:\/\/cloudproinc.azurewebsites.net\/","name":"Cloud Pro Inc - CPI Consulting Pty Ltd","description":"Cloud, AI &amp; Cybersecurity Consulting | Melbourne","publisher":{"@id":"https:\/\/cloudproinc.azurewebsites.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudproinc.azurewebsites.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cloudproinc.azurewebsites.net\/#organization","name":"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd","url":"https:\/\/cloudproinc.azurewebsites.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudproinc.azurewebsites.net\/#\/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:\/\/cloudproinc.azurewebsites.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/cloudproinc.azurewebsites.net\/#\/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\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp","jetpack-related-posts":[{"id":780,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/10\/creating-a-storage-container-in-azure-using-azure-sdk-for-net\/","url_meta":{"origin":784,"position":0},"title":"Creating a Storage Container in Azure Using Azure SDK for .NET","author":"CPI Staff","date":"October 10, 2024","format":false,"excerpt":"In this\u00a0\u00a0Microsoft Azure\u00a0article, we will create a storage container inside an Azure storage account using Azure SDK for .NET. Estimated reading time: 3 minutes Table of contentsCreating a Storage Container in Azure Using Azure SDK for .NETCreate Storage AccountRetrieve Storage Account Connection String Using PowerShellCreate C# Console ApplicationCreate an Environment\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/net\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp 1x, \/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp 1.5x, \/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp 2x"},"classes":[]},{"id":751,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/07\/generate-dall-e-images-with-net-c-console-application\/","url_meta":{"origin":784,"position":1},"title":"Generate DALL-E Images with .NET C# Console Application","author":"CPI Staff","date":"October 7, 2024","format":false,"excerpt":"This Azure OpenAI article will show you how to generate DALL-E images with .NET C# Console application using the Azure SDK for .NET. Table of contentsAzure SDK for .NETGenerate DALL-E Images with .NET C# Console ApplicationInstall-PackageProgram.csRelated Articles Azure SDK for .NET allows us to build Gen-AI applications using .NET, the\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/net\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp 1x, \/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp 1.5x, \/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp 2x"},"classes":[]},{"id":53079,"url":"https:\/\/cloudproinc.com.au\/index.php\/2025\/01\/28\/running-c-net-applications-in-azure-devops-pipelines\/","url_meta":{"origin":784,"position":2},"title":"Running C# .NET Applications in Azure DevOps Pipelines","author":"CPI Staff","date":"January 28, 2025","format":false,"excerpt":"In this blog post, I will show you how to build and run a C# application in Azure DevOps Pipelines. Estimated reading time: 3 minutes Table of contentsWhat Are Azure Pipelines?Step 1: Build the Console ApplicationStep 2: Create a YAML PipelineStep 3: Create a New PipelinePipeline Execution OverviewSummaryRelated Articles What\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/net\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2025\/01\/Running-C-.NET-Applications-in-Azure-DevOps-Pipelines.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2025\/01\/Running-C-.NET-Applications-in-Azure-DevOps-Pipelines.webp 1x, \/wp-content\/uploads\/2025\/01\/Running-C-.NET-Applications-in-Azure-DevOps-Pipelines.webp 1.5x, \/wp-content\/uploads\/2025\/01\/Running-C-.NET-Applications-in-Azure-DevOps-Pipelines.webp 2x"},"classes":[]},{"id":457,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/07\/29\/streamlining-entra-id-app-registrations-with-azure-bicep\/","url_meta":{"origin":784,"position":3},"title":"Streamlining Entra ID App Registrations with Azure Bicep","author":"CPI Staff","date":"July 29, 2024","format":false,"excerpt":"In this Azure Bicep and Entra ID, we will show you how to create an Entra ID App Registration using Azure Bicep. Entra ID (formerly Azure Active Directory) is Microsoft's Azure and Microsoft 355 authentication and authorization service, handling all login events to both services. App Registrations in Entra ID\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\/Streamlining-Entra-ID-App-Registrations-with-Azure-Bicep.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/07\/Streamlining-Entra-ID-App-Registrations-with-Azure-Bicep.webp 1x, \/wp-content\/uploads\/2024\/07\/Streamlining-Entra-ID-App-Registrations-with-Azure-Bicep.webp 1.5x, \/wp-content\/uploads\/2024\/07\/Streamlining-Entra-ID-App-Registrations-with-Azure-Bicep.webp 2x"},"classes":[]},{"id":53463,"url":"https:\/\/cloudproinc.com.au\/index.php\/2025\/07\/08\/how-to-authenticate-to-azure-cli-with-a-service-principal\/","url_meta":{"origin":784,"position":4},"title":"How to Authenticate to Azure CLI with a Service Principal","author":"CPI Staff","date":"July 8, 2025","format":false,"excerpt":"In this blog post, we'll show you how to authenticate to Azure CLI with a Service Principal and login to Azure. Azure CLI is a command-line utility written in Python that allows users to manage Azure resources programmatically. It is widely used by DevOps engineers, developers, and IT professionals to\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\/10\/Creating-a-Text-to-Speech-Power-App-Using-OpenAI-Whisper.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/10\/Creating-a-Text-to-Speech-Power-App-Using-OpenAI-Whisper.webp 1x, \/wp-content\/uploads\/2024\/10\/Creating-a-Text-to-Speech-Power-App-Using-OpenAI-Whisper.webp 1.5x, \/wp-content\/uploads\/2024\/10\/Creating-a-Text-to-Speech-Power-App-Using-OpenAI-Whisper.webp 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/784","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=784"}],"version-history":[{"count":1,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/784\/revisions"}],"predecessor-version":[{"id":785,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/784\/revisions\/785"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media\/632"}],"wp:attachment":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}