The subscription is not registered to Microsoft.insights resource provider


When I am creating Alert from Azure Monitor services I found below massage restricted me to complete the process of creating alert after few search on Microsoft document I found that I need to register for the Microsoft.insights provider to my subscription and they we can do it from azure portal or using PowerShell.

Creation of alert rules will fail, since the subscription is not registered to Microsoft.insights resource provider

Fix the issue using PowerShell command

Register-AzureRmResourceProvider –ProviderNamespace Microsoft.Insights

Fix the issue from Azure Portal

Under subscription in the left side select Resource provider and search about Microsoft.insights then do register for it easily

Keep Following Me

How to Solve Error Azure Recovery Services vault cannot be deleted


Today when I am doing cleaning for the azure resources that I don’t need it to reduce the cost, I tried to remove Resource Group contain Recovery Service vault Services but it gives me error

Failed to delete resource group prodresouorcegroup: Deletion of resource group ‘prodresouorcegroup’ failed as resources with identifiers ‘Microsoft.RecoveryServices/vaults/elmasryvmbackupvault1’ could not be deleted

Then when I tried to remove the recovery services vault it gives me another error

Vault cannot be deleted as there are existing resources within the vault. Please ensure there are no backup items, protected servers or backup management servers associated with this vault. Unregister the following containers associated with this vault before proceeding for deletion. For instructions, see https://aka.ms/AB-AA4ecq5

After some Google Search I know the correct steps for deleting  Azure Recovery services vault

Continue reading “How to Solve Error Azure Recovery Services vault cannot be deleted”