diff --git a/sdk/resourcemanager/README.md b/sdk/resourcemanager/README.md index e44ecad326cbc..f334c60975bb4 100644 --- a/sdk/resourcemanager/README.md +++ b/sdk/resourcemanager/README.md @@ -273,7 +273,7 @@ azure.storageAccounts().define("") .flatMap(storageAccount -> azure.storageBlobContainers() .defineContainer("container") .withExistingBlobService(rgName, storageAccount.name()) - .withPublicAccess(PublicAccess.BLOB) + .withPublicAccess(PublicAccess.NONE) .createAsync() ) //... diff --git a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubImpl.java b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubImpl.java index 84f95af9ece95..ebe997167ef8a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/implementation/EventHubImpl.java @@ -517,7 +517,7 @@ private Mono createContainerIfNotExistsAsync(final StorageAccount sto .onErrorResume(throwable -> storageManager.blobContainers() .defineContainer(containerName) .withExistingBlobService(storageAccount.resourceGroupName(), storageAccount.name()) - .withPublicAccess(PublicAccess.CONTAINER) + .withPublicAccess(PublicAccess.NONE) .createAsync()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/utils/PagedConverter.java b/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/utils/PagedConverter.java index b3e7a0cda449c..826a173422472 100644 --- a/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/utils/PagedConverter.java +++ b/sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/utils/PagedConverter.java @@ -173,15 +173,20 @@ public static PagedFlux convertListToPagedFlux(Mono>> re private static final class PagedIterableImpl extends PagedIterable { - private final PagedIterable pageIterable; + private final PagedIterable pagedIterable; private final Function mapper; private final Function, PagedResponse> pageMapper; - private PagedIterableImpl(PagedIterable pageIterable, Function mapper) { - super(new PagedFlux(Mono::empty)); - this.pageIterable = pageIterable; + private PagedIterableImpl(PagedIterable pagedIterable, Function mapper) { + super(PagedFlux.create(() -> (continuationToken, pageSize) + -> Flux.fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper))))); + this.pagedIterable = pagedIterable; this.mapper = mapper; - this.pageMapper = page -> new PagedResponseBase( + this.pageMapper = getPageMapper(mapper); + } + + private static Function, PagedResponse> getPageMapper(Function mapper) { + return page -> new PagedResponseBase( page.getRequest(), page.getStatusCode(), page.getHeaders(), @@ -192,56 +197,56 @@ private PagedIterableImpl(PagedIterable pageIterable, Function mapper) @Override public Stream stream() { - return pageIterable.stream().map(mapper); + return pagedIterable.stream().map(mapper); } @Override public Stream> streamByPage() { - return pageIterable.streamByPage().map(pageMapper); + return pagedIterable.streamByPage().map(pageMapper); } @Override public Stream> streamByPage(String continuationToken) { - return pageIterable.streamByPage(continuationToken).map(pageMapper); + return pagedIterable.streamByPage(continuationToken).map(pageMapper); } @Override public Stream> streamByPage(int preferredPageSize) { - return pageIterable.streamByPage(preferredPageSize).map(pageMapper); + return pagedIterable.streamByPage(preferredPageSize).map(pageMapper); } @Override public Stream> streamByPage(String continuationToken, int preferredPageSize) { - return pageIterable.streamByPage(continuationToken, preferredPageSize).map(pageMapper); + return pagedIterable.streamByPage(continuationToken, preferredPageSize).map(pageMapper); } @Override public Iterator iterator() { - return new IteratorImpl(pageIterable.iterator(), mapper); + return new IteratorImpl(pagedIterable.iterator(), mapper); } @Override public Iterable> iterableByPage() { return new IterableImpl, PagedResponse>( - pageIterable.iterableByPage(), pageMapper); + pagedIterable.iterableByPage(), pageMapper); } @Override public Iterable> iterableByPage(String continuationToken) { return new IterableImpl, PagedResponse>( - pageIterable.iterableByPage(continuationToken), pageMapper); + pagedIterable.iterableByPage(continuationToken), pageMapper); } @Override public Iterable> iterableByPage(int preferredPageSize) { return new IterableImpl, PagedResponse>( - pageIterable.iterableByPage(preferredPageSize), pageMapper); + pagedIterable.iterableByPage(preferredPageSize), pageMapper); } @Override public Iterable> iterableByPage(String continuationToken, int preferredPageSize) { return new IterableImpl, PagedResponse>( - pageIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); + pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-resources/src/test/java/com/azure/resourcemanager/resources/fluentcore/utils/PagedConverterTests.java b/sdk/resourcemanager/azure-resourcemanager-resources/src/test/java/com/azure/resourcemanager/resources/fluentcore/utils/PagedConverterTests.java index c142dd8982b36..7eda2b26605cd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-resources/src/test/java/com/azure/resourcemanager/resources/fluentcore/utils/PagedConverterTests.java +++ b/sdk/resourcemanager/azure-resourcemanager-resources/src/test/java/com/azure/resourcemanager/resources/fluentcore/utils/PagedConverterTests.java @@ -58,6 +58,17 @@ public void testMapPage() { Assertions.assertFalse(iterator.hasNext()); } + @Test + public void testMapPageWithPagedIterable() { + PagedFlux pagedFlux = mockPagedFlux("base", 0, 10, 4); + PagedIterable pagedIterable = new PagedIterable<>(pagedFlux); + + PagedIterable convertedPagedIterable = PagedConverter.mapPage(pagedIterable, item -> item + "#"); + + PagedIterable afterMapPage = convertedPagedIterable.mapPage(item -> item + "#"); + Assertions.assertEquals(10, afterMapPage.stream().count()); + } + @Test public void testMapPageIterator() { PagedFlux pagedFlux = mockPagedFlux("base", 0, 10, 4); diff --git a/sdk/resourcemanager/azure-resourcemanager-storage/CHANGELOG.md b/sdk/resourcemanager/azure-resourcemanager-storage/CHANGELOG.md index 494ef5d15c87b..8f2a0b433143a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-storage/CHANGELOG.md +++ b/sdk/resourcemanager/azure-resourcemanager-storage/CHANGELOG.md @@ -2,6 +2,7 @@ ## 2.3.0-beta.1 (Unreleased) +- Storage account default to Transport Layer Security (TLS) 1.2 for HTTPS ## 2.2.0 (2021-02-24) diff --git a/sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/implementation/StorageAccountImpl.java b/sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/implementation/StorageAccountImpl.java index 65501ed62aa72..8f8456aeb69ba 100644 --- a/sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/implementation/StorageAccountImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/implementation/StorageAccountImpl.java @@ -17,6 +17,7 @@ import com.azure.resourcemanager.storage.models.IdentityType; import com.azure.resourcemanager.storage.models.Kind; import com.azure.resourcemanager.storage.models.LargeFileSharesState; +import com.azure.resourcemanager.storage.models.MinimumTlsVersion; import com.azure.resourcemanager.storage.models.ProvisioningState; import com.azure.resourcemanager.storage.models.PublicEndpoints; import com.azure.resourcemanager.storage.models.Sku; @@ -189,6 +190,35 @@ public boolean isLargeFileSharesEnabled() { return this.innerModel().largeFileSharesState() == LargeFileSharesState.ENABLED; } + @Override + public MinimumTlsVersion minimumTlsVersion() { + return this.innerModel().minimumTlsVersion(); + } + + @Override + public boolean isHttpsTrafficOnly() { + if (this.innerModel().enableHttpsTrafficOnly() == null) { + return true; + } + return this.innerModel().enableHttpsTrafficOnly(); + } + + @Override + public boolean isBlobPublicAccessAllowed() { + if (this.innerModel().allowBlobPublicAccess() == null) { + return true; + } + return this.innerModel().allowBlobPublicAccess(); + } + + @Override + public boolean isSharedKeyAccessAllowed() { + if (this.innerModel().allowSharedKeyAccess() == null) { + return true; + } + return this.innerModel().allowSharedKeyAccess(); + } + @Override public List getKeys() { return this.getKeysAsync().block(); @@ -378,7 +408,61 @@ public StorageAccountImpl withOnlyHttpsTraffic() { @Override public StorageAccountImpl withHttpAndHttpsTraffic() { - updateParameters.withEnableHttpsTrafficOnly(false); + if (isInCreateMode()) { + createParameters.withEnableHttpsTrafficOnly(false); + } else { + updateParameters.withEnableHttpsTrafficOnly(false); + } + return this; + } + + @Override + public StorageAccountImpl withMinimumTlsVersion(MinimumTlsVersion minimumTlsVersion) { + if (isInCreateMode()) { + createParameters.withMinimumTlsVersion(minimumTlsVersion); + } else { + updateParameters.withMinimumTlsVersion(minimumTlsVersion); + } + return this; + } + + @Override + public StorageAccountImpl enableBlobPublicAccess() { + if (isInCreateMode()) { + createParameters.withAllowBlobPublicAccess(true); + } else { + updateParameters.withAllowBlobPublicAccess(true); + } + return this; + } + + @Override + public StorageAccountImpl disableBlobPublicAccess() { + if (isInCreateMode()) { + createParameters.withAllowBlobPublicAccess(false); + } else { + updateParameters.withAllowBlobPublicAccess(false); + } + return this; + } + + @Override + public StorageAccountImpl enableSharedKeyAccess() { + if (isInCreateMode()) { + createParameters.withAllowSharedKeyAccess(true); + } else { + updateParameters.withAllowSharedKeyAccess(true); + } + return this; + } + + @Override + public StorageAccountImpl disableSharedKeyAccess() { + if (isInCreateMode()) { + createParameters.withAllowSharedKeyAccess(false); + } else { + updateParameters.withAllowSharedKeyAccess(false); + } return this; } diff --git a/sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/implementation/StorageAccountsImpl.java b/sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/implementation/StorageAccountsImpl.java index 17da112811ed2..49bcb25e23f3a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/implementation/StorageAccountsImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/implementation/StorageAccountsImpl.java @@ -8,6 +8,7 @@ import com.azure.resourcemanager.storage.fluent.StorageAccountsClient; import com.azure.resourcemanager.storage.fluent.models.ListServiceSasResponseInner; import com.azure.resourcemanager.storage.models.CheckNameAvailabilityResult; +import com.azure.resourcemanager.storage.models.MinimumTlsVersion; import com.azure.resourcemanager.storage.models.ServiceSasParameters; import com.azure.resourcemanager.storage.models.StorageAccount; import com.azure.resourcemanager.storage.models.StorageAccountSkuType; @@ -40,7 +41,11 @@ public Mono checkNameAvailabilityAsync(String name) @Override public StorageAccountImpl define(String name) { - return wrapModel(name).withSku(StorageAccountSkuType.STANDARD_RAGRS).withGeneralPurposeAccountKindV2(); + return wrapModel(name) + .withSku(StorageAccountSkuType.STANDARD_RAGRS) + .withGeneralPurposeAccountKindV2() + .withOnlyHttpsTraffic() + .withMinimumTlsVersion(MinimumTlsVersion.TLS1_2); } @Override diff --git a/sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccount.java b/sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccount.java index 2a9312536430c..26a7cb61fdc68 100644 --- a/sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccount.java +++ b/sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/models/StorageAccount.java @@ -141,6 +141,32 @@ public interface StorageAccount */ boolean isLargeFileSharesEnabled(); + /** + * @return the minimum TLS version for HTTPS traffic. + */ + MinimumTlsVersion minimumTlsVersion(); + + /** + * Checks whether storage account only allow HTTPS traffic. + * + * @return true if only allow HTTPS traffic, false otherwise + */ + boolean isHttpsTrafficOnly(); + + /** + * Checks whether blob public access is allowed. + * + * @return true if blob public access is allowed, false otherwise + */ + boolean isBlobPublicAccessAllowed(); + + /** + * Checks whether shared key access is allowed. + * + * @return true if shared key access is allowed, false otherwise + */ + boolean isSharedKeyAccessAllowed(); + /** * Fetch the up-to-date access keys from Azure for this storage account. * @@ -334,6 +360,40 @@ interface WithAccessTraffic { * @return the next stage of storage account definition */ WithCreate withOnlyHttpsTraffic(); + + /** + * Specifies that both http and https traffic should be allowed to storage account. + * + * @return the next stage of storage account definition + */ + WithCreate withHttpAndHttpsTraffic(); + + /** + * Specifies the minimum TLS version for HTTPS traffic. + * + * @param minimumTlsVersion the minimum TLS version + * @return the next stage of storage account definition + */ + WithCreate withMinimumTlsVersion(MinimumTlsVersion minimumTlsVersion); + } + + /** The stage of storage account definition allowing to configure blob access. */ + interface WithBlobAccess { + /** + * Disables blob public access. + * + * Disabling in storage account overrides the public access settings for individual containers. + * + * @return the next stage of storage account definition + */ + WithCreate disableBlobPublicAccess(); + + /** + * Disables shared key access. + * + * @return the next stage of storage account definition + */ + WithCreate disableSharedKeyAccess(); } /** The stage of storage account definition allowing to configure network access settings. */ @@ -457,6 +517,7 @@ interface WithCreate DefinitionStages.WithAzureFilesAadIntegration, DefinitionStages.WithLargeFileShares, DefinitionStages.WithHns, + DefinitionStages.WithBlobAccess, Resource.DefinitionWithTags { } @@ -596,6 +657,47 @@ interface WithAccessTraffic { * @return the next stage of storage account update */ Update withHttpAndHttpsTraffic(); + + /** + * Specifies the minimum TLS version for HTTPS traffic. + * + * @param minimumTlsVersion the minimum TLS version + * @return the next stage of storage account update + */ + Update withMinimumTlsVersion(MinimumTlsVersion minimumTlsVersion); + } + + /** The stage of storage account update allowing to configure blob access. */ + interface WithBlobAccess { + /** + * Allows blob public access, configured by individual containers. + * + * @return the next stage of storage account update + */ + Update enableBlobPublicAccess(); + + /** + * Disables blob public access. + * + * Disabling in storage account overrides the public access settings for individual containers. + * + * @return the next stage of storage account update + */ + Update disableBlobPublicAccess(); + + /** + * Allows shared key access. + * + * @return the next stage of storage account update + */ + Update enableSharedKeyAccess(); + + /** + * Disables shared key access. + * + * @return the next stage of storage account update + */ + Update disableSharedKeyAccess(); } /** The stage of storage account update allowing to configure network access. */ @@ -735,6 +837,7 @@ interface Update UpdateStages.WithAccessTraffic, UpdateStages.WithNetworkAccess, UpdateStages.WithUpgrade, + UpdateStages.WithBlobAccess, Resource.UpdateWithTags { } } diff --git a/sdk/resourcemanager/azure-resourcemanager-storage/src/test/java/com/azure/resourcemanager/storage/StorageAccountOperationsTests.java b/sdk/resourcemanager/azure-resourcemanager-storage/src/test/java/com/azure/resourcemanager/storage/StorageAccountOperationsTests.java index d3891d0a50d2e..2a4d7442a77ca 100644 --- a/sdk/resourcemanager/azure-resourcemanager-storage/src/test/java/com/azure/resourcemanager/storage/StorageAccountOperationsTests.java +++ b/sdk/resourcemanager/azure-resourcemanager-storage/src/test/java/com/azure/resourcemanager/storage/StorageAccountOperationsTests.java @@ -7,6 +7,8 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.profile.AzureProfile; import com.azure.core.management.Region; +import com.azure.resourcemanager.storage.models.Kind; +import com.azure.resourcemanager.storage.models.MinimumTlsVersion; import com.azure.resourcemanager.storage.models.SkuName; import com.azure.resourcemanager.storage.models.StorageAccount; import com.azure.resourcemanager.storage.models.StorageAccountEncryptionKeySource; @@ -35,7 +37,7 @@ protected void initializeClients(HttpPipeline httpPipeline, AzureProfile profile @Override protected void cleanUpResources() { - resourceManager.resourceGroups().deleteByName(rgName); + resourceManager.resourceGroups().beginDeleteByName(rgName); } @Test @@ -205,4 +207,54 @@ public void canEnableDisableFileEncryptionOnStorageAccount() throws Exception { // Assertions.assertFalse(fileServiceEncryptionStatus.isEnabled()); } + + @Test + public void storageAccountDefault() { + String saName2 = generateRandomResourceName("javacsmsa", 15); + + // default + StorageAccount storageAccountDefault = storageManager.storageAccounts().define(saName) + .withRegion(Region.US_EAST) + .withNewResourceGroup(rgName) + .create(); + + Assertions.assertEquals(Kind.STORAGE_V2, storageAccountDefault.kind()); + Assertions.assertEquals(SkuName.STANDARD_RAGRS, storageAccountDefault.skuType().name()); + Assertions.assertTrue(storageAccountDefault.isHttpsTrafficOnly()); + Assertions.assertEquals(MinimumTlsVersion.TLS1_2, storageAccountDefault.minimumTlsVersion()); + Assertions.assertTrue(storageAccountDefault.isBlobPublicAccessAllowed()); + Assertions.assertTrue(storageAccountDefault.isSharedKeyAccessAllowed()); + + // update to non-default + StorageAccount storageAccount = storageAccountDefault.update() + .withHttpAndHttpsTraffic() + .withMinimumTlsVersion(MinimumTlsVersion.TLS1_1) + .disableBlobPublicAccess() + .disableSharedKeyAccess() + .apply(); + + Assertions.assertFalse(storageAccount.isHttpsTrafficOnly()); + Assertions.assertEquals(MinimumTlsVersion.TLS1_1, storageAccount.minimumTlsVersion()); + Assertions.assertFalse(storageAccount.isBlobPublicAccessAllowed()); + Assertions.assertFalse(storageAccount.isSharedKeyAccessAllowed()); + + // new storage account configured as non-default + storageAccount = storageManager.storageAccounts().define(saName2) + .withRegion(Region.US_EAST) + .withNewResourceGroup(rgName) + .withSku(StorageAccountSkuType.STANDARD_LRS) + .withGeneralPurposeAccountKind() + .withHttpAndHttpsTraffic() + .withMinimumTlsVersion(MinimumTlsVersion.TLS1_1) + .disableBlobPublicAccess() + .disableSharedKeyAccess() + .create(); + + Assertions.assertEquals(Kind.STORAGE, storageAccount.kind()); + Assertions.assertEquals(SkuName.STANDARD_LRS, storageAccount.skuType().name()); + Assertions.assertFalse(storageAccount.isHttpsTrafficOnly()); + Assertions.assertEquals(MinimumTlsVersion.TLS1_1, storageAccount.minimumTlsVersion()); + Assertions.assertFalse(storageAccount.isBlobPublicAccessAllowed()); + Assertions.assertFalse(storageAccount.isSharedKeyAccessAllowed()); + } } diff --git a/sdk/resourcemanager/azure-resourcemanager-storage/src/test/resources/session-records/StorageAccountOperationsTests.storageAccountDefault.json b/sdk/resourcemanager/azure-resourcemanager-storage/src/test/resources/session-records/StorageAccountOperationsTests.storageAccountDefault.json new file mode 100644 index 0000000000000..cdba81b151413 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-storage/src/test/resources/session-records/StorageAccountOperationsTests.storageAccountDefault.json @@ -0,0 +1,277 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg00940?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.3.0-beta.1 (15.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "1533b908-a39f-4822-8a87-b9af85198eeb", + "Content-Type" : "application/json" + }, + "Response" : { + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-correlation-request-id" : "b1266d31-eb03-49f8-ab23-eb13f388168e", + "Date" : "Fri, 05 Mar 2021 04:59:25 GMT", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210305T045926Z:b1266d31-eb03-49f8-ab23-eb13f388168e", + "Expires" : "-1", + "Content-Length" : "225", + "x-ms-request-id" : "b1266d31-eb03-49f8-ab23-eb13f388168e", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00940\",\"name\":\"javacsmrg00940\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00940/providers/Microsoft.Storage/storageAccounts/javacsmsa10856?api-version=2021-01-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.3.0-beta.1 (15.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "2e64f81f-cc58-45ea-b140-e6263e3f0954", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "Pragma" : "no-cache", + "StatusCode" : "202", + "x-ms-correlation-request-id" : "6fdbb888-0797-4bb2-8b2a-99f3c71b41b7", + "Date" : "Fri, 05 Mar 2021 04:59:31 GMT", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "Retry-After" : "0", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210305T045932Z:6fdbb888-0797-4bb2-8b2a-99f3c71b41b7", + "Expires" : "-1", + "Content-Length" : "0", + "x-ms-request-id" : "2a353491-169f-41a0-9dbb-97c29dee1586", + "Body" : "", + "x-ms-client-request-id" : "2e64f81f-cc58-45ea-b140-e6263e3f0954", + "Content-Type" : "text/plain; charset=utf-8", + "Location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/2a353491-169f-41a0-9dbb-97c29dee1586?monitor=true&api-version=2021-01-01" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/2a353491-169f-41a0-9dbb-97c29dee1586?monitor=true&api-version=2021-01-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (15.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "0c796212-ea67-4b08-b97e-b8ab37d2befb" + }, + "Response" : { + "Server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11999", + "StatusCode" : "200", + "x-ms-correlation-request-id" : "048e3d74-abdf-403d-9f92-36dd44c3481d", + "Date" : "Fri, 05 Mar 2021 04:59:49 GMT", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210305T045949Z:048e3d74-abdf-403d-9f92-36dd44c3481d", + "Expires" : "-1", + "Content-Length" : "1694", + "x-ms-request-id" : "bfebc899-33b6-44fa-b388-1e88384852a7", + "Body" : "{\"sku\":{\"name\":\"Standard_RAGRS\",\"tier\":\"Standard\"},\"kind\":\"StorageV2\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00940/providers/Microsoft.Storage/storageAccounts/javacsmsa10856\",\"name\":\"javacsmsa10856\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"minimumTlsVersion\":\"TLS1_2\",\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":true,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2021-03-05T04:59:31.9310828Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2021-03-05T04:59:31.9310828Z\"}},\"keySource\":\"Microsoft.Storage\"},\"accessTier\":\"Hot\",\"provisioningState\":\"Succeeded\",\"creationTime\":\"2021-03-05T04:59:31.8373038Z\",\"primaryEndpoints\":{\"dfs\":\"https://javacsmsa10856.dfs.core.windows.net/\",\"web\":\"https://javacsmsa10856.z13.web.core.windows.net/\",\"blob\":\"https://javacsmsa10856.blob.core.windows.net/\",\"queue\":\"https://javacsmsa10856.queue.core.windows.net/\",\"table\":\"https://javacsmsa10856.table.core.windows.net/\",\"file\":\"https://javacsmsa10856.file.core.windows.net/\"},\"primaryLocation\":\"eastus\",\"statusOfPrimary\":\"available\",\"secondaryLocation\":\"westus\",\"statusOfSecondary\":\"available\",\"secondaryEndpoints\":{\"dfs\":\"https://javacsmsa10856-secondary.dfs.core.windows.net/\",\"web\":\"https://javacsmsa10856-secondary.z13.web.core.windows.net/\",\"blob\":\"https://javacsmsa10856-secondary.blob.core.windows.net/\",\"queue\":\"https://javacsmsa10856-secondary.queue.core.windows.net/\",\"table\":\"https://javacsmsa10856-secondary.table.core.windows.net/\"}}}", + "x-ms-client-request-id" : "0c796212-ea67-4b08-b97e-b8ab37d2befb", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00940/providers/Microsoft.Storage/storageAccounts/javacsmsa10856?api-version=2021-01-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.3.0-beta.1 (15.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "df9f1fa0-7a40-4395-93a4-e470cf567bb8", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11998", + "StatusCode" : "200", + "x-ms-correlation-request-id" : "2cbb9491-382a-4c1a-8459-c85e1ae2fa42", + "Date" : "Fri, 05 Mar 2021 04:59:51 GMT", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210305T045951Z:2cbb9491-382a-4c1a-8459-c85e1ae2fa42", + "Expires" : "-1", + "Content-Length" : "1694", + "x-ms-request-id" : "ac9c7fd0-9f05-49c3-b723-004c4b3b5e80", + "Body" : "{\"sku\":{\"name\":\"Standard_RAGRS\",\"tier\":\"Standard\"},\"kind\":\"StorageV2\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00940/providers/Microsoft.Storage/storageAccounts/javacsmsa10856\",\"name\":\"javacsmsa10856\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"minimumTlsVersion\":\"TLS1_2\",\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":true,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2021-03-05T04:59:31.9310828Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2021-03-05T04:59:31.9310828Z\"}},\"keySource\":\"Microsoft.Storage\"},\"accessTier\":\"Hot\",\"provisioningState\":\"Succeeded\",\"creationTime\":\"2021-03-05T04:59:31.8373038Z\",\"primaryEndpoints\":{\"dfs\":\"https://javacsmsa10856.dfs.core.windows.net/\",\"web\":\"https://javacsmsa10856.z13.web.core.windows.net/\",\"blob\":\"https://javacsmsa10856.blob.core.windows.net/\",\"queue\":\"https://javacsmsa10856.queue.core.windows.net/\",\"table\":\"https://javacsmsa10856.table.core.windows.net/\",\"file\":\"https://javacsmsa10856.file.core.windows.net/\"},\"primaryLocation\":\"eastus\",\"statusOfPrimary\":\"available\",\"secondaryLocation\":\"westus\",\"statusOfSecondary\":\"available\",\"secondaryEndpoints\":{\"dfs\":\"https://javacsmsa10856-secondary.dfs.core.windows.net/\",\"web\":\"https://javacsmsa10856-secondary.z13.web.core.windows.net/\",\"blob\":\"https://javacsmsa10856-secondary.blob.core.windows.net/\",\"queue\":\"https://javacsmsa10856-secondary.queue.core.windows.net/\",\"table\":\"https://javacsmsa10856-secondary.table.core.windows.net/\"}}}", + "x-ms-client-request-id" : "df9f1fa0-7a40-4395-93a4-e470cf567bb8", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00940/providers/Microsoft.Storage/storageAccounts/javacsmsa10856?api-version=2021-01-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.3.0-beta.1 (15.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "3507aca1-0fd9-4e0d-b921-d9a0fed250c5", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-correlation-request-id" : "90ec8735-41e2-45da-b842-e60f1506752f", + "Date" : "Fri, 05 Mar 2021 04:59:55 GMT", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210305T045955Z:90ec8735-41e2-45da-b842-e60f1506752f", + "Expires" : "-1", + "Content-Length" : "1754", + "x-ms-request-id" : "8b93a3d6-b7ad-42b5-ba8e-84550e687d94", + "Body" : "{\"sku\":{\"name\":\"Standard_RAGRS\",\"tier\":\"Standard\"},\"kind\":\"StorageV2\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00940/providers/Microsoft.Storage/storageAccounts/javacsmsa10856\",\"name\":\"javacsmsa10856\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"minimumTlsVersion\":\"TLS1_1\",\"allowBlobPublicAccess\":false,\"allowSharedKeyAccess\":false,\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":false,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2021-03-05T04:59:31.9310828Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2021-03-05T04:59:31.9310828Z\"}},\"keySource\":\"Microsoft.Storage\"},\"accessTier\":\"Hot\",\"provisioningState\":\"Succeeded\",\"creationTime\":\"2021-03-05T04:59:31.8373038Z\",\"primaryEndpoints\":{\"dfs\":\"https://javacsmsa10856.dfs.core.windows.net/\",\"web\":\"https://javacsmsa10856.z13.web.core.windows.net/\",\"blob\":\"https://javacsmsa10856.blob.core.windows.net/\",\"queue\":\"https://javacsmsa10856.queue.core.windows.net/\",\"table\":\"https://javacsmsa10856.table.core.windows.net/\",\"file\":\"https://javacsmsa10856.file.core.windows.net/\"},\"primaryLocation\":\"eastus\",\"statusOfPrimary\":\"available\",\"secondaryLocation\":\"westus\",\"statusOfSecondary\":\"available\",\"secondaryEndpoints\":{\"dfs\":\"https://javacsmsa10856-secondary.dfs.core.windows.net/\",\"web\":\"https://javacsmsa10856-secondary.z13.web.core.windows.net/\",\"blob\":\"https://javacsmsa10856-secondary.blob.core.windows.net/\",\"queue\":\"https://javacsmsa10856-secondary.queue.core.windows.net/\",\"table\":\"https://javacsmsa10856-secondary.table.core.windows.net/\"}}}", + "x-ms-client-request-id" : "3507aca1-0fd9-4e0d-b921-d9a0fed250c5", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg00940?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.3.0-beta.1 (15.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "9334ee8c-6e68-4b64-baec-9408e6f473c8", + "Content-Type" : "application/json" + }, + "Response" : { + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-correlation-request-id" : "8db7b7f7-c0eb-49d8-ad48-459808e0d33e", + "Date" : "Fri, 05 Mar 2021 04:59:56 GMT", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210305T045956Z:8db7b7f7-c0eb-49d8-ad48-459808e0d33e", + "Expires" : "-1", + "Content-Length" : "225", + "x-ms-request-id" : "8db7b7f7-c0eb-49d8-ad48-459808e0d33e", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00940\",\"name\":\"javacsmrg00940\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00940/providers/Microsoft.Storage/storageAccounts/javacsmsa30132?api-version=2021-01-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.3.0-beta.1 (15.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "dd65a9a2-cd4d-4335-9b28-a2472ebf7e53", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "Pragma" : "no-cache", + "StatusCode" : "202", + "x-ms-correlation-request-id" : "5af0efd7-a238-4d1b-9e37-601aafcec04d", + "Date" : "Fri, 05 Mar 2021 04:59:59 GMT", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "Retry-After" : "0", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210305T045959Z:5af0efd7-a238-4d1b-9e37-601aafcec04d", + "Expires" : "-1", + "Content-Length" : "0", + "x-ms-request-id" : "95003679-0fea-4e9c-a8de-759307e66fa8", + "Body" : "", + "x-ms-client-request-id" : "dd65a9a2-cd4d-4335-9b28-a2472ebf7e53", + "Content-Type" : "text/plain; charset=utf-8", + "Location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/95003679-0fea-4e9c-a8de-759307e66fa8?monitor=true&api-version=2021-01-01" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/95003679-0fea-4e9c-a8de-759307e66fa8?monitor=true&api-version=2021-01-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (15.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "717d2014-294a-4911-8bf9-256ade35c297" + }, + "Response" : { + "Server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11997", + "StatusCode" : "200", + "x-ms-correlation-request-id" : "1ef8eb87-8c62-4ff8-b4e7-771bc0f26927", + "Date" : "Fri, 05 Mar 2021 05:00:16 GMT", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210305T050016Z:1ef8eb87-8c62-4ff8-b4e7-771bc0f26927", + "Expires" : "-1", + "Content-Length" : "1208", + "x-ms-request-id" : "da952a2f-fa2e-49fb-8aa9-92e70aaab64f", + "Body" : "{\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"kind\":\"Storage\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00940/providers/Microsoft.Storage/storageAccounts/javacsmsa30132\",\"name\":\"javacsmsa30132\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"minimumTlsVersion\":\"TLS1_1\",\"allowBlobPublicAccess\":false,\"allowSharedKeyAccess\":false,\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":false,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2021-03-05T04:59:58.6966678Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2021-03-05T04:59:58.6966678Z\"}},\"keySource\":\"Microsoft.Storage\"},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2021-03-05T04:59:58.5873092Z\",\"primaryEndpoints\":{\"blob\":\"https://javacsmsa30132.blob.core.windows.net/\",\"queue\":\"https://javacsmsa30132.queue.core.windows.net/\",\"table\":\"https://javacsmsa30132.table.core.windows.net/\",\"file\":\"https://javacsmsa30132.file.core.windows.net/\"},\"primaryLocation\":\"eastus\",\"statusOfPrimary\":\"available\"}}", + "x-ms-client-request-id" : "717d2014-294a-4911-8bf9-256ade35c297", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00940/providers/Microsoft.Storage/storageAccounts/javacsmsa30132?api-version=2021-01-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage/2.3.0-beta.1 (15.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "d0dff8ad-af5a-4832-a14c-bb6a3a3f5521", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11996", + "StatusCode" : "200", + "x-ms-correlation-request-id" : "d247d086-0e0c-41a3-b5ca-bff2aa0e71c4", + "Date" : "Fri, 05 Mar 2021 05:00:16 GMT", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210305T050016Z:d247d086-0e0c-41a3-b5ca-bff2aa0e71c4", + "Expires" : "-1", + "Content-Length" : "1208", + "x-ms-request-id" : "974a120c-5b43-4afb-b9e2-c75beed3a2d9", + "Body" : "{\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"kind\":\"Storage\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg00940/providers/Microsoft.Storage/storageAccounts/javacsmsa30132\",\"name\":\"javacsmsa30132\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"minimumTlsVersion\":\"TLS1_1\",\"allowBlobPublicAccess\":false,\"allowSharedKeyAccess\":false,\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":false,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2021-03-05T04:59:58.6966678Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2021-03-05T04:59:58.6966678Z\"}},\"keySource\":\"Microsoft.Storage\"},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2021-03-05T04:59:58.5873092Z\",\"primaryEndpoints\":{\"blob\":\"https://javacsmsa30132.blob.core.windows.net/\",\"queue\":\"https://javacsmsa30132.queue.core.windows.net/\",\"table\":\"https://javacsmsa30132.table.core.windows.net/\",\"file\":\"https://javacsmsa30132.file.core.windows.net/\"},\"primaryLocation\":\"eastus\",\"statusOfPrimary\":\"available\"}}", + "x-ms-client-request-id" : "d0dff8ad-af5a-4832-a14c-bb6a3a3f5521", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg00940?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources/2.3.0-beta.1 (15.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "da0e4bda-4168-4b83-a02a-c16839226d40", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-ratelimit-remaining-subscription-deletes" : "14999", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "StatusCode" : "202", + "x-ms-correlation-request-id" : "1330f212-c9ee-4d1a-815f-c5cb3205d67c", + "Date" : "Fri, 05 Mar 2021 05:00:19 GMT", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "Retry-After" : "0", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20210305T050020Z:1330f212-c9ee-4d1a-815f-c5cb3205d67c", + "Expires" : "-1", + "Content-Length" : "0", + "x-ms-request-id" : "1330f212-c9ee-4d1a-815f-c5cb3205d67c", + "Location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMDk0MC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01" + }, + "Exception" : null + } ], + "variables" : [ "javacsmrg00940", "javacsmsa10856", "javacsmsa30132" ] +} \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/ReadmeSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/ReadmeSamples.java index a5f9816172fdf..0ffd96b4db2f4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/ReadmeSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/ReadmeSamples.java @@ -179,7 +179,7 @@ public void createStorageAccountAndBlobContainerAsync() { .flatMap(storageAccount -> azure.storageBlobContainers() .defineContainer("container") .withExistingBlobService(rgName, storageAccount.name()) - .withPublicAccess(PublicAccess.BLOB) + .withPublicAccess(PublicAccess.NONE) .createAsync() ) //...