Package detail

@azure/arm-storage

Azure560.7kMIT18.5.0

A generated SDK for StorageManagementClient.

node, azure, typescript, browser

readme

Azure SDK for JavaScript

Packages Dependencies DependencyGraph

This repository is for the Azure SDK for JavaScript (Node.js & Browser). It contains libraries for the breadth of Azure services. Management libraries are packages that you would use to provision and manage Azure resources. Client libraries are packages that you would use to consume these resources and interact with them.

Getting started

A few helpful resources to get started are:

  • The readme for each package contains code samples and package information. This readme can be found in the corresponding package folder under the folder of the service of your choice in the /sdk folder of this repository. The same readme file can be found on the landing page for the package in npm.
  • The API reference documentation of the latest versions of these packages, can be found at our public developer docs.
  • The API reference documentation of older versions, can be found in our versioned developer docs.

Each service might have a number of libraries available from each of the following categories:

NOTE: Some of these packages have beta versions. If you need to ensure your code is ready for production, use one of the stable, non-beta packages.

Client

Given an Azure resource already exists, you would use the client libraries to consume it and interact with it. Most of these libraries follow the Azure SDK Design Guidelines for JavaScript & TypeScript and share a number of core functionalities such as retries, logging, transport protocols, authentication protocols, etc. Others will be updated in the near future to follow the guidelines as well.

To get a list of all client libraries that follow the new guidelines, please visit our Azure SDK releases page.

Management

Management libraries enable you to provision and manage Azure resources via the Azure Resource Manager i.e. ARM. You can recognize these libraries by @azure/arm- in their package names. These are purely auto-generated based on the swagger files that represent the APIs for resource management.

Newer versions of these libraries follow the Azure SDK Design Guidelines for TypeScript. These new versions provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity library, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more. A few helpful resources to get started with these are:

NOTE: If you are experiencing authentication issues with the management libraries after upgrading certain packages, it's possible that you upgraded to the new versions of SDK without changing the authentication code, please refer to the migration guide mentioned above for proper instructions.

Need help?

Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described below. You can learn more about data collection and use in the help documentation and Microsoft’s privacy statement. For more information on the data collected by the Azure SDK, please visit the Telemetry Guidelines page.

Telemetry Configuration

Telemetry collection is on by default.

To opt out, you can disable telemetry at client construction. Create a custom HTTP pipeline policy that removes the user agent string, and then pass that policy into the additionalPolicies option during client creation. This will disable telemetry for all methods in the client. Do this for every new client.

The example below uses the @azure/keyvault-secrets package. In your code, you can replace @azure/keyvault-secrets with the package you are using.

import { SecretClient } from "@azure/keyvault-secrets";
import { ManagedIdentityCredential } from "@azure/identity";

function removeUserAgentPolicy() {
  return {
    name: "removeUserAgentPolicy",
    sendRequest(request, next) {
      request.headers.delete("User-Agent");
      return next(request);
    },
  };
}

/**
 * Creates a SecretClient with managed identity authentication and empty user agent
 * @param keyvaultUri - The URI of the Azure Key Vault
 * @returns configured SecretClient instance
 */
function createSecretClientWithManagedIdentity(
  keyvaultUri: string
): SecretClient {
  // Create ManagedIdentityCredential for managed identity authentication
  const credential = new ManagedIdentityCredential();

  // Create secret client with managed identity and empty user agent
  const secretClient = new SecretClient(keyvaultUri, credential, {
    additionalPolicies: [
      {
        position: "perCall",
        policy: removeUserAgentPolicy(),
      },
    ],
  });

  return secretClient;
}

// Usage example
const keyvaultUri = "https://your-keyvault-name.vault.azure.net";
const secretClient = createSecretClientWithManagedIdentity(keyvaultUri);

// Now you can use the secret client to perform operations
// For example:
// const secretValue = await secretClient.getSecret("your-secret-name");

Community

Try our community resources.

Reporting security issues and security bugs

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.

Contributing

For details on contributing to this repository, see the contributing guide.

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

changelog

Release History

18.5.0 (2025-04-18)

Features Added

  • Type ProvisioningState has a new value Accepted

18.4.0 (2025-02-27)

