首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在哪里可以找到"storage_account_name","storage_account_key","storage_container_name“?

在哪里可以找到"storage_account_name","storage_account_key","storage_container_name“?
EN

Stack Overflow用户
提问于 2018-05-23 00:12:16
回答 1查看 696关注 0票数 1

我发现以下代码需要"storage_account_name“、"storage_account_key”、"storage_container_name“.

代码语言:javascript
运行
复制
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“:

,但在哪里可以找到"storage_account_name“、"storage_account_key”、"storage_container_name“?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-05-23 00:48:53

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

首先,创建一个:

在这个快速启动过程中,您可以选择帐户名。Azure为您提供了访问它的密钥:

然后,您需要在这个存储帐户中创建一个Blob容器。你也可以选择这个名字。使用门户或CLI这样做:

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50478121

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档