Skip to content

Commit

Permalink
Add "Developer" environment option to create environment (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
devkeydet authored May 2, 2024
1 parent d4b4bfb commit 0cad3a7
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"yargs": "^17.7.2"
},
"dependencies": {
"@microsoft/powerplatform-cli-wrapper": "^0.1.120",
"@microsoft/powerplatform-cli-wrapper": "^0.1.121",
"azure-pipelines-task-lib": "^4.9.1",
"debug": "^4.3.4",
"fs-extra": "^11.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export async function main(): Promise<void> {
credentials: getCredentials(),
environmentName: parameterMap['DisplayName'],
environmentType: parameterMap['EnvironmentSku'],
user: parameterMap['User'],
region: parameterMap['LocationName'],
currency: parameterMap['CurrencyName'],
language: parameterMap['LanguageName'],
Expand Down
9 changes: 9 additions & 0 deletions src/tasks/create-environment/create-environment-v2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,18 @@
"Trial": "Trial",
"Sandbox": "Sandbox",
"Production": "Production",
"Developer": "Developer",
"SubscriptionBasedTrial": "Trial (subscription-based)"
}
},
{
"name": "User",
"label": "Create on behalf of user",
"type": "string",
"required": false,
"helpMarkDown": "Object ID or user principal name (UPN) of Microsoft Entra ID user to be assigned to the environment.",
"visibleRule": "EnvironmentSku = Developer"
},
{
"name": "AppsTemplate",
"label": "Select Dynamics365 apps",
Expand Down
1 change: 1 addition & 0 deletions test/unit-test/create-environment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ describe("create-environment tests", () => {
credentials: credentials,
environmentName: { name: 'DisplayName', required: true, defaultValue: undefined },
environmentType: { name: 'EnvironmentSku', required: true, defaultValue: 'Sandbox' },
user: { name: 'User', required: false, defaultValue: undefined },
region: { name: 'LocationName', required: true, defaultValue: 'unitedstates' },
currency: { name: 'CurrencyName', required: true, defaultValue: 'USD' },
language: { name: 'LanguageName', required: true, defaultValue: 'English (United States)' },
Expand Down

0 comments on commit 0cad3a7

Please sign in to comment.