我发现以下代码需要"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“:
,但在哪里可以找到"storage_account_name“、"storage_account_key”、"storage_container_name“?
发布于 2018-05-23 00:48:53
您需要一个Azure存储帐户:https://azure.microsoft.com/en-us/services/storage/
首先,创建一个:
在这个快速启动过程中,您可以选择帐户名。Azure为您提供了访问它的密钥:
然后,您需要在这个存储帐户中创建一个Blob容器。你也可以选择这个名字。使用门户或CLI这样做:
请注意,您可以根据需要在容器级别或存储级别创建密钥。
https://stackoverflow.com/questions/50478121
复制相似问题