Skip to content

Commit 49af692

Browse files
Add info for registering resource provider
1 parent 3ac49fd commit 49af692

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

articles/storage/blobs/storage-blob-query-endpoint-srp.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ms.custom: devguide-csharp, devguide-java, devguide-javascript, devguide-python
1818
A Blob Storage endpoint forms the base address for all objects within a storage account. Blob Storage supports two types of endpoints:
1919

2020
- A [standard endpoint](../common/storage-account-overview.md#standard-endpoints) includes the unique storage account name along with a fixed domain name. The format of a standard endpoint is `https://<storage-account>.blob.core.windows.net`.
21-
- An [Azure DNS zone endpoint](../common/storage-account-overview.md#azure-dns-zone-endpoints-preview) dynamically selects an Azure DNS zone and assigns it to the storage account when it's created. The format of an Azure DNS Zone endpoint is `https://<storage-account>.z[00-99].blob.storage.azure.net`.
21+
- An [Azure DNS zone endpoint (preview)](../common/storage-account-overview.md#azure-dns-zone-endpoints-preview) dynamically selects an Azure DNS zone and assigns it to the storage account when it's created. The format of an Azure DNS Zone endpoint is `https://<storage-account>.z[00-99].blob.storage.azure.net`.
2222

2323
When your application creates a service client object that connects to Blob Storage data resources, you pass a URI referencing the endpoint to the service client constructor. You can construct the URI string manually, or you can query for the service endpoint at runtime using the Azure Storage management library.
2424

@@ -197,6 +197,32 @@ Client library information:
197197

198198
---
199199

200+
### Register the Storage resource provider
201+
202+
A resource provider must be registered with your Azure subscription before you can use it. For this example, the resource provider **Microsoft.Storage** needs to be registered so that your subscription can work with it.
203+
204+
You can register the Storage resource provider, or check the registration status, using [Azure portal](/azure/azure-resource-manager/management/resource-providers-and-types#azure-portal), [Azure CLI](/azure/azure-resource-manager/management/resource-providers-and-types#azure-cli), or [Azure PowerShell](/azure/azure-resource-manager/management/resource-providers-and-types#azure-powershell).
205+
206+
You can also use the Azure management libraries to check the registration status and register the Storage resource provider, as shown in the following examples:
207+
208+
## [.NET](#tab/dotnet)
209+
210+
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/BlobQueryEndpoint/QueryEndpoint.cs" id="Snippet_RegisterSRP":::
211+
212+
## [Java](#tab/java)
213+
214+
:::code language="java" source="~/azure-storage-snippets/blobs/howto/Java/blob-query-endpoint/src/main/java/com/blobs/queryendpoint/AccountProperties.java" id="Snippet_RegisterSRP":::
215+
216+
## [JavaScript](#tab/javascript)
217+
218+
:::code language="javascript" source="~/azure-storage-snippets/blobs/howto/JavaScript/blob-query-endpoint/index.js" id="Snippet_register_srp":::
219+
220+
## [Python](#tab/python)
221+
222+
:::code language="python" source="~/azure-storage-snippets/blobs/howto/python/blob-query-endpoint/blob-query-endpoint.py" id="Snippet_register_srp":::
223+
224+
---
225+
200226
## Query for the Blob Storage endpoint
201227

202228
To retrieve the Blob Storage endpoint for a given storage account, we need to get the storage account properties by calling the [Get Properties](/rest/api/storagerp/storage-accounts/get-properties) operation. The following code samples use both the data access and management libraries to get a Blob Storage endpoint for a specified storage account:

0 commit comments

Comments
 (0)