<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>azure-portal on The Cloud Hub</title>
    <link>https://thecloudhub.com/tag/azure-portal/</link>
    <description>Recent content in azure-portal on The Cloud Hub</description>
    <generator>Hugo -- 0.118.2</generator>
    <language>en-au</language>
    <lastBuildDate>Mon, 12 Dec 2022 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://thecloudhub.com/tag/azure-portal/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Getting started with Azure Policies</title>
      <link>https://thecloudhub.com/2022/12/12/getting-started-with-azure-policies/</link>
      <pubDate>Mon, 12 Dec 2022 00:00:00 +0000</pubDate>
      <guid>https://thecloudhub.com/2022/12/12/getting-started-with-azure-policies/</guid>
      <description>Once you start adopting a cloud service such as Microsoft Azure, one of the first tasks should be looking at how to enforce organisational and best-practice policies at scale when resources are being created.
Fortunately Microsoft makes enforcing policies relatively straightforward via a service called Azure Policy. It combines a number of best practice, out-of-the-box policies with the ability for you to also create your own custom policy definitions. You can setup guardrails and enforce compliance easily.</description>
      <content:encoded><![CDATA[<p>Once you start adopting a cloud service such as Microsoft Azure, one of the first tasks should be looking at how to enforce organisational and best-practice policies at scale when resources are being created.</p>
<p>Fortunately Microsoft makes enforcing policies relatively straightforward via a service called <a href="https://azure.microsoft.com/en-au/pricing/details/azure-policy/#overview">Azure Policy</a>. It combines a number of best practice, <a href="https://learn.microsoft.com/en-us/azure/governance/policy/samples/built-in-policies">out-of-the-box policies</a> with the ability for you to also create your own custom policy definitions. You can setup guardrails and enforce compliance easily.</p>
<p>The best bit? Aside from Azure Arc resources, Azure Policy is available <a href="https://azure.microsoft.com/pricing/details/azure-policy/#overview">free of charge</a>.</p>
<h3 id="setting-up-policies">Setting up policies</h3>
<p>Once you have an active Azure subscription, the first thing you&rsquo;ll want to do is sign in to the <a href="https://portal.azure.com">Azure portal</a> and open the &lsquo;Policy&rsquo; service. You can find this by searching for &lsquo;Policy&rsquo;.</p>
<p>If you haven&rsquo;t setup any policies and you have no provisioned resources, you should see a dashboard showing a 100% compliance rate. Otherwise the dashboard may show you issues that require attention with your provisioned resources.</p>
<p>The &lsquo;Getting Started&rsquo; tab allows you to quickly setup policy assignments for your cloud environment. This includes things such as blocking the provision of various resource types or requiring tags on resources.</p>
<!-- raw HTML omitted -->
<p><img loading="lazy" src="images/getting-started-azure-policy-1024x612.png" alt=""  />
</p>
<!-- raw HTML omitted -->
<p>The &lsquo;Getting Started&rsquo; tab for Azure Policy</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
<p>Alternatively you can select &ldquo;Definitions&rdquo; under &ldquo;Authoring&rdquo; and browse the complete list of policy definitions that can be applied.</p>
<p>Before configuring a policy, consider whether you want to retrospectively apply a policy to existing Azure resources or whether it should only apply to <em>new</em> resources being provisioned.</p>
<p>By default policies only apply to new resources, but you can update existing resources after the policy has been assigned.</p>
<p>Once you select a policy, you can configure the following:</p>
<ul>
<li>
<p><strong>Scope</strong>: The tenant, management group, subscription (optional) and resource group (optional) that the policy will apply to</p>
</li>
<li>
<p><strong>Basics</strong>: The policy definition, assignment name and brief description of the policy. You can also specify whether the policy is enforced or disabled, and see who assigned the policy</p>
</li>
<li>
<p><strong>Parameters</strong>: Some policies may require additional parameters. For example, the &lsquo;Not allowed resource types&rsquo; policy requires you to select the types of resources you want to prohibit from being provisioned</p>
</li>
<li>
<p><strong>Remediation</strong>: If you&rsquo;re deploying a policy with the <code>deployIfNotExists</code> and modify effect types you&rsquo;ll need to provide a managed identity that can be used to edit tags and deploy resources where required. You may also need to configure role permissions</p>
</li>
<li>
<p><strong>Non-compliance message</strong>: Message to show when a resource or modification is denied due to the policy, or if a resource is presently non-compliant</p>
</li>
</ul>
<!-- raw HTML omitted -->
<p><img loading="lazy" src="images/azure-policy-parameters-910x1024.png" alt=""  />
</p>
<!-- raw HTML omitted -->
<p>Where needed, provide Azure policy parameters</p>
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
<h3 id="monitoring-compliance">Monitoring compliance</h3>
<p>Once you&rsquo;ve configured your policies, the &ldquo;Compliance&rdquo; tab will update to show resources and their compliance state.</p>
<p>The list of resources shown can be filtered by scope (management group, subscription, resource group or resource type), definition type (all, initiative or policy), compliance state (such as compliant, non-compliant, not registered) and by name or ID.</p>
]]></content:encoded>
    </item>
    <item>
      <title>How to fix Azure MissingSubscriptionRegistration error</title>
      <link>https://thecloudhub.com/2021/07/07/how-to-fix-azure-missingsubscriptionregistration-error/</link>
      <pubDate>Wed, 07 Jul 2021 00:00:00 +0000</pubDate>
      <guid>https://thecloudhub.com/2021/07/07/how-to-fix-azure-missingsubscriptionregistration-error/</guid>
      <description>Are you trying to deploy an Azure Resource Manager (ARM) template and getting the error MissingSubscriptionRegistration? In this article we&amp;rsquo;ll take a look at what the cause of the error is, and how you can easily rectify the problem.
