在哪里找到使用Azure Media Services的参数 [英] Where to find the params to use Azure Media Services

查看:89
本文介绍了在哪里找到使用Azure Media Services的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在学习如何通过php示例使用Azure媒体服务.在userconfig.php中,有以下参数:
$ tenant =  << tenant domanin名称> .onmicrosoft.com" ;;
$ username ='user@domain.com';
$ password ='userkey';
$ clientId =<<客户ID(guid)>" ;;;
$ clientKey =<客户端密钥(base64)";
$ restApiEndpoint ="https://<帐户名称> .restv2.< region> .media.azure.net/api/";
$ pfxFileName ="C:\\ Path \\ To \\ keystore.pfx";
$ pfxPassword =" KeyStorePassword" ;;

在Azure门户中哪里可以找到clientId和clientKey?

Hello,

I'm learning how to use Azure media service with the php example. In the userconfig.php there are these parameters:
$tenant =  "<tenant domanin name>.onmicrosoft.com";
$username = 'user@domain.com';
$password = 'userkey';
$clientId = "<client id (guid)>";
$clientKey = "<client key (base64)";
$restApiEndpoint = "https://<account name>.restv2.<region>.media.azure.net/api/";
$pfxFileName = "C:\\Path\\To\\keystore.pfx";
$pfxPassword = "KeyStorePassword";

Where can I find the clientId and the clientKey in azure portal? 

推荐答案

从您的帐户中单击API访问.然后选择使用服务原理连接到Azure Media Services API".创建一个新的应用程序(或选择现有的应用程序),按保存"(在屏幕顶部).点击管理 应用程序".按设置(屏幕顶部).应用程序ID =客户ID.要生成客户端密钥(密钥),请选择密钥.输入密钥名称,到期日期,然后按保存,将生成密钥.复制键值. 离开此刀片后,您将无法取回.

From your account click on API access. Then select "Connect to Azure Media Services API with service principle". Create a new app (or select existing) press Save (top of the screen). Click on "Manage application". Press settings (top of the screen). Application ID = Client ID. To generate a client secret (key), select Keys. Enter key name, expiration date, press Save and they key will be generated. Copy the key value. You won't be able to retrieve after you leave this blade.


这篇关于在哪里找到使用Azure Media Services的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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