Skip to content

Commit c6c56a8

Browse files
Update endpoints
1 parent 9447037 commit c6c56a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public class test {
126126

127127
// Create the table service client.
128128
TableServiceClient tableServiceClient = new TableServiceClientBuilder()
129-
.endpoint("https://<storage-account-name>.table.core.windows.net/")
129+
.endpoint("https://<storage-account-name>.table.core.usgovcloudapi.net/")
130130
.credential(credential)
131131
.buildClient();
132132

@@ -221,7 +221,7 @@ const credentialOptions = new DefaultAzureCredentialOptions(
221221
);
222222

223223
const blobServiceClient = new BlobServiceClient(
224-
`https://<storage-account-name>.blob.core.windows.net`,
224+
`https://<storage-account-name>.blob.core.usgovcloudapi.net`,
225225
new DefaultAzureCredential(credentialOptions)
226226
);
227227

@@ -263,7 +263,7 @@ from azure.storage.blob import BlobServiceClient
263263

264264
credential = DefaultAzureCredential(authority=AzureAuthorityHosts.AZURE_GOVERNMENT)
265265

266-
blob_service_client = BlobServiceClient("https://<storage-account-name>.blob.core.windows.net", credential=credential)
266+
blob_service_client = BlobServiceClient("https://<storage-account-name>.blob.core.usgovcloudapi.net", credential=credential)
267267

268268
container_name ="<container-name>"
269269
container = blob_service_client.get_container_client(container=container_name)

0 commit comments

Comments
 (0)