适用于 Azure Blob 存储的 Azure PowerShell 示例Azure PowerShell samples for Azure Blob storage

下表包含用于创建和管理 Azure 存储的 PowerShell 脚本示例的链接。The following table includes links to PowerShell script samples that create and manage Azure Storage.

存储帐户Storage accounts
创建存储帐户并检索/轮换访问密钥Create a storage account and retrieve/rotate the access keys 创建 Azure 存储帐户并检索和轮换其中一个访问密钥。Creates an Azure Storage account and retrieves and rotates one of its access keys.
使用 Windows 版 AzCopy 跨存储账户迁移 BlobsMigrate Blobs across storage accounts using AzCopy on Windows 使用 Windows 版 AzCopy 跨 Azure 存储账户迁移 Blob。Migrate blobs across Azure Storage accounts using AzCopy on Windows.
Blob 存储Blob storage
计算 Blob 存储容器的总大小Calculate the total size of a Blob storage container 计算容器中所有 blob 的总大小。Calculates the total size of all the blobs in a container.
为计费目的计算 Blob 存储容器的大小Calculate the size of a Blob storage container for billing purposes 为了估算计费成本,计算 Blob 存储中容器的大小。Calculates the size of a container in Blob storage for the purpose of estimating billing costs.
删除具有特定前缀的容器Delete containers with a specific prefix 删除以特定字符串开头的容器。Deletes containers starting with a specified string.