从自定义VM映像创建批处理. [英] Creation of Batch from custom VM Image.

查看:79
本文介绍了从自定义VM映像创建批处理.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

from azure.batch import BatchServiceClient
from azure.common.credentials import ServicePrincipalCredentials

credentials = ServicePrincipalCredentials(
    client_id=CLIENT_ID,
    secret=SECRET,
    tenant=TENANT_ID,
    resource="https://batch.core.windows.net/"
)
    batch_client = BatchServiceClient(
    credentials,
    base_url=BATCH_ACCOUNT_URL
)

to authenticate I will need Client_ID which I will get from registration of my application. But for that I have to provide URL. What URL needs to be provided there?

推荐答案

它应该只是批处理帐户的批处理URL.您可以在门户网站中找到它

It should just be the Batch URL for your batch account. You can find it in the portal


这篇关于从自定义VM映像创建批处理.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