本文整理匯總了TypeScript中azure-arm-rest/azure-arm-app-service.AzureAppService.getPublishingCredentials方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript AzureAppService.getPublishingCredentials方法的具體用法?TypeScript AzureAppService.getPublishingCredentials怎麽用?TypeScript AzureAppService.getPublishingCredentials使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類azure-arm-rest/azure-arm-app-service.AzureAppService
的用法示例。
在下文中一共展示了AzureAppService.getPublishingCredentials方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: getKuduService
public async getKuduService(): Promise<Kudu> {
var publishingCredentials = await this._appService.getPublishingCredentials();
if(publishingCredentials.properties["scmUri"]) {
tl.setVariable(`AZURE_APP_SERVICE_KUDU_${this._appService.getSlot()}_PASSWORD`, publishingCredentials.properties["publishingPassword"], true);
return new Kudu(publishingCredentials.properties["scmUri"], publishingCredentials.properties["publishingUserName"], publishingCredentials.properties["publishingPassword"]);
}
throw Error(tl.loc('KuduSCMDetailsAreEmpty'));
}