Skip to content

Commit 5078741

Browse files
author
Ajay Kumar Yadav
committed
Merge pull request #5493 from Microsoft/users/ajya/fixForEnvPropertyIssue
issue fix
1 parent c761598 commit 5078741

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

Tasks/AzureAppServiceManage/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"version": {
1818
"Major": 0,
1919
"Minor": 2,
20-
"Patch": 15
20+
"Patch": 16
2121
},
2222
"minimumAgentVersion": "1.102.0",
2323
"instanceNameFormat": "$(Action): $(WebAppName)",

Tasks/AzureAppServiceManage/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"version": {
1818
"Major": 0,
1919
"Minor": 2,
20-
"Patch": 15
20+
"Patch": 16
2121
},
2222
"minimumAgentVersion": "1.102.0",
2323
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",

Tasks/AzureRmWebAppDeployment/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"version": {
1717
"Major": 3,
1818
"Minor": 3,
19-
"Patch": 16
19+
"Patch": 17
2020
},
2121
"releaseNotes": "What's new in Version 3.0: <br/>&nbsp;&nbsp;Supports File Transformations (XDT) <br/>&nbsp;&nbsp;Supports Variable Substitutions(XML, JSON) <br/>Click [here](https://aka.ms/azurermwebdeployreadme) for more Information.",
2222
"minimumAgentVersion": "2.104.1",

Tasks/AzureRmWebAppDeployment/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"version": {
1717
"Major": 3,
1818
"Minor": 3,
19-
"Patch": 16
19+
"Patch": 17
2020
},
2121
"releaseNotes": "ms-resource:loc.releaseNotes",
2222
"minimumAgentVersion": "2.104.1",

Tasks/Common/azurestack-common/azurestackrestutility.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ export async function initializeAzureRMEndpointData(connectedServiceName)
2525

2626
if(endPoint["environment"] != null && endPoint["environment"].toLowerCase() == azureStackEnvironment.toLowerCase()) {
2727
if(!endPoint["envAuthUrl"] || !endPoint["activeDirectoryResourceId"]) {
28-
endPoint = await initializeAzureStackData({"url":endPoint["url"]});
28+
endPoint = await initializeAzureStackData(endPoint);
29+
endPoint["envAuthUrl"] = endPoint['environmentAuthorityUrl'];
30+
endPoint["activeDirectoryResourceId"] = endPoint['activeDirectoryServiceEndpointResourceId'];
2931

3032
if(endPoint["envAuthUrl"] == null) {
3133
throw tl.loc("UnableToFetchAuthorityURL");
@@ -62,6 +64,7 @@ export async function initializeAzureStackData(endpoint): Promise<any>
6264
if(authenticationData) {
6365
var loginEndpoint = authenticationData.loginEndpoint;
6466
if(loginEndpoint) {
67+
loginEndpoint += (loginEndpoint.lastIndexOf("/") == loginEndpoint.length - 1) ? "" : "/";
6568
endpoint['activeDirectoryAuthority'] = loginEndpoint;
6669
endpoint['environmentAuthorityUrl'] = loginEndpoint;
6770
}

0 commit comments

Comments
 (0)