Skip to content

Commit f4a7436

Browse files
authored
added support for SecurityGroupId (#833)
* added support for SecurityGroupId * moved cli references to public nuget feed
1 parent ec5b6e6 commit f4a7436

File tree

6 files changed

+25
-19
lines changed

6 files changed

+25
-19
lines changed

nuget.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
44
"name": "nuget.org",
55
"url": "https://api.nuget.org/v3-flatcontainer/",
66
"authenticated": false,
7-
"packages": [
8-
]
9-
},
10-
{
11-
"name": "CAP_ISVExp_Tools_Stable",
12-
"url": "https://pkgs.dev.azure.com/msazure/_packaging/b0441cf8-0bc8-4fad-b126-841a6184e784/nuget/v3/flat2/",
13-
"authenticated": true,
14-
"patEnvironmentVariable": "AZ_DevOps_Read_PAT",
157
"packages": [
168
{
179
"name": "Microsoft.PowerApps.CLI",
@@ -26,13 +18,19 @@
2618
}
2719
]
2820
},
21+
{
22+
"name": "CAP_ISVExp_Tools_Stable",
23+
"url": "https://pkgs.dev.azure.com/msazure/_packaging/b0441cf8-0bc8-4fad-b126-841a6184e784/nuget/v3/flat2/",
24+
"authenticated": true,
25+
"patEnvironmentVariable": "AZ_DevOps_Read_PAT",
26+
"packages": []
27+
},
2928
{
3029
"name": "CAP_ISVExp_Tools_Daily",
3130
"url": "https://pkgs.dev.azure.com/msazure/_packaging/d3fb5788-d047-47f9-9aba-76890f5cecf0/nuget/v3/flat2/",
3231
"authenticated": true,
3332
"patEnvironmentVariable": "AZ_DevOps_Read_PAT",
34-
"packages": [
35-
]
33+
"packages": []
3634
}
3735
]
3836
}

package-lock.json

Lines changed: 7 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"yargs": "^17.7.2"
7777
},
7878
"dependencies": {
79-
"@microsoft/powerplatform-cli-wrapper": "^0.1.118",
79+
"@microsoft/powerplatform-cli-wrapper": "^0.1.120",
8080
"azure-pipelines-task-lib": "^4.9.1",
8181
"debug": "^4.3.4",
8282
"fs-extra": "^11.1.1",

src/tasks/create-environment/create-environment-v2/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export async function main(): Promise<void> {
3636
templates: parameterMap['AppsTemplate'],
3737
domainName: parameterMap['DomainName'],
3838
teamId: parameterMap['TeamId'],
39+
securityGroupId: parameterMap['SecurityGroupId'],
3940
logToConsole: isDiagnosticsMode ? true : false
4041
}, new BuildToolsRunnerParams(), new BuildToolsHost());
4142

src/tasks/create-environment/create-environment-v2/task.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,13 @@
327327
"type": "string",
328328
"required": false,
329329
"helpMarkDown": "The ID of the Microsoft Teams team to create the Power Apps environment in."
330+
},
331+
{
332+
"name": "SecurityGroupId",
333+
"label": "Security Group ID",
334+
"type": "string",
335+
"required": false,
336+
"helpMarkDown": "Microsoft Entra ID Security Group ID to use when creating the environment."
330337
}
331338
],
332339
"execution": {

test/unit-test/create-environment.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ describe("create-environment tests", () => {
5353
templates: { name: 'AppsTemplate', required: false, defaultValue: undefined },
5454
domainName: { name: 'DomainName', required: true, defaultValue: undefined },
5555
teamId: { name: 'TeamId', required: false, defaultValue: undefined },
56+
securityGroupId: { name: 'SecurityGroupId', required: false, defaultValue: undefined },
5657
logToConsole: false
5758
}, new BuildToolsRunnerParams(), new BuildToolsHost());
5859
});

0 commit comments

Comments
 (0)