@azure/arm-storage 18.1.1-alpha.20230724.1 → 18.2.0-alpha.20230821.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +90 -57
- package/LICENSE +1 -1
- package/dist/index.js +519 -102
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersClearLegalHoldSample.js +11 -4
- package/dist-esm/samples-dev/blobContainersClearLegalHoldSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js +15 -8
- package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersCreateSample.js +19 -12
- package/dist-esm/samples-dev/blobContainersCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersDeleteImmutabilityPolicySample.js +12 -5
- package/dist-esm/samples-dev/blobContainersDeleteImmutabilityPolicySample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersDeleteSample.js +11 -4
- package/dist-esm/samples-dev/blobContainersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js +12 -5
- package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersGetImmutabilityPolicySample.js +11 -4
- package/dist-esm/samples-dev/blobContainersGetImmutabilityPolicySample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersGetSample.js +15 -8
- package/dist-esm/samples-dev/blobContainersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersLeaseSample.js +15 -8
- package/dist-esm/samples-dev/blobContainersLeaseSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersListSample.js +15 -8
- package/dist-esm/samples-dev/blobContainersListSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersLockImmutabilityPolicySample.js +12 -5
- package/dist-esm/samples-dev/blobContainersLockImmutabilityPolicySample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersObjectLevelWormSample.js +11 -4
- package/dist-esm/samples-dev/blobContainersObjectLevelWormSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersSetLegalHoldSample.js +15 -8
- package/dist-esm/samples-dev/blobContainersSetLegalHoldSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersUpdateSample.js +11 -4
- package/dist-esm/samples-dev/blobContainersUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js +20 -13
- package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js +11 -4
- package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js +11 -4
- package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js.map +1 -1
- package/dist-esm/samples-dev/blobServicesGetServicePropertiesSample.js +11 -4
- package/dist-esm/samples-dev/blobServicesGetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/blobServicesListSample.js +11 -4
- package/dist-esm/samples-dev/blobServicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js +19 -12
- package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/deletedAccountsGetSample.js +10 -3
- package/dist-esm/samples-dev/deletedAccountsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/deletedAccountsListSample.js +10 -3
- package/dist-esm/samples-dev/deletedAccountsListSample.js.map +1 -1
- package/dist-esm/samples-dev/encryptionScopesGetSample.js +12 -5
- package/dist-esm/samples-dev/encryptionScopesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/encryptionScopesListSample.js +12 -5
- package/dist-esm/samples-dev/encryptionScopesListSample.js.map +1 -1
- package/dist-esm/samples-dev/encryptionScopesPatchSample.js +12 -5
- package/dist-esm/samples-dev/encryptionScopesPatchSample.js.map +1 -1
- package/dist-esm/samples-dev/encryptionScopesPutSample.js +17 -10
- package/dist-esm/samples-dev/encryptionScopesPutSample.js.map +1 -1
- package/dist-esm/samples-dev/fileServicesGetServicePropertiesSample.js +11 -4
- package/dist-esm/samples-dev/fileServicesGetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/fileServicesListSample.js +11 -4
- package/dist-esm/samples-dev/fileServicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js +19 -12
- package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesCreateSample.js +19 -12
- package/dist-esm/samples-dev/fileSharesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/fileSharesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesGetSample.js +15 -8
- package/dist-esm/samples-dev/fileSharesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesLeaseSample.js +15 -8
- package/dist-esm/samples-dev/fileSharesLeaseSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesListSample.js +19 -12
- package/dist-esm/samples-dev/fileSharesListSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesRestoreSample.js +11 -4
- package/dist-esm/samples-dev/fileSharesRestoreSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesUpdateSample.js +15 -8
- package/dist-esm/samples-dev/fileSharesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js +15 -8
- package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersDeleteSample.js +11 -4
- package/dist-esm/samples-dev/localUsersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersGetSample.js +11 -4
- package/dist-esm/samples-dev/localUsersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersListKeysSample.js +11 -4
- package/dist-esm/samples-dev/localUsersListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersListSample.js +11 -4
- package/dist-esm/samples-dev/localUsersListSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersRegeneratePasswordSample.js +11 -4
- package/dist-esm/samples-dev/localUsersRegeneratePasswordSample.js.map +1 -1
- package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js +39 -32
- package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/managementPoliciesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/managementPoliciesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/managementPoliciesGetSample.js +11 -4
- package/dist-esm/samples-dev/managementPoliciesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js +23 -16
- package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js +11 -4
- package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js +11 -4
- package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js +11 -4
- package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/queueCreateSample.js +15 -8
- package/dist-esm/samples-dev/queueCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/queueDeleteSample.js +11 -4
- package/dist-esm/samples-dev/queueDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/queueGetSample.js +11 -4
- package/dist-esm/samples-dev/queueGetSample.js.map +1 -1
- package/dist-esm/samples-dev/queueListSample.js +11 -4
- package/dist-esm/samples-dev/queueListSample.js.map +1 -1
- package/dist-esm/samples-dev/queueServicesGetServicePropertiesSample.js +11 -4
- package/dist-esm/samples-dev/queueServicesGetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/queueServicesListSample.js +11 -4
- package/dist-esm/samples-dev/queueServicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js +11 -4
- package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/queueUpdateSample.js +11 -4
- package/dist-esm/samples-dev/queueUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/skusListSample.js +10 -3
- package/dist-esm/samples-dev/skusListSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js +10 -3
- package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsCreateSample.js +55 -48
- package/dist-esm/samples-dev/storageAccountsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.js +39 -0
- package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsDeleteSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsFailoverSample.js +15 -8
- package/dist-esm/samples-dev/storageAccountsFailoverSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.js +58 -0
- package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js +63 -16
- package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsListKeysSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsListSample.js +10 -3
- package/dist-esm/samples-dev/storageAccountsListSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js +15 -8
- package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsUpdateSample.js +39 -32
- package/dist-esm/samples-dev/storageAccountsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/tableCreateSample.js +15 -8
- package/dist-esm/samples-dev/tableCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/tableDeleteSample.js +11 -4
- package/dist-esm/samples-dev/tableDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/tableGetSample.js +11 -4
- package/dist-esm/samples-dev/tableGetSample.js.map +1 -1
- package/dist-esm/samples-dev/tableListSample.js +11 -4
- package/dist-esm/samples-dev/tableListSample.js.map +1 -1
- package/dist-esm/samples-dev/tableServicesGetServicePropertiesSample.js +11 -4
- package/dist-esm/samples-dev/tableServicesGetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/tableServicesListSample.js +11 -4
- package/dist-esm/samples-dev/tableServicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js +11 -4
- package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/tableUpdateSample.js +15 -8
- package/dist-esm/samples-dev/tableUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/usagesListByLocationSample.js +10 -3
- package/dist-esm/samples-dev/usagesListByLocationSample.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +213 -30
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +44 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +6 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +220 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +9 -6
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +39 -10
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/blobContainers.d.ts +2 -2
- package/dist-esm/src/operations/blobContainers.d.ts.map +1 -1
- package/dist-esm/src/operations/blobContainers.js +14 -16
- package/dist-esm/src/operations/blobContainers.js.map +1 -1
- package/dist-esm/src/operations/blobServices.js +1 -1
- package/dist-esm/src/operations/deletedAccounts.js +0 -1
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
- package/dist-esm/src/operations/encryptionScopes.js +0 -6
- package/dist-esm/src/operations/encryptionScopes.js.map +1 -1
- package/dist-esm/src/operations/fileServices.js +1 -1
- package/dist-esm/src/operations/fileShares.js +1 -7
- package/dist-esm/src/operations/fileShares.js.map +1 -1
- package/dist-esm/src/operations/queue.js +0 -5
- package/dist-esm/src/operations/queue.js.map +1 -1
- package/dist-esm/src/operations/queueServices.js +1 -1
- package/dist-esm/src/operations/storageAccounts.d.ts +46 -7
- package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/storageAccounts.js +177 -30
- package/dist-esm/src/operations/storageAccounts.js.map +1 -1
- package/dist-esm/src/operations/tableOperations.js +2 -3
- package/dist-esm/src/operations/tableOperations.js.map +1 -1
- package/dist-esm/src/operations/tableServices.js +1 -1
- package/dist-esm/src/operationsInterfaces/blobContainers.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/blobContainers.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +47 -8
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/src/storageManagementClient.js +2 -2
- package/package.json +6 -5
- package/review/arm-storage.api.md +115 -20
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +235 -38
- package/src/models/mappers.ts +228 -0
- package/src/models/parameters.ts +42 -9
- package/src/operations/blobContainers.ts +19 -21
- package/src/operations/blobServices.ts +1 -1
- package/src/operations/deletedAccounts.ts +0 -1
- package/src/operations/encryptionScopes.ts +0 -6
- package/src/operations/fileServices.ts +1 -1
- package/src/operations/fileShares.ts +1 -7
- package/src/operations/queue.ts +0 -5
- package/src/operations/queueServices.ts +1 -1
- package/src/operations/storageAccounts.ts +240 -57
- package/src/operations/tableOperations.ts +2 -3
- package/src/operations/tableServices.ts +1 -1
- package/src/operationsInterfaces/blobContainers.ts +2 -2
- package/src/operationsInterfaces/storageAccounts.ts +68 -9
- package/src/pagingHelper.ts +4 -4
- package/src/storageManagementClient.ts +2 -2
- package/types/arm-storage.d.ts +282 -43
- package/types/tsdoc-metadata.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { StorageManagementClient } from "@azure/arm-storage";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Gets the status of the ongoing migration for the specified storage account.
|
|
17
|
+
*
|
|
18
|
+
* @summary Gets the status of the ongoing migration for the specified storage account.
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountGetMigrationFailed.json
|
|
20
|
+
*/
|
|
21
|
+
function storageAccountGetMigrationFailed() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
24
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "resource-group-name";
|
|
25
|
+
const accountName = "accountname";
|
|
26
|
+
const migrationName = "default";
|
|
27
|
+
const credential = new DefaultAzureCredential();
|
|
28
|
+
const client = new StorageManagementClient(credential, subscriptionId);
|
|
29
|
+
const result = yield client.storageAccounts.getCustomerInitiatedMigration(resourceGroupName, accountName, migrationName);
|
|
30
|
+
console.log(result);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* This sample demonstrates how to Gets the status of the ongoing migration for the specified storage account.
|
|
35
|
+
*
|
|
36
|
+
* @summary Gets the status of the ongoing migration for the specified storage account.
|
|
37
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountGetMigrationInProgress.json
|
|
38
|
+
*/
|
|
39
|
+
function storageAccountGetMigrationInProgress() {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
42
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "resource-group-name";
|
|
43
|
+
const accountName = "accountname";
|
|
44
|
+
const migrationName = "default";
|
|
45
|
+
const credential = new DefaultAzureCredential();
|
|
46
|
+
const client = new StorageManagementClient(credential, subscriptionId);
|
|
47
|
+
const result = yield client.storageAccounts.getCustomerInitiatedMigration(resourceGroupName, accountName, migrationName);
|
|
48
|
+
console.log(result);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function main() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
storageAccountGetMigrationFailed();
|
|
54
|
+
storageAccountGetMigrationInProgress();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
main().catch(console.error);
|
|
58
|
+
//# sourceMappingURL=storageAccountsGetCustomerInitiatedMigrationSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageAccountsGetCustomerInitiatedMigrationSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,qBAAqB,CAAC;QACjE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,aAAa,GAAG,SAAS,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,6BAA6B,CACvE,iBAAiB,EACjB,WAAW,EACX,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,oCAAoC;;QACjD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,qBAAqB,CAAC;QACjE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,aAAa,GAAG,SAAS,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,6BAA6B,CACvE,iBAAiB,EACjB,WAAW,EACX,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gCAAgC,EAAE,CAAC;QACnC,oCAAoC,EAAE,CAAC;IACzC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { StorageManagementClient } from "@azure/arm-storage";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
|
|
15
17
|
*
|
|
16
18
|
* @summary Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
|
|
17
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json
|
|
18
20
|
*/
|
|
19
21
|
function storageAccountGetAsyncSkuConversionStatus() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "res9407";
|
|
23
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
24
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
|
|
23
25
|
const accountName = "sto8596";
|
|
24
26
|
const credential = new DefaultAzureCredential();
|
|
25
27
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -27,17 +29,16 @@ function storageAccountGetAsyncSkuConversionStatus() {
|
|
|
27
29
|
console.log(result);
|
|
28
30
|
});
|
|
29
31
|
}
|
|
30
|
-
storageAccountGetAsyncSkuConversionStatus().catch(console.error);
|
|
31
32
|
/**
|
|
32
33
|
* This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
|
|
33
34
|
*
|
|
34
35
|
* @summary Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
|
|
35
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
36
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountGetProperties.json
|
|
36
37
|
*/
|
|
37
38
|
function storageAccountGetProperties() {
|
|
38
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
const subscriptionId = "{subscription-id}";
|
|
40
|
-
const resourceGroupName = "res9407";
|
|
40
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
41
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
|
|
41
42
|
const accountName = "sto8596";
|
|
42
43
|
const credential = new DefaultAzureCredential();
|
|
43
44
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -45,17 +46,16 @@ function storageAccountGetProperties() {
|
|
|
45
46
|
console.log(result);
|
|
46
47
|
});
|
|
47
48
|
}
|
|
48
|
-
storageAccountGetProperties().catch(console.error);
|
|
49
49
|
/**
|
|
50
50
|
* This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
|
|
51
51
|
*
|
|
52
52
|
* @summary Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
|
|
53
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
53
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json
|
|
54
54
|
*/
|
|
55
55
|
function storageAccountGetPropertiesCmkEnabled() {
|
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
const subscriptionId = "{subscription-id}";
|
|
58
|
-
const resourceGroupName = "res9407";
|
|
57
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
58
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
|
|
59
59
|
const accountName = "sto8596";
|
|
60
60
|
const credential = new DefaultAzureCredential();
|
|
61
61
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -63,17 +63,16 @@ function storageAccountGetPropertiesCmkEnabled() {
|
|
|
63
63
|
console.log(result);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
storageAccountGetPropertiesCmkEnabled().catch(console.error);
|
|
67
66
|
/**
|
|
68
67
|
* This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
|
|
69
68
|
*
|
|
70
69
|
* @summary Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
|
|
71
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
70
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json
|
|
72
71
|
*/
|
|
73
72
|
function storageAccountGetPropertiesCmkVersionExpirationTime() {
|
|
74
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
const subscriptionId = "{subscription-id}";
|
|
76
|
-
const resourceGroupName = "res9407";
|
|
74
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
75
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
|
|
77
76
|
const accountName = "sto8596";
|
|
78
77
|
const credential = new DefaultAzureCredential();
|
|
79
78
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -81,5 +80,53 @@ function storageAccountGetPropertiesCmkVersionExpirationTime() {
|
|
|
81
80
|
console.log(result);
|
|
82
81
|
});
|
|
83
82
|
}
|
|
84
|
-
|
|
83
|
+
/**
|
|
84
|
+
* This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
|
|
85
|
+
*
|
|
86
|
+
* @summary Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
|
|
87
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json
|
|
88
|
+
*/
|
|
89
|
+
function storageAccountGetPropertiesGeoReplicationStatscanFailoverFalse() {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
92
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
|
|
93
|
+
const accountName = "sto8596";
|
|
94
|
+
const expand = "geoReplicationStats";
|
|
95
|
+
const options = { expand };
|
|
96
|
+
const credential = new DefaultAzureCredential();
|
|
97
|
+
const client = new StorageManagementClient(credential, subscriptionId);
|
|
98
|
+
const result = yield client.storageAccounts.getProperties(resourceGroupName, accountName, options);
|
|
99
|
+
console.log(result);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* This sample demonstrates how to Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
|
|
104
|
+
*
|
|
105
|
+
* @summary Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
|
|
106
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json
|
|
107
|
+
*/
|
|
108
|
+
function storageAccountGetPropertiesGeoReplicationStatscanFailoverTrue() {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
111
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9407";
|
|
112
|
+
const accountName = "sto8596";
|
|
113
|
+
const expand = "geoReplicationStats";
|
|
114
|
+
const options = { expand };
|
|
115
|
+
const credential = new DefaultAzureCredential();
|
|
116
|
+
const client = new StorageManagementClient(credential, subscriptionId);
|
|
117
|
+
const result = yield client.storageAccounts.getProperties(resourceGroupName, accountName, options);
|
|
118
|
+
console.log(result);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
function main() {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
storageAccountGetAsyncSkuConversionStatus();
|
|
124
|
+
storageAccountGetProperties();
|
|
125
|
+
storageAccountGetPropertiesCmkEnabled();
|
|
126
|
+
storageAccountGetPropertiesCmkVersionExpirationTime();
|
|
127
|
+
storageAccountGetPropertiesGeoReplicationStatscanFailoverFalse();
|
|
128
|
+
storageAccountGetPropertiesGeoReplicationStatscanFailoverTrue();
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
main().catch(console.error);
|
|
85
132
|
//# sourceMappingURL=storageAccountsGetPropertiesSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageAccountsGetPropertiesSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsGetPropertiesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"storageAccountsGetPropertiesSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsGetPropertiesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,yCAAyC;;QACtD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,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ACX,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,6DAA6D;;QAC1E,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,MAAM,GAAG,qBAAqB,CAAC;QACrC,MAAM,OAAO,GAA+C,EAAE,MAAM,EAAE,CAAC;QACvE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,aAAa,CACvD,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,yCAAyC,EAAE,CAAC;QAC5C,2BAA2B,EAAE,CAAC;QAC9B,qCAAqC,EAAE,CAAC;QACxC,mDAAmD,EAAE,CAAC;QACtD,8DAA8D,EAAE,CAAC;QACjE,6DAA6D,EAAE,CAAC;IAClE,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { StorageManagementClient } from "@azure/arm-storage";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Live Migration of storage account to enable Hns
|
|
15
17
|
*
|
|
16
18
|
* @summary Live Migration of storage account to enable Hns
|
|
17
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountHierarchicalNamespaceMigration.json
|
|
18
20
|
*/
|
|
19
21
|
function storageAccountHierarchicalNamespaceMigration() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "res4228";
|
|
23
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
24
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4228";
|
|
23
25
|
const accountName = "sto2434";
|
|
24
26
|
const requestType = "HnsOnValidationRequest";
|
|
25
27
|
const credential = new DefaultAzureCredential();
|
|
@@ -28,5 +30,10 @@ function storageAccountHierarchicalNamespaceMigration() {
|
|
|
28
30
|
console.log(result);
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
|
-
|
|
33
|
+
function main() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
storageAccountHierarchicalNamespaceMigration();
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
main().catch(console.error);
|
|
32
39
|
//# sourceMappingURL=storageAccountsHierarchicalNamespaceMigrationSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageAccountsHierarchicalNamespaceMigrationSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"storageAccountsHierarchicalNamespaceMigrationSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4CAA4C;;QACzD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,WAAW,GAAG,wBAAwB,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,0CAA0C,CACpF,iBAAiB,EACjB,WAAW,EACX,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,4CAA4C,EAAE,CAAC;IACjD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { StorageManagementClient } from "@azure/arm-storage";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to List SAS credentials of a storage account.
|
|
15
17
|
*
|
|
16
18
|
* @summary List SAS credentials of a storage account.
|
|
17
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountListAccountSAS.json
|
|
18
20
|
*/
|
|
19
21
|
function storageAccountListAccountSas() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "res7985";
|
|
23
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
24
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res7985";
|
|
23
25
|
const accountName = "sto8588";
|
|
24
26
|
const parameters = {
|
|
25
27
|
keyToSign: "key1",
|
|
@@ -36,5 +38,10 @@ function storageAccountListAccountSas() {
|
|
|
36
38
|
console.log(result);
|
|
37
39
|
});
|
|
38
40
|
}
|
|
39
|
-
|
|
41
|
+
function main() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
storageAccountListAccountSas();
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
main().catch(console.error);
|
|
40
47
|
//# sourceMappingURL=storageAccountsListAccountSasSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageAccountsListAccountSasSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsListAccountSasSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"storageAccountsListAcc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CAAC"}
|
|
@@ -10,17 +10,19 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { StorageManagementClient } from "@azure/arm-storage";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.
|
|
15
17
|
*
|
|
16
18
|
* @summary Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.
|
|
17
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountListByResourceGroup.json
|
|
18
20
|
*/
|
|
19
21
|
function storageAccountListByResourceGroup() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "{subscription-id}";
|
|
23
|
-
const resourceGroupName = "res6117";
|
|
24
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
25
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res6117";
|
|
24
26
|
const credential = new DefaultAzureCredential();
|
|
25
27
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
26
28
|
const resArray = new Array();
|
|
@@ -47,5 +49,10 @@ function storageAccountListByResourceGroup() {
|
|
|
47
49
|
console.log(resArray);
|
|
48
50
|
});
|
|
49
51
|
}
|
|
50
|
-
|
|
52
|
+
function main() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
storageAccountListByResourceGroup();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
main().catch(console.error);
|
|
51
58
|
//# sourceMappingURL=storageAccountsListByResourceGroupSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageAccountsListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"storageAccountsListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iCAAiC;;;QAC9C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAC/D,iBAAiB,CAClB,CAAA,IAAA;gBAFsB,cAEtB;gBAFsB,WAEtB;;oBAFU,IAAI,IAAI,KAAA,CAAA;oBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,iCAAiC,EAAE,CAAC;IACtC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { StorageManagementClient } from "@azure/arm-storage";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account.
|
|
15
17
|
*
|
|
16
18
|
* @summary Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account.
|
|
17
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountListKeys.json
|
|
18
20
|
*/
|
|
19
21
|
function storageAccountListKeys() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "res418";
|
|
23
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
24
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res418";
|
|
23
25
|
const accountName = "sto2220";
|
|
24
26
|
const credential = new DefaultAzureCredential();
|
|
25
27
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -27,5 +29,10 @@ function storageAccountListKeys() {
|
|
|
27
29
|
console.log(result);
|
|
28
30
|
});
|
|
29
31
|
}
|
|
30
|
-
|
|
32
|
+
function main() {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
storageAccountListKeys();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
main().catch(console.error);
|
|
31
38
|
//# sourceMappingURL=storageAccountsListKeysSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageAccountsListKeysSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsListKeysSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"storageAccountsListKeysSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsListKeysSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,QAAQ,CAAC;QAC5E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,QAAQ,CAClD,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sBAAsB,EAAE,CAAC;IAC3B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { StorageManagementClient } from "@azure/arm-storage";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this.
|
|
15
17
|
*
|
|
16
18
|
* @summary Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this.
|
|
17
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountList.json
|
|
18
20
|
*/
|
|
19
21
|
function storageAccountList() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "{subscription-id}";
|
|
24
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
23
25
|
const credential = new DefaultAzureCredential();
|
|
24
26
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
25
27
|
const resArray = new Array();
|
|
@@ -46,5 +48,10 @@ function storageAccountList() {
|
|
|
46
48
|
console.log(resArray);
|
|
47
49
|
});
|
|
48
50
|
}
|
|
49
|
-
|
|
51
|
+
function main() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
storageAccountList();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
main().catch(console.error);
|
|
50
57
|
//# sourceMappingURL=storageAccountsListSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageAccountsListSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"storageAccountsListSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kBAAkB;;;QAC/B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,CAAA,IAAA;gBAA7B,cAA6B;gBAA7B,WAA6B;;oBAAzC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,kBAAkB,EAAE,CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { StorageManagementClient } from "@azure/arm-storage";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to List service SAS credentials of a specific resource.
|
|
15
17
|
*
|
|
16
18
|
* @summary List service SAS credentials of a specific resource.
|
|
17
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountListServiceSAS.json
|
|
18
20
|
*/
|
|
19
21
|
function storageAccountListServiceSas() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "res7439";
|
|
23
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
24
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res7439";
|
|
23
25
|
const accountName = "sto1299";
|
|
24
26
|
const parameters = {
|
|
25
27
|
canonicalizedResource: "/blob/sto1299/music",
|
|
@@ -33,5 +35,10 @@ function storageAccountListServiceSas() {
|
|
|
33
35
|
console.log(result);
|
|
34
36
|
});
|
|
35
37
|
}
|
|
36
|
-
|
|
38
|
+
function main() {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
storageAccountListServiceSas();
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
main().catch(console.error);
|
|
37
44
|
//# sourceMappingURL=storageAccountsListServiceSasSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageAccountsListServiceSasSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsListServiceSasSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"storageAccountsListServiceSasSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsListServiceSasSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAAyB;YACvC,qBAAqB,EAAE,qBAAqB;YAC5C,sBAAsB,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;YAChE,WAAW,EAAE,GAAG;YAChB,QAAQ,EAAE,GAAG;SACd,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,cAAc,CACxD,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { StorageManagementClient } from "@azure/arm-storage";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Regenerates one of the access keys or Kerberos keys for the specified storage account.
|
|
15
17
|
*
|
|
16
18
|
* @summary Regenerates one of the access keys or Kerberos keys for the specified storage account.
|
|
17
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountRegenerateKerbKey.json
|
|
18
20
|
*/
|
|
19
21
|
function storageAccountRegenerateKerbKey() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "res4167";
|
|
23
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
24
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4167";
|
|
23
25
|
const accountName = "sto3539";
|
|
24
26
|
const regenerateKey = {
|
|
25
27
|
keyName: "kerb1"
|
|
@@ -30,17 +32,16 @@ function storageAccountRegenerateKerbKey() {
|
|
|
30
32
|
console.log(result);
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
|
-
storageAccountRegenerateKerbKey().catch(console.error);
|
|
34
35
|
/**
|
|
35
36
|
* This sample demonstrates how to Regenerates one of the access keys or Kerberos keys for the specified storage account.
|
|
36
37
|
*
|
|
37
38
|
* @summary Regenerates one of the access keys or Kerberos keys for the specified storage account.
|
|
38
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
39
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountRegenerateKey.json
|
|
39
40
|
*/
|
|
40
41
|
function storageAccountRegenerateKey() {
|
|
41
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
const subscriptionId = "{subscription-id}";
|
|
43
|
-
const resourceGroupName = "res4167";
|
|
43
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
44
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4167";
|
|
44
45
|
const accountName = "sto3539";
|
|
45
46
|
const regenerateKey = {
|
|
46
47
|
keyName: "key2"
|
|
@@ -51,5 +52,11 @@ function storageAccountRegenerateKey() {
|
|
|
51
52
|
console.log(result);
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
+
function main() {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
storageAccountRegenerateKerbKey();
|
|
58
|
+
storageAccountRegenerateKey();
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
main().catch(console.error);
|
|
55
62
|
//# sourceMappingURL=storageAccountsRegenerateKeySample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageAccountsRegenerateKeySample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsRegenerateKeySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file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F,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,aAAa,CACvD,iBAAiB,EACjB,WAAW,EACX,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,+BAA+B,EAAE,CAAC;QAClC,2BAA2B,EAAE,CAAC;IAChC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { StorageManagementClient } from "@azure/arm-storage";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Restore blobs in the specified blob ranges
|
|
15
17
|
*
|
|
16
18
|
* @summary Restore blobs in the specified blob ranges
|
|
17
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/BlobRangesRestore.json
|
|
18
20
|
*/
|
|
19
21
|
function blobRangesRestore() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "res9101";
|
|
23
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
24
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res9101";
|
|
23
25
|
const accountName = "sto4445";
|
|
24
26
|
const parameters = {
|
|
25
27
|
blobRanges: [
|
|
@@ -34,5 +36,10 @@ function blobRangesRestore() {
|
|
|
34
36
|
console.log(result);
|
|
35
37
|
});
|
|
36
38
|
}
|
|
37
|
-
|
|
39
|
+
function main() {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
blobRangesRestore();
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
main().catch(console.error);
|
|
38
45
|
//# sourceMappingURL=storageAccountsRestoreBlobRangesSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageAccountsRestoreBlobRangesSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsRestoreBlobRangesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"storageAccountsRestoreBlobRangesSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsRestoreBlobRangesSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAA0B;YACxC,UAAU,EAAE;gBACV,EAAE,QAAQ,EAAE,qBAAqB,EAAE,UAAU,EAAE,qBAAqB,EAAE;gBACtE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,sBAAsB,EAAE;aACrD;YACD,aAAa,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC;SACxD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,6BAA6B,CACvE,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
|
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
11
|
import { StorageManagementClient } from "@azure/arm-storage";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
13
15
|
/**
|
|
14
16
|
* This sample demonstrates how to Revoke user delegation keys.
|
|
15
17
|
*
|
|
16
18
|
* @summary Revoke user delegation keys.
|
|
17
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/examples/StorageAccountRevokeUserDelegationKeys.json
|
|
18
20
|
*/
|
|
19
21
|
function storageAccountRevokeUserDelegationKeys() {
|
|
20
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "{subscription-id}";
|
|
22
|
-
const resourceGroupName = "res4167";
|
|
23
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
24
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4167";
|
|
23
25
|
const accountName = "sto3539";
|
|
24
26
|
const credential = new DefaultAzureCredential();
|
|
25
27
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -27,5 +29,10 @@ function storageAccountRevokeUserDelegationKeys() {
|
|
|
27
29
|
console.log(result);
|
|
28
30
|
});
|
|
29
31
|
}
|
|
30
|
-
|
|
32
|
+
function main() {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
storageAccountRevokeUserDelegationKeys();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
main().catch(console.error);
|
|
31
38
|
//# sourceMappingURL=storageAccountsRevokeUserDelegationKeysSample.js.map
|