Features Added

  • Added operation FileServices.getServiceUsage
  • Added operation FileServices.listServiceUsages
  • Added Interface AccountLimits
  • Added Interface AccountUsage
  • Added Interface AccountUsageElements
  • Added Interface BurstingConstants
  • Added Interface FileServicesGetServiceUsageOptionalParams
  • Added Interface FileServicesListServiceUsagesNextOptionalParams
  • Added Interface FileServicesListServiceUsagesOptionalParams
  • Added Interface FileServiceUsage
  • Added Interface FileServiceUsageProperties
  • Added Interface FileServiceUsages
  • Added Interface FileShareLimits
  • Added Interface FileSharePropertiesFileSharePaidBursting
  • Added Interface FileShareRecommendations
  • Added Interface ObjectReplicationPolicyPropertiesMetrics
  • Added Type Alias FileServicesGetServiceUsageResponse
  • Added Type Alias FileServicesListServiceUsagesNextResponse
  • Added Type Alias FileServicesListServiceUsagesResponse
  • Interface FileShare has a new optional parameter fileSharePaidBursting
  • Interface FileShare has a new optional parameter includedBurstIops
  • Interface FileShare has a new optional parameter maxBurstCreditsForIops
  • Interface FileShare has a new optional parameter nextAllowedProvisionedBandwidthDowngradeTime
  • Interface FileShare has a new optional parameter nextAllowedProvisionedIopsDowngradeTime
  • Interface FileShare has a new optional parameter nextAllowedQuotaDowngradeTime
  • Interface FileShare has a new optional parameter provisionedBandwidthMibps
  • Interface FileShare has a new optional parameter provisionedIops
  • Interface FileShareItem has a new optional parameter fileSharePaidBursting
  • Interface FileShareItem has a new optional parameter includedBurstIops
  • Interface FileShareItem has a new optional parameter maxBurstCreditsForIops
  • Interface FileShareItem has a new optional parameter nextAllowedProvisionedBandwidthDowngradeTime
  • Interface FileShareItem has a new optional parameter nextAllowedProvisionedIopsDowngradeTime
  • Interface FileShareItem has a new optional parameter nextAllowedQuotaDowngradeTime
  • Interface FileShareItem has a new optional parameter provisionedBandwidthMibps
  • Interface FileShareItem has a new optional parameter provisionedIops
  • Interface ObjectReplicationPolicy has a new optional parameter metrics
  • Enum KnownSkuName has a new value PremiumV2LRS
  • Enum KnownSkuName has a new value PremiumV2ZRS
  • Enum KnownSkuName has a new value StandardV2GRS
  • Enum KnownSkuName has a new value StandardV2Gzrs
  • Enum KnownSkuName has a new value StandardV2LRS
  • Enum KnownSkuName has a new value StandardV2ZRS

18.3.0 (2024-06-27)

