Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Registering the Microsoft Discovery resource provider is a prerequisite for creating and using Microsoft Discovery resources in your Azure subscription. This article explains what resource provider registration means, what permissions you need, and how to complete registration using the Azure portal, Azure CLI, Azure PowerShell, or the REST API.
What is a resource provider?
An Azure resource provider is a set of REST operations that enable functionality for a specific Azure service. The Microsoft Discovery service uses a resource provider named Microsoft.Discovery, which defines REST operations for managing Discovery resources.
Resource types in Microsoft Discovery follow the format Microsoft.Discovery/{resource-type}, for example:
Microsoft.Discovery/workspacesMicrosoft.Discovery/storagesMicrosoft.Discovery/supercomputersMicrosoft.Discovery/bookshelves
Registering a resource provider configures your Azure subscription to work with that service. You need to register Microsoft.Discovery and its dependent providers before you can deploy any Discovery resources.
Prerequisites
Before registering the Microsoft Discovery resource provider, ensure you have:
- An active Azure subscription enabled by the Microsoft Discovery team to use the
Microsoft.Discoveryresource provider. - One of the following roles assigned to your account at the subscription scope:
- Contributor role (or higher)
- Owner role
- A custom role with the
/register/actionoperation for resource providers
Important
Only register resource providers when you're ready to use them, to maintain least-privilege access within your subscription.
Registration methods
You can register the Microsoft.Discovery resource provider using the Azure portal, Azure CLI, Azure PowerShell, or the REST API.
Azure portal
- Sign in to the Azure portal.
- Search for and select Subscriptions.
- Select the subscription enabled for Microsoft Discovery.
- In the left menu under Settings, select Resource providers.
- In the search box, type
Microsoft.Discovery. - Select the
Microsoft.Discoveryprovider from the list. - Select Register.
The registration status changes from Not Registered to Registering, and then to Registered. Registration can take a few minutes. It runs in parallel across supported regions, so you don't need to wait for all regions to finish before you create resources.
After registering Microsoft.Discovery, register the following dependent resource providers using the same steps:
Microsoft.NetworkMicrosoft.ComputeMicrosoft.StorageMicrosoft.ManagedIdentityMicrosoft.AlertsManagementMicrosoft.AuthorizationMicrosoft.CognitiveServicesMicrosoft.ContainerInstanceMicrosoft.ContainerRegistryMicrosoft.ContainerServiceMicrosoft.DocumentDBMicrosoft.FeaturesMicrosoft.KeyVaultMicrosoft.MachineLearningServicesMicrosoft.NetAppMicrosoft.OperationalInsightsMicrosoft.ResourceGraphMicrosoft.SearchMicrosoft.WebMicrosoft.InsightsMicrosoft.ResourcesMicrosoft.SqlMicrosoft.AppMicrosoft.Bing
Verify registration in the portal
Refresh the Resource providers page and confirm that all the Resource Providers shows a Registered status.
Azure CLI
Prerequisites
- Azure CLI installed
- Authenticated to your Azure account (
az login)
Register the resource provider
az provider register --namespace Microsoft.Discovery
Verify registration
az provider show --namespace Microsoft.Discovery --query "registrationState"
The command returns "Registered" when registration is complete.
List all resource providers and their status
az provider list --query "[].{Provider:namespace, Status:registrationState}" --out table
Azure PowerShell
Prerequisites
- Azure PowerShell module installed
- Authenticated to your Azure account (
Connect-AzAccount)
Register the resource provider
Register-AzResourceProvider -ProviderNamespace Microsoft.Discovery
Verify registration
Get-AzResourceProvider -ProviderNamespace Microsoft.Discovery
REST API
For programmatic registration, use the Azure Resource Manager REST API.
Request
POST https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Discovery/register?api-version=2021-04-01
Required headers
| Header | Value |
|---|---|
Authorization |
Bearer {access-token} |
Content-Type |
application/json |
Post-registration steps
After registration is complete:
Verify the registration status. Confirm that
Microsoft.Discoveryshows Registered in the portal, or run the CLI or PowerShell verification commands.Check available resource types. In the Azure portal search bar, type Microsoft Discovery to see all available Microsoft Discovery resource types in your subscription.
Proceed with resource creation. You can now create the following Microsoft Discovery resources:
- Workspaces
- Projects
- Investigations
- Supercomputers
- Nodepools
- Bookshelves
- Storage Containers
- Tools
- Agents