Skip to content

Commit e2500dd

Browse files
authored
Merge pull request Azure#17 from deathly809/deepthbranch
Fix examples for Subscription commandlets
2 parents 86e5951 + 0c320f6 commit e2500dd

35 files changed

+58
-219
lines changed

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Connect-AzsPlanToOffer.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ Licensed under the MIT License. See License.txt in the project root for license
1919
.PARAMETER PlanName
2020
Name of the plan.
2121
22-
.PARAMETER ResourceGroup
22+
.PARAMETER ResourceGroupName
2323
The resource group the resource is located under.
2424
2525
.PARAMETER MaxAcquisitionCount
2626
The maximum acquisition count by subscribers
2727
2828
.EXAMPLE
2929
30-
Add-AzsPlanToOffer -PlanLinkType Addon -Offer offer1 -PlanName plan1 -ResourceGroupName rg1 -MaxAcquisitionCount 2
30+
Add-AzsPlanToOffer -PlanLinkType Addon -OfferName offer1 -PlanName plan1 -ResourceGroupName rg1 -MaxAcquisitionCount 2
3131
3232
Links a plan to an offer.
3333
#>

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Disconnect-AzsPlanToOffer.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ Licensed under the MIT License. See License.txt in the project root for license
1919
.PARAMETER PlanName
2020
Name of the plan.
2121
22-
.PARAMETER ResourceGroup
22+
.PARAMETER ResourceGroupName
2323
The resource group the resource is located under.
2424
2525
.PARAMETER MaxAcquisitionCount
2626
The maximum acquisition count by subscribers
2727
2828
.EXAMPLE
2929
30-
Remove-AzsPlanToOffer -Offer offer1 -PlanName plan1 -ResourceGroup rg1
30+
Remove-AzsPlanFromOffer -OfferName offer1 -PlanName plan1 -ResourceGroupName rg1
3131
3232
Unlink a plan from an offer.
3333
#>

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsDelegatedProvider.ps1

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,12 @@ Licensed under the MIT License. See License.txt in the project root for license
1717
1818
PS C:\> Get-AzsDelegatedProvider
1919
20-
DelegatedProviderSubscriptionId : 0a823c45-d9e7-4812-a138-74e22213693a
21-
DisplayName : cnur5172tenantresellersubscription696
22-
ExternalReferenceId :
23-
OfferId : /subscriptions/0a823c45-d9e7-4812-a138-74e22213693a/resourceGroups/cnur5172resellersubscrrg696/providers/Microsoft.Subscriptions.Admin/offers/cnur5172tenantsubsvcoffer696
24-
Owner : tenantadmin1@msazurestack.onmicrosoft.com
25-
RoutingResourceManagerType : Default
26-
State : Enabled
27-
SubscriptionId : c90173b1-de7a-4b1d-8600-b832b0e65946
28-
TenantId : d669642b-89ec-466e-af2c-2ceab9fef685
29-
Id : /subscriptions/0a823c45-d9e7-4812-a138-74e22213693a/providers/Microsoft.Subscriptions.Admin/subscriptions/c90173b1-de7a-4b1d-8600-b832b0e65946
30-
...
31-
3220
Get a list of delegated providers.
3321
3422
.EXAMPLE
3523
3624
PS C:\> Get-AzsDelegatedProvider -DelegatedProviderId "c90173b1-de7a-4b1d-8600-b832b0e65946"
3725
38-
DelegatedProviderSubscriptionId : 0a823c45-d9e7-4812-a138-74e22213693a
39-
DisplayName : cnur5172tenantresellersubscription696
40-
ExternalReferenceId :
41-
OfferId : /subscriptions/0a823c45-d9e7-4812-a138-74e22213693a/resourceGroups/cnur5172resellersubscrrg696/providers/Microsoft.Subscriptions.Admin/offers/cnur5172tenantsubsvcoffer696
42-
Owner : tenantadmin1@msazurestack.onmicrosoft.com
43-
RoutingResourceManagerType : Default
44-
State : Enabled
45-
SubscriptionId : c90173b1-de7a-4b1d-8600-b832b0e65946
46-
TenantId : d669642b-89ec-466e-af2c-2ceab9fef685
47-
Id : /subscriptions/0a823c45-d9e7-4812-a138-74e22213693a/providers/Microsoft.Subscriptions.Admin/subscriptions/c90173b1-de7a-4b1d-8600-b832b0e65946
48-
4926
Get the a specific delegated provider.
5027
#>
5128
function Get-AzsDelegatedProvider

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsDirectoryTenant.ps1

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@ Licensed under the MIT License. See License.txt in the project root for license
2929
3030
PS C:\> Get-AzsDirectoryTenant -ResourceGroupName "System.Local"
3131
32-
TenantId : d669642b-89ec-466e-af2c-2ceab9fef685
33-
Id : /subscriptions/0a823c45-d9e7-4812-a138-74e22213693a/resourceGroups/System.Local/providers/Microsoft.Subscriptions.Admin/directoryTenants/azurestackci04.onmicrosoft.com
34-
Name : azurestackci04.onmicrosoft.com
35-
Type : Microsoft.Subscriptions.Admin/directoryTenants
36-
Location : local
37-
...
38-
3932
Lists all the directory tenants under the current subscription and given resource group name.
4033
#>
4134
function Get-AzsDirectoryTenant {

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsLocation.ps1

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,9 @@ Licensed under the MIT License. See License.txt in the project root for license
1515
1616
.EXAMPLE
1717
18-
PS C:\> Get-AzsLocation -Location local
18+
PS C:\> Get-AzsLocation
1919
20-
DisplayName : local
21-
Id : /subscriptions/0a823c45-d9e7-4812-a138-74e22213693a/providers/Microsoft.Subscriptions.Admin/locations/local
22-
Latitude :
23-
Longitude :
24-
Name : local
25-
26-
Get a list of all AzureStack location.
20+
Get a list of all AzureStack locations.
2721
#>
2822
function Get-AzsLocation
2923
{

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsManagedOffer.ps1

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Licensed under the MIT License. See License.txt in the project root for license
1919
.PARAMETER ResourceId
2020
The resource id.
2121
22-
.PARAMETER ResourceGroup
22+
.PARAMETER ResourceGroupName
2323
The resource group the resource is located under.
2424
2525
.PARAMETER Top
@@ -29,20 +29,6 @@ Licensed under the MIT License. See License.txt in the project root for license
2929
3030
PS C:\> Get-AzsManagedOffer -Name offer -ResourceGroupName offerrg
3131
32-
OfferName : offer
33-
DisplayName : offer
34-
Description :
35-
ExternalReferenceId :
36-
State : Public
37-
SubscriptionCount : 1
38-
MaxSubscriptionsPerAccount : 0
39-
BasePlanIds : {/subscriptions/0a823c45-d9e7-4812-a138-74e22213693a/resourceGroups/offerrg/providers/Microsoft.Subscriptions.Admin/plans/plan1}
40-
AddonPlanDefinition :
41-
Id : /subscriptions/0a823c45-d9e7-4812-a138-74e22213693a/resourceGroups/offerrg/providers/Microsoft.Subscriptions.Admin/offers/offer
42-
Name : offer
43-
Type : Microsoft.Subscriptions.Admin/offers
44-
Location : local
45-
4632
Get the list of offers as the administrator.
4733
#>
4834
function Get-AzsManagedOffer {

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsOfferDelegation.ps1

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ Licensed under the MIT License. See License.txt in the project root for license
1919
.PARAMETER ResourceId
2020
The resource id.
2121
22-
.PARAMETER OfferDelegationName
22+
.PARAMETER Name
2323
Name of a offer delegation.
2424
25-
.PARAMETER ResourceGroup
25+
.PARAMETER ResourceGroupName
2626
The resource group the resource is located under.
2727
2828
.PARAMETER Top
@@ -32,13 +32,6 @@ Licensed under the MIT License. See License.txt in the project root for license
3232
3333
PS C:\> Get-AzsOfferDelegation -OfferName offer1 -ResourceGroupName rg1
3434
35-
SubscriptionId : c90173b1-de7a-4b1d-8600-b832b0e65946
36-
Id : /subscriptions/0a823c45-d9e7-4812-a138-74e22213693a/resourceGroups/rg1/providers/Microsoft.Subscriptions.Admin/offers/offer1/offerDelegations/dlele
37-
Name : offer1/dlele
38-
Type : Microsoft.Subscriptions.Admin/offers/offerDelegations
39-
Location : local
40-
Tags :
41-
4235
Get the list of delegated offers.
4336
#>
4437
function Get-AzsOfferDelegation {

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsOfferMetric.ps1

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,15 @@ Licensed under the MIT License. See License.txt in the project root for license
1010
.DESCRIPTION
1111
Get the offer metrics.
1212
13-
.PARAMETER ResourceGroup
13+
.PARAMETER ResourceGroupName
1414
The resource group the resource is located under.
1515
1616
.PARAMETER OfferName
1717
Name of an offer.
1818
1919
.EXAMPLE
2020
21-
PS C:\> Get-AzsOfferMetric -ResourceGroupName rg1 -Offer offername1 | fl *
22-
23-
Value : {Microsoft.AzureStack.Management.Subscriptions.Admin.Models.Metric, Microsoft.AzureStack.Management.Subscriptions.Admin.Models.Metric}
24-
NextLink :
21+
PS C:\> Get-AzsOfferMetric -ResourceGroupName rg1 -OfferName offername1
2522
2623
Get the offer metrics.
2724

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsOfferMetricDefinition.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Licensed under the MIT License. See License.txt in the project root for license
1010
.DESCRIPTION
1111
Get the offer metric definitions.
1212
13-
.PARAMETER ResourceGroup
13+
.PARAMETER ResourceGroupName
1414
The resource group the resource is located under.
1515
1616
.PARAMETER OfferName

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsPlan.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Licensed under the MIT License. See License.txt in the project root for license
1919
.PARAMETER ResourceId
2020
The resource id.
2121
22-
.PARAMETER ResourceGroup
23-
The resource group the resource is located under.
22+
.PARAMETER ResourceGroupName
23+
The name of the resource group the resource is located under.
2424
2525
.PARAMETER Top
2626
Return the top N items as specified by the parameter value. Applies after the -Skip parameter.

0 commit comments

Comments
 (0)