【发布时间】:2018-05-16 07:24:46
【问题描述】:
我正在使用VSTS 创建release 定义。我需要将.Net core app 部署到Azure app service。
我从帐户 abc@outlook.com 登录 VSTS,而我的 azure 帐户与 xyz@outlook.com 关联
在这种情况下,我将服务端点添加为Azure Resource Manager。
但不确定我可以从哪里获得详细信息,例如:-
- 服务主体客户端 ID
- 服务原则密钥
- 租户 ID
我在哪里可以从 Azure 门户获得这些详细信息??
谢谢
【问题讨论】:
-
你解决了这个问题吗?
-
@starianchen-MSFT,还没有
-
现在有什么细节问题?
-
@starianchen-MSFT 错误 -
At line:3 char:47 + [string] $subscriptionName = "Free Trial", + ~ Missing expression after ','. At line:3 char:47 + [string] $subscriptionName = "Free Trial", + ~ Missing closing ')' in expression. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : MissingExpressionAfterToken -
@starianchen-MSFT 请参考ps脚本
( [Parameter(Mandatory = $true, HelpMessage = "Enter Azure Subscription name. You need to be Subscription Admin to execute the script")] [string] $subscriptionName = "Free Trial", [Parameter(Mandatory = $true, HelpMessage = "Provide a password for SPN application that you would create; this becomes the service principal's security key")] [securestring] $password = "Mypassword", [Parameter(Mandatory = $false, HelpMessage = "Provide a SPN role assignment")] [string] $spnRole = "owner", )
标签: azure continuous-integration azure-devops azure-web-app-service continuous-delivery