Azure Administration - 15 Resource Providers Lab Activity
Автор: sahil roy
Загружено: 2021-07-20
Просмотров: 251
Resources in Azure are made available by a Resource provider, registered to the subscription. When attempting to create certain types of resources in Azure, an error may occur, preventing the resource from being created. This may happen because the Resource Provider for the type of resource that is being created has not been registered to the subscription.
The Error will look something like this:
The subscription [subName] does not have permissions to register the resource provider(s): [ProviderNamespace]
The provider name space is a name that looks like this:
Microsoft.Cache or Microsoft.Search.
Azure subscriptions come with a default set of Resource Providers to support creating various resources. For example, if you want to create a virtual machine, the Microsoft.Compute Resource Provider needs to be registered to the subscription to successfully create a virtual machine.
To create resources that use Resource Providers that are not included in the default set provided with a new subscription, will need to be registered to the subscription by a user with subscription-level access, using one of the following methods:
Pre-register all available or a specific Resource Provider to the subscription.
Create custom role-based access control to permit registrations of Resource Providers as-needed.
With both methods, Resource Providers are registered to the subscription using Powershell commands. The additional Resource Providers are typically registered to the subscription in 1-10 minutes, after the Powershell commands have been executed.
Pre-registering all available or a specific Resource Provider to the subscription
The first two commands will register all available Resource Providers at the time of running the Powershell command. Every time a new service is added to Azure including Azure Marketplace, these commands will need to be ran again to register new providers for the new services. The third command is used to register a specific Resource Provider.
To see a list of all available resource providers run the following PowerShell command:
get-AzureRmResourceProvider -ListAvailable | select ProviderNamespace, RegistrationState
note: you must be logged into the subscription with a user account with sufficient privileges to register Resource Providers while running these Powershell commands.
To see a list of resource providers that are not registered, run the following PowerShell Command:
Get-AzureRmResourceProvider -ListAvailable | where {$_.RegistrationState -eq "NotRegistered"} | Select ProviderNamespace, RegistrationState
To register all available resource providers in the current subscription run the following PowerShell command:
Get-AzureRmResourceProvider -ListAvailable | where {$_.RegistrationState -eq "NotRegistered"} | Register-AzureRmResourceProvider

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: