本文整理汇总了TypeScript中azurerest-common/azurerestutility.js.default.getAzureRMWebAppMetadata方法的典型用法代码示例。如果您正苦于以下问题:TypeScript js.default.getAzureRMWebAppMetadata方法的具体用法?TypeScript js.default.getAzureRMWebAppMetadata怎么用?TypeScript js.default.getAzureRMWebAppMetadata使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类azurerest-common/azurerestutility.js.default
的用法示例。
在下文中一共展示了js.default.getAzureRMWebAppMetadata方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: updateArmMetadata
async function updateArmMetadata(SPN, webAppName: string, resourceGroupName: string, deployToSlotFlag: boolean, slotName: string) {
var collectionUri = tl.getVariable("system.teamfoundationCollectionUri");
var projectId = tl.getVariable("system.teamprojectId");
var buildDefintionId = tl.getVariable("build.definitionId")
var releaseDefinitionId = tl.getVariable("release.definitionId");
let newPoperties = {
VSTSRM_BuildDefinitionId: buildDefintionId,
VSTSRM_ReleaseDefinitionId: releaseDefinitionId,
VSTSRM_ProjectId: projectId,
VSTSRM_AccountId: tl.getVariable("system.collectionId"),
VSTSRM_BuildDefinitionWebAccessUrl: collectionUri + projectId + "/_build?_a=simple-process&definitionId=" + buildDefintionId,
VSTSRM_ConfiguredCDEndPoint: collectionUri + projectId + "/_apps/hub/ms.vss-releaseManagement-web.hub-explorer?definitionId=" + releaseDefinitionId
}
var metadata = await azureRESTUtility.getAzureRMWebAppMetadata(SPN, webAppName, resourceGroupName, deployToSlotFlag, slotName);
var properties = metadata.properties;
Object.keys(newPoperties).forEach((key) => {
properties[key] = newPoperties[key];
});
metadata.properties = properties;
await azureRESTUtility.updateAzureRMWebAppMetadata(SPN, webAppName, resourceGroupName, deployToSlotFlag, slotName, metadata);
}