O tipo de conta BlockBlobStorage permite criar blobs de bloco com características de desempenho premium.The BlockBlobStorage account kind lets you create block blobs with premium performance characteristics.Este tipo de conta de armazenamento é otimizado para cargas de trabalho com altas taxas de transações ou que requerem tempos de acesso muito rápidos.This type of storage account is optimized for workloads with high transactions rates or that require very fast access times.Este artigo mostra como criar uma conta BlockBlobStorage utilizando o portal Azure, o Azure CLI ou Azure PowerShell.This article shows how to create a BlockBlobStorage account by using the Azure portal, the Azure CLI, or Azure PowerShell.
Se não tiver uma subscrição do Azure, crie uma conta gratuita antes de começar.If you don't have an Azure subscription, create a free account before you begin.
Este artigo requer o módulo Azure PowerShell versão 1.2.0 ou posterior.This how-to article requires the Azure PowerShell module Az version 1.2.0 or later.Execute Get-Module -ListAvailable Az para encontrar a versão atual.Run Get-Module -ListAvailable Az to find your current version.Se precisar de instalar ou atualizar, veja Install Azure PowerShell module(Instalar o módulo do Azure PowerShell).If you need to install or upgrade, see Install Azure PowerShell module.
Pode entrar no Azure e executar os comandos Azure CLI de uma de duas maneiras:You can sign in to Azure and run Azure CLI commands in one of two ways:
Pode executar comandos CLI a partir do portal Azure, em Azure Cloud Shell.You can run CLI commands from within the Azure portal, in Azure Cloud Shell.
Pode instalar o CLI e executar os comandos CLI localmente.You can install the CLI and run CLI commands locally.
Utilizar o Azure Cloud ShellUse Azure Cloud Shell
O Azure Cloud Shell é um shell Bash gratuito que pode ser executado diretamente no portal do Azure.Azure Cloud Shell is a free Bash shell that you can run directly within the Azure portal.O Azure CLI está pré-instalado e configurado para ser utilizado com a sua conta.The Azure CLI is pre-installed and configured to use with your account.Clique no botão Cloud Shell no menu na secção superior direita do portal Azure:Click the Cloud Shell button on the menu in the upper-right section of the Azure portal:
O botão lança uma concha interativa que pode usar para executar os passos descritos neste artigo de como fazer:The button launches an interactive shell that you can use to run the steps outlined in this how-to article:
Instalar a CLI localmenteInstall the CLI locally
Também pode instalar e utilizar a CLI do Azure localmente.You can also install and use the Azure CLI locally.Este artigo de como fazer requer que esteja a executar a versão Azure CLI 2.0.46 ou posterior.This how-to article requires that you are running the Azure CLI version 2.0.46 or later.Executar az --version para localizar a versão.Run az --version to find the version.Se precisar de instalar ou atualizar, veja Instalar a CLI do Azure.If you need to install or upgrade, see Install the Azure CLI.
Inscreva-se na sua subscrição Azure com o Connect-AzAccount comando e siga as instruções no ecrã para autenticar.Sign in to your Azure subscription with the Connect-AzAccount command and follow the on-screen directions to authenticate.
Connect-AzAccount
Para lançar a Azure Cloud Shell, inscreva-se no portal Azure.To launch Azure Cloud Shell, sign in to the Azure portal.
Para iniciar sessão na instalação local do CLI, execute o comando de login az:To log into your local installation of the CLI, run the az login command:
az login
Criar uma conta BlockBlobStorageCreate a BlockBlobStorage account
Para criar uma conta BlockBlobStorage no portal Azure, siga estes passos:To create a BlockBlobStorage account in the Azure portal, follow these steps:
No portal Azure, selecione Todos os serviços > a categoria de Armazenamento > Contas de Armazenamento.In the Azure portal, select All services > the Storage category > Storage accounts.
Nas contas de Armazenamento, selecione Add.Under Storage accounts, select Add.
No campo Subscrição, selecione a subscrição na qual criar a conta de armazenamento.In the Subscription field, select the subscription in which to create the storage account.
No campo grupo De recursos, selecione um grupo de recursos existente ou selecione Criar novo, e insira um nome para o novo grupo de recursos.In the Resource group field, select an existing resource group or select Create new, and enter a name for the new resource group.
No campo de nome da conta De armazenamento, insira um nome para a conta.In the Storage account name field, enter a name for the account.Note as seguintes orientações:Note the following guidelines:
O nome deve ser único em Azure.The name must be unique across Azure.
O nome deve ter entre três e 24 caracteres de comprimento.The name must be between three and 24 characters long.
O nome pode incluir apenas números e letras minúsculas.The name can include only numbers and lowercase letters.
No campo Localização, selecione uma localização para a conta de armazenamento ou utilize a localização predefinitiva.In the Location field, select a location for the storage account, or use the default location.
Para o resto das definições, configufique o seguinte:For the rest of the settings, configure the following:
Deixe a definição padrão de armazenamento localmente redundante (LRS).Leave the default setting of Locally-redundant storage (LRS).
Escolha o separador Avançado.Choose the Advanced tab.
Se pretender otimizar a sua conta de armazenamento para análise de dados, em seguida, desapasça o espaço de nome hierárquico para Ativado.If you want to optimize your storage account for data analytics, then set Hierarchical namespace to Enabled.Caso contrário, deixe esta opção definida para o seu valor predefinido.Otherwise, leave this option set to its default value.Ativar esta definição com a sua conta BlockBlobStorage dá-lhe o nível premium para o armazenamento de data lake.Enabling this setting with your BlockBlobStorage account gives you the premium tier for Data Lake Storage.Para saber mais sobre o armazenamento do data lake, consulte Introdução ao Azure Data Lake Storage Gen2.To learn more about Data Lake Storage, see Introduction to Azure Data Lake Storage Gen2.
Selecione Review + criar para rever as definições da conta de armazenamento.Select Review + create to review the storage account settings.
Selecione Criar.Select Create.
Nota
Este artigo foi atualizado para utilizar o módulo Azure Az PowerShell.This article has been updated to use the Azure Az PowerShell module.O módulo Az PowerShell é o módulo do PowerShell recomendado para interagir com o Azure.The Az PowerShell module is the recommended PowerShell module for interacting with Azure.Para começar a utilizar o módulo Azure PowerShell, veja Instalar o Azure PowerShell.To get started with the Az PowerShell module, see Install Azure PowerShell.Para saber como migrar para o módulo do Az PowerShell, veja Migrar o Azure PowerShell do AzureRM para o Az.To learn how to migrate to the Az PowerShell module, see Migrate Azure PowerShell from AzureRM to Az.
Abra uma sessão elevada do Windows PowerShell (Executar como administrador).Open an elevated Windows PowerShell session (Run as administrator).
Executar o seguinte comando para se certificar de que a versão mais recente do Az módulo PowerShell está instalada.Run the following command to make sure the latest version of the Az PowerShell module is installed.
Install-Module -Name Az -AllowClobber
Abra uma nova consola PowerShell e inscreva-se na sua conta Azure.Open a new PowerShell console and sign in with your Azure account.
Se necessário, crie um novo grupo de recursos.If needed, create a new resource group.Substitua os valores nas citações e execute o seguinte comando.Replace the values in quotations, and run the following command.
Crie a conta BlockBlobStorage.Create the BlockBlobStorage account.Substitua os valores nas citações e execute o seguinte comando.Replace the values in quotations, and run the following command.
Se pretender otimizar a sua conta de armazenamento para análise de dados, adicione -EnableHierarchicalNamespace $True ao comando.If you want to optimize your storage account for data analytics, then add -EnableHierarchicalNamespace $True to the command.Ativar esta definição com a sua conta BlockBlobStorage dá-lhe o nível premium para o armazenamento de data lake.Enabling this setting with your BlockBlobStorage account gives you the premium tier for Data Lake Storage.Para saber mais sobre o armazenamento do data lake, consulte Introdução ao Azure Data Lake Storage Gen2.To learn more about Data Lake Storage, see Introduction to Azure Data Lake Storage Gen2.
Para criar uma conta blob de bloco utilizando o CLI Azure, tem primeiro de instalar o Azure CLI v.To create a block blob account by using the Azure CLI, you must first install Azure CLI v.2.0.46 ou uma versão posterior.2.0.46 or a later version.Executar az --version para localizar a versão.Run az --version to find the version.Se precisar de instalar ou atualizar, veja Instalar a CLI do Azure.If you need to install or upgrade, see Install the Azure CLI.
Inscreva-se na sua assinatura Azure.Sign in to your Azure subscription.
az login
Se necessário, crie um novo grupo de recursos.If needed, create a new resource group.Substitua os valores nos suportes (incluindo os suportes) e executar o seguinte comando.Replace the values in brackets (including the brackets), and run the following command.
az group create \
--name "<new_resource_group_name>" \
--location "<location>"
Crie a conta BlockBlobStorage.Create the BlockBlobStorage account.Substitua os valores nos suportes (incluindo os suportes) e executar o seguinte comando.Replace the values in brackets (including the brackets), and run the following command.
Se pretender otimizar a sua conta de armazenamento para análise de dados, adicione --hierarchical-namespace true ao comando.If you want to optimize your storage account for data analytics, then add --hierarchical-namespace true to the command.Ativar esta definição com a sua conta BlockBlobStorage dá-lhe o nível premium para o armazenamento de data lake.Enabling this setting with your BlockBlobStorage account gives you the premium tier for Data Lake Storage.Para saber mais sobre o armazenamento do data lake, consulte Introdução ao Azure Data Lake Storage Gen2.To learn more about Data Lake Storage, see Introduction to Azure Data Lake Storage Gen2.