Skip to content

Commit 9146f86

Browse files
Merge pull request #288108 from derdanu/docs-editor/documentation-government-get-s-1728478257
Update documentation-government-get-started-connect-to-storage.md
2 parents 7c3d147 + 98b2f82 commit 9146f86

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

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

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -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)