Skip to content

Commit 38fc19a

Browse files
committed
Learn Editor: Update documentation-government-get-started-connect-to-storage.md
1 parent 7c3d147 commit 38fc19a

File tree

1 file changed

+3
-36
lines changed

1 file changed

+3
-36
lines changed

articles/azure-government/documentation-government-get-started-connect-to-storage.md

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ The [Microsoft Azure Storage Explorer](https://azure.microsoft.com/features/stor
2424
### Getting Started with Storage Explorer
2525
1. Open the Azure Storage Explorer desktop application.
2626

27-
2. You'll be prompted to add an Azure account; in the dropdown choose the "Azure US Government" option:
27+
1. You'll be prompted to add an Azure account; in the dropdown choose the "Azure US Government" option:
2828

2929
![storage1](./media/documentation-government-get-started-connect-with-storage-img1.png)
30-
3. Sign in to your Azure Government account and you can see all of your resources. The Storage Explorer should look similar to the screenshot below. Click on your Storage Account to see the blob containers, file shares, Queues, and Tables.
30+
1. Sign in to your Azure Government account and you can see all of your resources. The Storage Explorer should look similar to the screenshot below. Click on your Storage Account to see the blob containers, file shares, Queues, and Tables.
3131

3232
![storage2](./media/documentation-government-get-started-connect-with-storage-img2.png)
33-
33+
3434
For more information about Azure Storage Explorer, see [Get started with Storage Explorer](../vs-azure-tools-storage-manage-with-storage-explorer.md).
3535

3636
## Connecting to the Storage API
@@ -138,39 +138,6 @@ These endpoint differences must be taken into account when you connect to storag
138138
print("\t Blob name: " + blob.name)
139139
```
140140

141-
#### PHP
142-
1. Download the [Azure Storage SDK for PHP](https://github.com/Azure/azure-sdk-for-php).
143-
2. The code below accesses Azure Table Storage using the Azure Storage API.
144-
In the `connectionString` variable, you'll notice that there's a `TableEndpoint` parameter.
145-
Depending on which service you're using, you must define the parameter and set it to the endpoint for that service:
146-
147-
- BlobEndpoint= //ends with 'blob.core.usgovcloudapi.net'
148-
- QueueEndpoint= //ends with 'queue.core.usgovcloudapi.net'
149-
- TableEndpoint= //ends with 'table.core.usgovcloudapi.net'
150-
>[!Note]
151-
> You can find these endpoints by navigating to your Storage Account from the [portal](https://portal.azure.us).
152-
> **Paste** in your storage account name, key, and service endpoint in the `connectionString` variable.
153-
>
154-
155-
```php
156-
<?php
157-
require_once "vendor/autoload.php";
158-
use WindowsAzure\Common\ServicesBuilder;
159-
use MicrosoftAzure\Storage\Common\ServiceException;
160-
$connectionString = 'DefaultEndpointsProtocol=http;AccountName=<accountname>;AccountKey=<accountkey>;TableEndpoint=http://<storageaccountname>.table.core.usgovcloudapi.net/';
161-
162-
$tableRestProxy = ServicesBuilder::getInstance()->createTableService($connectionString);
163-
try {
164-
// Create table.
165-
$tableRestProxy->createTable("test");
166-
}
167-
catch(ServiceException $e){
168-
$code = $e->getCode();
169-
$error_message = $e->getMessage();
170-
}
171-
?>
172-
```
173-
174141
## Next steps
175142

176143
- Read more about [Azure Storage](../storage/index.yml).

0 commit comments

Comments
 (0)