Features Added

  • Added operation group NetworkSecurityPerimeterConfigurations
  • Added operation group StorageTaskAssignmentInstancesReport
  • Added operation group StorageTaskAssignments
  • Added operation group StorageTaskAssignmentsInstancesReport
  • Added Interface ExecutionTarget
  • Added Interface ExecutionTrigger
  • Added Interface ExecutionTriggerUpdate
  • Added Interface NetworkSecurityPerimeter
  • Added Interface NetworkSecurityPerimeterConfiguration
  • Added Interface NetworkSecurityPerimeterConfigurationList
  • Added Interface NetworkSecurityPerimeterConfigurationPropertiesProfile
  • Added Interface NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation
  • Added Interface NetworkSecurityPerimeterConfigurationsGetOptionalParams
  • Added Interface NetworkSecurityPerimeterConfigurationsListOptionalParams
  • Added Interface NetworkSecurityPerimeterConfigurationsReconcileHeaders
  • Added Interface NetworkSecurityPerimeterConfigurationsReconcileOptionalParams
  • Added Interface NspAccessRule
  • Added Interface NspAccessRuleProperties
  • Added Interface NspAccessRulePropertiesSubscriptionsItem
  • Added Interface ProvisioningIssue
  • Added Interface ProvisioningIssueProperties
  • Added Interface ProxyResourceAutoGenerated
  • Added Interface ResourceAutoGenerated
  • Added Interface StorageTaskAssignment
  • Added Interface StorageTaskAssignmentExecutionContext
  • Added Interface StorageTaskAssignmentInstancesReportListNextOptionalParams
  • Added Interface StorageTaskAssignmentInstancesReportListOptionalParams
  • Added Interface StorageTaskAssignmentProperties
  • Added Interface StorageTaskAssignmentReport
  • Added Interface StorageTaskAssignmentsCreateHeaders
  • Added Interface StorageTaskAssignmentsCreateOptionalParams
  • Added Interface StorageTaskAssignmentsDeleteHeaders
  • Added Interface StorageTaskAssignmentsDeleteOptionalParams
  • Added Interface StorageTaskAssignmentsGetOptionalParams
  • Added Interface StorageTaskAssignmentsInstancesReportListNextOptionalParams
  • Added Interface StorageTaskAssignmentsInstancesReportListOptionalParams
  • Added Interface StorageTaskAssignmentsList
  • Added Interface StorageTaskAssignmentsListNextOptionalParams
  • Added Interface StorageTaskAssignmentsListOptionalParams
  • Added Interface StorageTaskAssignmentsUpdateHeaders
  • Added Interface StorageTaskAssignmentsUpdateOptionalParams
  • Added Interface StorageTaskAssignmentUpdateExecutionContext
  • Added Interface StorageTaskAssignmentUpdateParameters
  • Added Interface StorageTaskAssignmentUpdateProperties
  • Added Interface StorageTaskAssignmentUpdateReport
  • Added Interface StorageTaskReportInstance
  • Added Interface StorageTaskReportProperties
  • Added Interface StorageTaskReportSummary
  • Added Interface TriggerParameters
  • Added Interface TriggerParametersUpdate
  • Added Type Alias IssueType
  • Added Type Alias ListLocalUserIncludeParam
  • Added Type Alias NetworkSecurityPerimeterConfigurationProvisioningState
  • Added Type Alias NetworkSecurityPerimeterConfigurationsGetResponse
  • Added Type Alias NetworkSecurityPerimeterConfigurationsListResponse
  • Added Type Alias NetworkSecurityPerimeterConfigurationsReconcileResponse
  • Added Type Alias NspAccessRuleDirection
  • Added Type Alias ResourceAssociationAccessMode
  • Added Type Alias RunResult
  • Added Type Alias RunStatusEnum
  • Added Type Alias Severity
  • Added Type Alias StorageTaskAssignmentInstancesReportListNextResponse
  • Added Type Alias StorageTaskAssignmentInstancesReportListResponse
  • Added Type Alias StorageTaskAssignmentsCreateResponse
  • Added Type Alias StorageTaskAssignmentsDeleteResponse
  • Added Type Alias StorageTaskAssignmentsGetResponse
  • Added Type Alias StorageTaskAssignmentsInstancesReportListNextResponse
  • Added Type Alias StorageTaskAssignmentsInstancesReportListResponse
  • Added Type Alias StorageTaskAssignmentsListNextResponse
  • Added Type Alias StorageTaskAssignmentsListResponse
  • Added Type Alias StorageTaskAssignmentsUpdateResponse
  • Added Type Alias TriggerType
  • Interface LocalUser has a new optional parameter allowAclAuthorization
  • Interface LocalUser has a new optional parameter extendedGroups
  • Interface LocalUser has a new optional parameter groupId
  • Interface LocalUser has a new optional parameter isNFSv3Enabled
  • Interface LocalUser has a new optional parameter userId
  • Interface LocalUsers has a new optional parameter nextLink
  • Interface LocalUsersListOptionalParams has a new optional parameter filter
  • Interface LocalUsersListOptionalParams has a new optional parameter include
  • Interface LocalUsersListOptionalParams has a new optional parameter maxpagesize
  • Interface StorageAccount has a new optional parameter enableExtendedGroups
  • Interface StorageAccountCreateParameters has a new optional parameter enableExtendedGroups
  • Interface StorageAccountUpdateParameters has a new optional parameter enableExtendedGroups
  • Added Enum KnownIssueType
  • Added Enum KnownListLocalUserIncludeParam
  • Added Enum KnownNetworkSecurityPerimeterConfigurationProvisioningState
  • Added Enum KnownNspAccessRuleDirection
  • Added Enum KnownResourceAssociationAccessMode
  • Added Enum KnownRunResult
  • Added Enum KnownRunStatusEnum
  • Added Enum KnownSeverity
  • Enum KnownExpirationAction has a new value Block
  • Enum KnownMinimumTlsVersion has a new value TLS13
  • Enum KnownPublicNetworkAccess has a new value SecuredByPerimeter

18.2.0 (2023-08-08)

