Open SetTrend opened 2 years ago
Thanks for reporting. We are also thinking a different approach. Those 4 cmdlets are used for the same purpose but various scope. If the parameters are vey close, we can merge them together and only expose New-AzDeployment for 4 types of scopes.
The change requires documentation update. We will raise this question to service team and content developer.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @satyavel, @apclouds.
Author: | SetTrend |
---|---|
Assignees: | - |
Labels: | `feature-request`, `Service Attention`, `ARM - Templates`, `customer-reported` |
Milestone: | - |
Excellent suggestion! I'm looking forward to it.
Thank you.
I think including a scope parameter to New-AzDeployment
would be great. It would line up nicely with targetScope
from Bicep, and only require us to use one cmdlet to do deployments in the future.
Description of the new feature
Currently, there are four different ARM deployment Cmdlets in the
Az
PowerShell module, all with their individual scopes:From this list is becomes quite obvious that there is something wrong with the
New-AzDeployment
Cmdlet: It lacks the scope's name!Sure, there is an alias available, providing the Subscription scope name:
New-AzSubscriptionDeployment
. Yet, all documentation links etc. are pointing toNew-AzDeployment
though, which isn't satisfying as there is no indication thatNew-AzDeployment
is in fact a deployment on Subscription level.Hence, I propose to deprecate
New-AzDeployment
in favor ofNew-AzSubscriptionDeployment
and, perhaps, makeNew-AzDeployment
merely the new alias forNew-AzSubscriptionDeployment
.