Sometimes when trying to run an ARM template in a new subscription to create Azure resources, customers come across the following error:
MissingSubscriptionRegistration: The subscription is not registered to use namespace &#39;Microsoft.</description>
      <content:encoded><![CDATA[<p>Are you trying to deploy an Azure Resource Manager (ARM) template and getting the error <code>MissingSubscriptionRegistration</code>? In this article we&rsquo;ll take a look at what the cause of the error is, and how you can easily rectify the problem.</p>
<p>Sometimes when trying to run an ARM template in a new subscription to create Azure resources, customers come across the following error:</p>
<p><code>MissingSubscriptionRegistration: The subscription is not registered to use namespace 'Microsoft.Web'</code></p>
<p>The namespace may be different depending on the resources you&rsquo;re trying to create - but effectively this error is telling you that for your subscription, you cannot create resources belonging to the aforementioned namespace. In the case of this example, that&rsquo;s <code>Microsoft.Web</code> - specifically an App Service.</p>
<p>By default, a new subscription will have most resource providers <strong>disabled</strong> as <a href="https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-providers-and-types#register-resource-provider">a precautionary security measure</a>. You can see a full list of default <strong>enabled</strong> providers <a href="https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers">here</a>.</p>
<p>By having most providers disabled, compromised accounts are unable to create a raft of resources. Therefore it&rsquo;s <strong>critical</strong> that you only enable namespaces you need to use.</p>
<p>Normally deploying an ARM template should automatically enable the resource namespace - but sometimes it doesn&rsquo;t work as expected. Similarly, creating a resource manually in the Azure portal should also automatically enable the resource namespace.</p>
<p>Fixing this error is quite straightforward, assuming you have owner or contributor access to the subscription. If you don&rsquo;t, you&rsquo;ll need to get your IT administrator to make these changes on your behalf.</p>
<p>Open <a href="https://portal.azure.com">the Azure Portal</a>, navigate to <code>Subscriptions</code> and choose the subscription you&rsquo;re trying to deploy the ARM template into. Then, go to <code>Resource providers</code> in the sidebar.</p>
<p><img loading="lazy" src="images/resource_providers-1024x737.png" alt=""  />
</p>
<p>Now scroll through the list of all resource providers until you see the one mentioned in the error message you received. Click the namespace to highlight it, and then choose <code>Register</code> from the menu bar.</p>
<p>This will now activate the namespace, allowing you to create resources that reside within it and thereby the error will be resolved.</p>
<p>Note however that the namespace may not be activated immediately - you may need to wait up to 15 minutes before running the ARM template deployment again.</p>
<p>The registering status shows in the portal while the namespace is being activated - so a quick refresh of the page will allow you to see when the work is completed.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