Features Added

  • Added operation StorageAccounts.beginCustomerInitiatedMigration
  • Added operation StorageAccounts.beginCustomerInitiatedMigrationAndWait
  • Added operation StorageAccounts.getCustomerInitiatedMigration
  • Added Interface BlobInventoryCreationTime
  • Added Interface ErrorAdditionalInfo
  • Added Interface ErrorDetail
  • Added Interface ErrorResponseAutoGenerated
  • Added Interface StorageAccountMigration
  • Added Interface StorageAccountsCustomerInitiatedMigrationHeaders
  • Added Interface StorageAccountsCustomerInitiatedMigrationOptionalParams
  • Added Interface StorageAccountsGetCustomerInitiatedMigrationOptionalParams
  • Added Type Alias MigrationName
  • Added Type Alias MigrationStatus
  • Added Type Alias PostFailoverRedundancy
  • Added Type Alias PostPlannedFailoverRedundancy
  • Added Type Alias StorageAccountsGetCustomerInitiatedMigrationResponse
  • Interface BlobInventoryPolicyFilter has a new optional parameter creationTime
  • Interface GeoReplicationStats has a new optional parameter canPlannedFailover
  • Interface GeoReplicationStats has a new optional parameter postFailoverRedundancy
  • Interface GeoReplicationStats has a new optional parameter postPlannedFailoverRedundancy
  • Interface StorageAccount has a new optional parameter accountMigrationInProgress
  • Interface StorageAccount has a new optional parameter isSkuConversionBlocked
  • Added Enum KnownMigrationName
  • Added Enum KnownMigrationStatus
  • Added Enum KnownPostFailoverRedundancy
  • Added Enum KnownPostPlannedFailoverRedundancy
  • Enum KnownAllowedMethods has a new value Connect
  • Enum KnownAllowedMethods has a new value Trace
  • Interface BlobContainersListNextOptionalParams no longer has parameter filter
  • Interface BlobContainersListNextOptionalParams no longer has parameter include
  • Interface BlobContainersListNextOptionalParams no longer has parameter maxpagesize
  • Interface EncryptionScopesListNextOptionalParams no longer has parameter filter
  • Interface EncryptionScopesListNextOptionalParams no longer has parameter include
  • Interface EncryptionScopesListNextOptionalParams no longer has parameter maxpagesize
  • Interface FileSharesListNextOptionalParams no longer has parameter expand
  • Interface FileSharesListNextOptionalParams no longer has parameter filter
  • Interface FileSharesListNextOptionalParams no longer has parameter maxpagesize
  • Interface QueueListNextOptionalParams no longer has parameter filter
  • Interface QueueListNextOptionalParams no longer has parameter maxpagesize

18.1.0 (2022-11-24)

Features Added

  • Added Type Alias ListEncryptionScopesInclude
  • Interface EncryptionScopesListNextOptionalParams has a new optional parameter filter
  • Interface EncryptionScopesListNextOptionalParams has a new optional parameter include
  • Interface EncryptionScopesListNextOptionalParams has a new optional parameter maxpagesize
  • Interface EncryptionScopesListOptionalParams has a new optional parameter filter
  • Interface EncryptionScopesListOptionalParams has a new optional parameter include
  • Interface EncryptionScopesListOptionalParams has a new optional parameter maxpagesize
  • Interface ManagementPolicyBaseBlob has a new optional parameter tierToCold
  • Interface ManagementPolicyBaseBlob has a new optional parameter tierToHot
  • Interface ManagementPolicySnapShot has a new optional parameter tierToCold
  • Interface ManagementPolicySnapShot has a new optional parameter tierToHot
  • Interface ManagementPolicyVersion has a new optional parameter tierToCold
  • Interface ManagementPolicyVersion has a new optional parameter tierToHot
  • Added Enum KnownListEncryptionScopesInclude

18.0.0 (2022-08-16)

Features Added

  • Added Interface AzureEntityResource
  • Added Interface BlobContainer
  • Added Interface BlobInventoryPolicy
  • Added Interface BlobServiceProperties
  • Added Interface DeletedAccount
  • Added Interface EncryptionScope
  • Added Interface FileServiceProperties
  • Added Interface FileShare
  • Added Interface FileShareItem
  • Added Interface ImmutabilityPolicy
  • Added Interface ListContainerItem
  • Added Interface ListQueue
  • Added Interface LocalUser
  • Added Interface ManagementPolicy
  • Added Interface ObjectReplicationPolicy
  • Added Interface PrivateEndpointConnection
  • Added Interface PrivateLinkResource
  • Added Interface ProxyResource
  • Added Interface QueueServiceProperties
  • Added Interface StorageAccount
  • Added Interface StorageQueue
  • Added Interface Table
  • Added Interface TableServiceProperties
  • Added Interface TrackedResource
  • Added Type Alias AccountType
  • Added Type Alias AllowedMethods
  • Added Enum KnownAccountType
  • Added Enum KnownAllowedMethods
  • Enum KnownDirectoryServiceOptions has a new value Aadkerb

