Skip to content

Commit 97747a6

Browse files
committed
Addressing initial round of feedback.
1 parent 9da07ac commit 97747a6

File tree

8 files changed

+45
-17
lines changed

8 files changed

+45
-17
lines changed

TestMappings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@
123123
"src/ResourceManager/StreamAnalytics/": [
124124
".\\src\\ResourceManager\\StreamAnalytics\\Commands.StreamAnalytics.Test\\bin\\Debug\\Microsoft.Azure.Commands.StreamAnalytics.Test.dll"
125125
],
126+
"src/ResourceManager/SubscriptionDefinition/": [
127+
".\\src\\ResourceManager\\SubscriptionDefinition\\Commands.SubscriptionDefinition.Test\\bin\\Debug\\Microsoft.Azure.Commands.SubscriptionDefinition.Test.dll"
128+
],
126129
"src/ResourceManager/Tags/": [],
127130
"src/ResourceManager/TrafficManager/": [
128131
".\\src\\ResourceManager\\TrafficManager\\Commands.TrafficManager2.Test\\bin\\Debug\\Microsoft.Azure.Commands.TrafficManager.Test.ScenarioTests.dll"

src/ResourceManager/SubscriptionDefinition/AzureRM.SubscriptionDefinition.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ CLRVersion = '4.0'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'AzureRM.Profile'; ModuleVersion = '3.3.2'; })
54+
RequiredModules = @(@{ModuleName = 'AzureRM.Profile'; ModuleVersion = '4.0.0'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
57-
# RequiredAssemblies = @()
57+
RequiredAssemblies = '.\Microsoft.Azure.Management.ResourceManager.dll'
5858

5959
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
6060
# ScriptsToProcess = @()
@@ -98,7 +98,7 @@ PrivateData = @{
9898
Tags = 'Azure','ResourceManager','ARM','Subscription','SubscriptionDefinition'
9999

100100
# A URL to the license for this module.
101-
LicenseUri = 'https://raw.githubusercontent.com/Azure/azure-powershell/preview/LICENSE.txt'
101+
LicenseUri = 'https://aka.ms/azps-license'
102102

103103
# A URL to the main website for this project.
104104
ProjectUri = 'https://github.com/Azure/azure-powershell'

src/ResourceManager/SubscriptionDefinition/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
## Version 0.1.0
22+
* New Cmdlets Get-AzureRmSubscriptionDefinition and New-AzureRmSubscriptionDefinition
23+
- Cmdlets to create and list subscription definitions. Creation of a subscription definition results in a subscription.

src/ResourceManager/SubscriptionDefinition/Commands.SubscriptionDefinition.Test/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@
4545
// You can specify all the values or you can default the Build and Revision Numbers
4646
// by using the '*' as shown below:
4747
// [assembly: AssemblyVersion("1.0.*")]
48-
[assembly: AssemblyVersion("0.2.5")]
49-
[assembly: AssemblyFileVersion("0.2.5")]
48+
[assembly: AssemblyVersion("0.1.0")]
49+
[assembly: AssemblyFileVersion("0.1.0")]

src/ResourceManager/SubscriptionDefinition/Commands.SubscriptionDefinition/Cmdlets/GetAzureRmSubscriptionDefinition.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ namespace Microsoft.Azure.Commands.SubscriptionDefinition.Cmdlets
2424
public class GetAzureRmSubscriptionDefinition : AzureSubscriptionDefinitionCmdletBase
2525
{
2626
[Parameter(ParameterSetName = ParameterSetNames.Default, Mandatory = false, HelpMessage = "Name of the subscription definition to retrieve.")]
27+
[ValidateNotNullOrEmpty]
2728
public string Name { get; set; }
2829

2930
public override void ExecuteCmdlet()

src/ResourceManager/SubscriptionDefinition/Commands.SubscriptionDefinition/Properties/AssemblyInfo.cs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,10 @@
1919
// General Information about an assembly is controlled through the following
2020
// set of attributes. Change these attribute values to modify the information
2121
// associated with an assembly.
22-
[assembly: AssemblyTitle("Commands.SubscriptionDefinition")]
23-
[assembly: AssemblyDescription("")]
24-
[assembly: AssemblyConfiguration("")]
25-
[assembly: AssemblyCompany("")]
26-
[assembly: AssemblyProduct("Commands.SubscriptionDefinition")]
27-
[assembly: AssemblyCopyright("Copyright (c) 2017")]
28-
[assembly: AssemblyTrademark("")]
29-
[assembly: AssemblyCulture("")]
22+
[assembly: AssemblyTitle("Microsoft Azure Powershell - Subscription Definitions")]
23+
[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
24+
[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
25+
[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
3026

3127
// Setting ComVisible to false makes the types in this assembly not visible
3228
// to COM components. If you need to access a type in this assembly from
@@ -46,5 +42,5 @@
4642
// You can specify all the values or you can default the Build and Revision Numbers
4743
// by using the '*' as shown below:
4844
// [assembly: AssemblyVersion("1.0.*")]
49-
[assembly: AssemblyVersion("0.2.5")]
50-
[assembly: AssemblyFileVersion("0.2.5")]
45+
[assembly: AssemblyVersion("0.1.0")]
46+
[assembly: AssemblyFileVersion("0.1.0")]

src/ResourceManager/SubscriptionDefinition/Commands.SubscriptionDefinition/help/Get-AzureRmSubscriptionDefinition.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,31 @@ Get-AzureRmSubscriptionDefinition
2121
### Example 1
2222
```
2323
PS C:\> Get-AzureRmSubscriptionDefinition
24+
25+
Name : MyProdSubscription1
26+
SubscriptionId : 86869d42-1782-4337-98b0-c905fb937d46
27+
SubscriptionDisplayName : MyProdSubscription1
28+
OfferType : MS-AZR-0017P
29+
30+
Name : MyProdSubscription2
31+
SubscriptionId : 368425df-b536-4f42-b1ba-64613cfcc4b5
32+
SubscriptionDisplayName : MyProdSubscription2
33+
OfferType : MS-AZR-0017P
2434
```
2535

2636
Gets all subscription definitions.
2737

2838
### Example 2
2939
```
30-
PS C:\> Get-AzureRmSubscriptionDefinition -Name MySubDef
40+
PS C:\> Get-AzureRmSubscriptionDefinition -Name MyProdSubscription2
41+
42+
Name : MyProdSubscription2
43+
SubscriptionId : 368425df-b536-4f42-b1ba-64613cfcc4b5
44+
SubscriptionDisplayName : MyProdSubscription2
45+
OfferType : MS-AZR-0017P
3146
```
3247

33-
Gets a subscription definition with the name MySubDef.
48+
Gets a subscription definition with the name MyProdSubscription2.
3449

3550
## PARAMETERS
3651

src/ResourceManager/SubscriptionDefinition/Commands.SubscriptionDefinition/help/New-AzureRmSubscriptionDefinition.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,23 @@ The **New-AzureRmSubscriptionDefinition** cmdlet creates a subscription definiti
2424
### Example 1
2525
```
2626
PS C:\> New-AzureRmSubscriptionDefinition -Name MySubDef -OfferType MS-AZR-0017P
27+
28+
Name : MySubDef
29+
SubscriptionId : 86869d42-1782-4337-98b0-c905fb937d46
30+
SubscriptionDisplayName : MySubDef
31+
OfferType : MS-AZR-0017P
2732
```
2833

2934
Creates a subscription definition with a default subscription display name.
3035

3136
### Example 2
3237
```
3338
PS C:\> New-AzureRmSubscriptionDefinition -Name MySubDef -OfferType MS-AZR-0017P -SubscriptionDisplayName MyPaygoSub
39+
40+
Name : MySubDef
41+
SubscriptionId : 86869d42-1782-4337-98b0-c905fb937d46
42+
SubscriptionDisplayName : MyPaygoSub
43+
OfferType : MS-AZR-0017P
3444
```
3545

3646
Creates a subscription definition with a custom subscription display name.

0 commit comments

Comments
 (0)