在本快速入门中,你将了解如何使用 Azure CLI 将 blob 上传到 Azure 存储、下载 blob 以及在容器中列出 blob。
您可以使用 Microsoft Entra 認證或使用儲存體帳戶存取金鑰,授權從 Azure CLI 存取 Blob 儲存體。 建議使用 Microsoft Entra 認證,本文的範例只使用 Microsoft Entra ID。 針對Blob 儲存體的資料作業 Azure CLI 命令可支援--auth-mode參數,這可讓您指定如何授權指定的作業。 將--auth-mode參數設定為login,以使用 ...
Azure CLI az storage account revoke-delegation-keys\--name<storage-account>\--resource-group<resource-group> 重要 用户委托密钥和 Azure 角色分配都是由 Azure 存储缓存的,因此,在启动撤销过程后,可能需要过一段时间现有用户委托 SAS 才会变得无效。
Azure CLI az dataprotection backup-policy get-default-policy-template--datasource-typeAzureBlob {"datasourceTypes": ["Microsoft.Storage/storageAccounts/blobServices"],"name":"BlobPolicy1","objectType":"BackupPolicy","policyRules": [ {"isDefault":true,"lifecycles": [ {"deleteAfter": {"duratio...
Azure CLI PowerShell 在Azure 门户中,使用主搜索栏或左侧导航找到存储帐户。 在存储帐户概述页的左侧菜单中选择“访问控制 (IAM)”。 在“访问控制 (IAM)”页上,选择“角色分配”选项卡。 从顶部菜单中选择“+ 添加”,然后从出现的下拉菜单中选择“添加角色分配”。
Azure 门户 Azure CLI PowerShell 在Azure 门户中,使用主搜索栏或左侧导航找到存储帐户。 在存储帐户概述页的左侧菜单中选择“访问控制 (IAM)”。 在“访问控制 (IAM)”页上,选择“角色分配”选项卡。 从顶部菜单中选择“+ 添加”,然后从出现的下拉菜单中选择“添加角色分配”。 使用搜索框将结果筛选为所需角...
Azure CLIversion 2.4 or later Table of Content Step 1 - Create new VS Code Project for Azure Function Step 2 - Update & Test python project Step 3 - Modify Dockerfile Step 4 - Create Azure Container Registry resource and push the newly created image ...
命令可能会返回错误"Only blobs formatted as VHDs can be imported."此错误可能意味着在转换为 VHD 之前,镜像与最接近的 1 MB 边界不一致。 例如: $ az image create -n rhel8 -g azrhelclirsgrp2 -l southcentralus --source https://azrhelclistact.blob.core.windows.net...
Storage Analytics logging is not enabled by default for your storage account. You can enable it in theAzure portalor by using PowerShell, or Azure CLI. For step-by-step guidance, seeEnable and manage Azure Storage Analytics logs (classic). ...
Create a Linux virtual machine with the Azure CLI Create a Linux virtual machine with the Azure portal In your Azure subscription, you should have a storage account available in the location in which you want to deploy the Management Center Virtual. Procedure Step 1 Download the...