Reply
Level: Powered On
Posts: 4
Registered: ‎06-12-2018

'-EnvironmentName' parameter is better to rename to '-EnvironmentId'

In PowerApps PowerShell script functions, '-EnvironmentName' parameter requires GUID, but not name (e.g. "My Environment"). It is not suitable and many users may be confused, so rename to '-EnvironmentId'. 

PowerApps Staff jo
PowerApps Staff
Posts: 89
Registered: ‎05-02-2016

Re: '-EnvironmentName' parameter is better to rename to '-EnvironmentId'

That's true, the semantics that we use throughout the cmdlets is that the identifier for a resource = {Resource}Name (e.g. EnvironmentName, AppName, etc.).

 

It's good feedback, however I hope it is clear from the examples we provide for each function.

Level: Powered On
Posts: 4
Registered: ‎06-12-2018

Re: '-EnvironmentName' parameter is better to rename to '-EnvironmentId'

For example, 'Id' parameter and 'Name' parameter are clearly distinguished in Azure PowerShell.

 

Get-AzureRmSubscription -SubscriptionId "yyyy-yyyy-yyyy-yyyy"
Get-AzureRmSubscription -SubscriptionName "Contoso Subscription 1"

 Therefore, users expect to accept GUID in 'Id' parameter.