我在哪里可以找到" storage_account_name"," storage_account_key"," storage_container_name"在天蓝色?

时间:2018-05-23 00:12:16

标签: python azure azure-storage

我发现以下代码需要" storage_account_name"," storage_account_key"," storage_container_name"

def invokeBatchExecutionService():
    storage_account_name = "mystorageacct" # Replace this with your Azure Storage Account name
    storage_account_key = "a_storage_account_key" # Replace this with your Azure Storage Key
    storage_container_name = "mycontainer" # Replace this with your Azure Storage Container name
    connection_string = "DefaultEndpointsProtocol=https;AccountName=" + storage_account_name + ";AccountKey=" + storage_account_key
    api_key = "abc123" # Replace this with the API key for the web service
    url = "https://ussouthcentral.services.azureml.net/workspaces/e810bf8e16bb4dec9719b07f0205b0bb/services/bc8304cebe1a42bfb2518b302eba979d/jobs"
    uploadFileToBlob("input1data.file_extension", # Replace this with the location of your input file, and valid file extension (usually .csv)
        "input1datablob.file_extension", # Replace this with the name you would like to use for your Azure blob; this needs to have the same extension as the input file
        storage_container_name, storage_account_name, storage_account_key)

我可以找到" api_key"这里: enter image description here 但是我在哪里可以找到" storage_account_name"," storage_account_key"," storage_container_name"吗

1 个答案:

答案 0 :(得分:1)

您需要Azure存储帐户: https://azure.microsoft.com/en-us/services/storage/

首先,你创建一个:

在此快速入门期间,您可以选择帐户名称。 Azure为您提供了访问它的密钥:

然后,您需要在此Storage帐户中创建一个Blob容器。您也可以选择名称。使用门户网站或CLI执行此操作:

请注意,您可以根据需要在容器级别或存储级别创建密钥。