[Subscription RP] New-AzureRmSubscription#5803
Conversation
2. Add -AsJob support to NewAzureRmSubscription
|
.NET SDK merged. |
| <ProjectReference Include="..\..\..\Common\Commands.Common.Authentication.Abstractions\Common.Authentication.Abstractions.Netcore.csproj" /> | ||
| <ProjectReference Include="..\..\..\Common\Commands.Common.Graph.RBAC\Common.Rbac.Netcore.csproj" /> | ||
| <ProjectReference Include="..\..\..\Common\Commands.Common\Common.Netcore.csproj" /> | ||
| <ProjectReference Include="..\..\Common\Commands.Common.Authentication.ResourceManager\Common.ResourceManager.Authentication.Netcore.csproj" /> |
There was a problem hiding this comment.
Unfortunately, you cannot take a reference to this project, as it contains dependencies that are controlled by Profile, and may change. I assume that this is to get the PSAzureSubscription model?
There was a problem hiding this comment.
If it is for this, we can move this type into another assembly (for example, the common resource manager assembly).
There was a problem hiding this comment.
Yes, it is just for PSAzureSubscription. I'll just create a new IAzureSubscription implementation instead for now and remove the dependency.
| <Project>{5ee72c53-1720-4309-b54b-5fb79703195f}</Project> | ||
| <Name>Commands.Common</Name> | ||
| </ProjectReference> | ||
| <ProjectReference Include="..\..\Common\Commands.Common.Authentication.ResourceManager\Commands.Common.Authentication.ResourceManager.csproj"> |
There was a problem hiding this comment.
SHould not take a reference to this (see above)
| namespace Microsoft.Azure.Commands.Subscription.Cmdlets | ||
| { | ||
| [Cmdlet(VerbsCommon.Get, "AzureRmSubscriptionDefinition", DefaultParameterSetName = ParameterSetNames.Default), OutputType(typeof(List<PSSubscriptionDefinition>))] | ||
| public class GetAzureRmSubscriptionDefinition : AzureSubscriptionDefinitionCmdletBase |
There was a problem hiding this comment.
Now that there is no 'Get' cmdlet, how do I get the subscriptions? Will Get-AzureRmSubscription work?
There was a problem hiding this comment.
Yes, the existing Get-AzureRmSubscription cmdlet will work.
Description
Adding a cmdlet New-AzureRmSubscription which will allow EA customers to automate subscription creation.
Checklist
CONTRIBUTING.mdSee design PR
platyPSmodule