Breaking Changes

  • Removed Enum KnownActiveDirectoryPropertiesAccountType
  • Removed Enum KnownCorsRuleAllowedMethodsItem

17.2.1 (2022-06-15)

Features Added

  • Bug fix

17.2.0 (2022-03-30)

Features Added

  • Added Interface StorageAccountSkuConversionStatus
  • Added Interface TableAccessPolicy
  • Added Interface TableSignedIdentifier
  • Added Type Alias DnsEndpointType
  • Added Type Alias SkuConversionStatus
  • Interface BlobInventoryPolicyFilter has a new optional parameter excludePrefix
  • Interface BlobInventoryPolicyFilter has a new optional parameter includeDeleted
  • Interface BlobInventoryPolicySchema has a new optional parameter destination
  • Interface DateAfterCreation has a new optional parameter daysAfterLastTierChangeGreaterThan
  • Interface DateAfterModification has a new optional parameter daysAfterCreationGreaterThan
  • Interface DateAfterModification has a new optional parameter daysAfterLastTierChangeGreaterThan
  • Interface DeleteRetentionPolicy has a new optional parameter allowPermanentDelete
  • Interface KeyVaultProperties has a new optional parameter currentVersionedKeyExpirationTimestamp
  • Interface StorageAccountCreateParameters has a new optional parameter dnsEndpointType
  • Interface StorageAccountUpdateParameters has a new optional parameter dnsEndpointType
  • Interface TableCreateOptionalParams has a new optional parameter parameters
  • Interface TableUpdateOptionalParams has a new optional parameter parameters
  • Type Alias StorageAccount has a new parameter storageAccountSkuConversionStatus
  • Type Alias StorageAccount has a new parameter dnsEndpointType
  • Type Alias Table has a new parameter signedIdentifiers
  • Added Enum KnownDnsEndpointType
  • Added Enum KnownSkuConversionStatus
  • Enum KnownCorsRuleAllowedMethodsItem has a new value Patch

17.1.0 (2022-02-14)

Features Added

  • Added operation group LocalUsersOperations
  • Added Interface LocalUserKeys
  • Added Interface LocalUserRegeneratePasswordResult
  • Added Interface LocalUsers
  • Added Interface LocalUsersCreateOrUpdateOptionalParams
  • Added Interface LocalUsersDeleteOptionalParams
  • Added Interface LocalUsersGetOptionalParams
  • Added Interface LocalUsersListKeysOptionalParams
  • Added Interface LocalUsersListOptionalParams
  • Added Interface LocalUsersRegeneratePasswordOptionalParams
  • Added Interface PermissionScope
  • Added Interface SshPublicKey
  • Added Type Alias ActiveDirectoryPropertiesAccountType
  • Added Type Alias AllowedCopyScope
  • Added Type Alias LocalUser
  • Added Type Alias LocalUsersCreateOrUpdateResponse
  • Added Type Alias LocalUsersGetResponse
  • Added Type Alias LocalUsersListKeysResponse
  • Added Type Alias LocalUsersListResponse
  • Added Type Alias LocalUsersRegeneratePasswordResponse
  • Interface ActiveDirectoryProperties has a new optional parameter accountType
  • Interface ActiveDirectoryProperties has a new optional parameter samAccountName
  • Interface EncryptionIdentity has a new optional parameter encryptionFederatedIdentityClientId
  • Interface StorageAccountCreateParameters has a new optional parameter allowedCopyScope
  • Interface StorageAccountCreateParameters has a new optional parameter isLocalUserEnabled
  • Interface StorageAccountCreateParameters has a new optional parameter isSftpEnabled
  • Interface StorageAccountUpdateParameters has a new optional parameter allowedCopyScope
  • Interface StorageAccountUpdateParameters has a new optional parameter isLocalUserEnabled
  • Interface StorageAccountUpdateParameters has a new optional parameter isSftpEnabled
  • Class StorageManagementClient has a new parameter localUsersOperations
  • Type Alias StorageAccount has a new parameter isSftpEnabled
  • Type Alias StorageAccount has a new parameter isLocalUserEnabled
  • Type Alias StorageAccount has a new parameter allowedCopyScope
  • Added Enum KnownActiveDirectoryPropertiesAccountType
  • Added Enum KnownAllowedCopyScope

17.0.0 (2021-12-06)

The package of @azure/arm-storage is using our next generation design principles since version 17.0.0, which contains breaking changes.

To understand the detail of the change, please refer to Changelog.

To migrate the existing applications to the latest version, please refer to Migration Guide.

To learn more, please refer to our documentation Quick Start.