Skip to content

Commit 661888f

Browse files
authored
Merge pull request Azure#35 from deathly809/mgmerge
Azs.Sub.Admin - add set tests, remove useless cmdlets
2 parents 608f98b + e663a85 commit 661888f

File tree

13 files changed

+623
-43
lines changed

13 files changed

+623
-43
lines changed

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Azs.Subscriptions.Admin.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ Licensed under the MIT License. See License.txt in the project root for license
8080
'Get-AzsPlanMetric', 'Get-AzsDelegatedProvider',
8181
'Remove-AzsUserSubscription', 'New-AzsUserSubscription',
8282
'Remove-AzsSubscriptionPlan', 'New-AzsOffer',
83-
'Get-AzsOfferMetricDefinition', 'New-AzsOfferDelegation',
83+
'New-AzsOfferDelegation',
8484
'Remove-AzsOffer', 'Get-AzsOfferMetric', 'Get-AzsManagedOffer',
8585
'Remove-AzsPlanFromOffer',
86-
'Get-AzsSubscriptionPlan', 'Get-AzsPlanMetricDefinition',
86+
'Get-AzsSubscriptionPlan',
8787
'Get-AzsLocation', 'Set-AzsOfferDelegation',
8888
'New-AzsSubscriptionPlan',
8989
'Get-AzsDirectoryTenant', 'New-AzsPlan', 'Get-AzsPlan',
9090
'Remove-AzsOfferDelegation', 'Get-AzsOfferDelegation',
91-
'Set-AzsDirectoryTenant', 'Get-AzsUserSubscription', 'Set-AzsOffer',
91+
'Get-AzsUserSubscription', 'Set-AzsOffer',
9292
'Remove-AzsPlan', 'Set-AzsPlan', 'New-OfferObject',
9393
'New-CheckNameAvailabilityDefinitionObject',
9494
'New-DirectoryTenantObject', 'New-AddonPlanDefinitionObject',

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,3 @@ function Set-AzsDirectoryTenant {
159159
}
160160
}
161161
}
162-

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Set-AzsOffer.ps1

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,10 @@ function Set-AzsOffer {
7171
[System.String]
7272
$ResourceGroupName,
7373

74-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
75-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
7674
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
7775
[System.String]
7876
$DisplayName,
7977

80-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
81-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
8278
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
8379
[string[]]
8480
$BasePlanIds,
@@ -87,46 +83,32 @@ function Set-AzsOffer {
8783
[Microsoft.AzureStack.Management.Subscriptions.Admin.Models.Offer]
8884
$InputObject,
8985

90-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
91-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
9286
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
9387
[System.String]
9488
$Description,
9589

96-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
97-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
9890
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
9991
[System.String]
10092
$ExternalReferenceId,
10193

102-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
103-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
10494
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
10595
[ValidateSet('Private', 'Public', 'Decommissioned')]
10696
[System.String]
10797
$State,
10898

109-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
110-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
11199
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
112100
[Alias('ArmLocation')]
113101
[System.String]
114102
$Location,
115103

116-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
117-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
118104
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
119105
[int64]
120106
$SubscriptionCount,
121107

122-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
123-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
124108
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
125109
[int64]
126110
$MaxSubscriptionsPerAccount,
127111

128-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
129-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
130112
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
131113
[Microsoft.AzureStack.Management.Subscriptions.Admin.Models.AddonPlanDefinition[]]
132114
$AddonPlanDefinition,
@@ -194,7 +176,7 @@ function Set-AzsOffer {
194176

195177
$SubscriptionsAdminClient = New-ServiceClient @NewServiceClient_params
196178

197-
if (-not $PSBoundParameters.ContainsKey('Location')) {
179+
if (-not $PSBoundParameters.ContainsKey('Location') -and 'Update' -eq $PsCmdlet.ParameterSetName) {
198180
$Location = (Get-AzureRMLocation).Location
199181
$PSBoundParameters.Add("Location", $Location)
200182
}

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

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,10 @@ function Set-AzsPlan {
6767
$ResourceGroupName,
6868

6969
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
70-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
71-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
7270
[System.String]
7371
$DisplayName,
7472

7573
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
76-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
77-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
7874
[string[]]
7975
$QuotaIds,
8076

@@ -84,33 +80,23 @@ function Set-AzsPlan {
8480
$InputObject,
8581

8682
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
87-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
88-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
8983
[string[]]
9084
$SkuIds,
9185

9286
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
93-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
94-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
9587
[System.String]
9688
$ExternalReferenceId,
9789

9890
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
99-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
100-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
10191
[System.String]
10292
$Description,
10393

10494
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
105-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
106-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
10795
[Alias('ArmLocation')]
10896
[System.String]
10997
$Location,
11098

11199
[Parameter(Mandatory = $false, ParameterSetName = 'Update')]
112-
[Parameter(Mandatory = $false, ParameterSetName = 'ResourceId')]
113-
[Parameter(Mandatory = $false, ParameterSetName = 'InputObject')]
114100
[int64]
115101
$SubscriptionCount,
116102

@@ -177,7 +163,7 @@ function Set-AzsPlan {
177163

178164
$SubscriptionsAdminClient = New-ServiceClient @NewServiceClient_params
179165

180-
if ([System.String]::IsNullOrEmpty('Location')) {
166+
if ([System.String]::IsNullOrEmpty('Location') -and 'Update' -eq $PsCmdlet.ParameterSetName) {
181167
$Location = (Get-AzureRMLocation).Location
182168
$PSBoundParameters.Add("Location", $Location)
183169
}

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Set-AzsUserSubscription.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function Set-AzsUserSubscription {
160160
$NewServiceClient_params['GlobalParameterHashtable'] = $GlobalParameterHashtable
161161
$SubscriptionsAdminClient = New-ServiceClient @NewServiceClient_params
162162

163-
if ([System.String]::IsNullOrEmpty($Location)) {
163+
if ([System.String]::IsNullOrEmpty($Location) -and $PsCmdlet.ParameterSetName -eq 'Set') {
164164
$Location = (Get-AzureRMLocation).Location
165165
}
166166

src/StackAdmin/Azs.Subscriptions.Admin/Module/Azs.Subscriptions.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Test-AzsNameAvailability.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ Licensed under the MIT License. See License.txt in the project root for license
2424
#>
2525
function Test-AzsNameAvailability {
2626
[OutputType([Microsoft.AzureStack.Management.Subscriptions.Admin.Models.CheckNameAvailabilityResponse])]
27-
[CmdletBinding(DefaultParameterSetName = 'Subscriptions_CheckNameAvailability')]
27+
[CmdletBinding(DefaultParameterSetName = 'Test')]
2828
param(
29-
[Parameter(Mandatory = $true, ParameterSetName = 'Subscriptions_CheckNameAvailability')]
29+
[Parameter(Mandatory = $true, ParameterSetName = 'Test')]
3030
[ValidateNotNullOrEmpty()]
3131
[System.String]
3232
$Name,
3333

34-
[Parameter(Mandatory = $true, ParameterSetName = 'Subscriptions_CheckNameAvailability')]
34+
[Parameter(Mandatory = $true, ParameterSetName = 'Test')]
3535
[ValidateNotNullOrEmpty()]
3636
[System.String]
3737
$ResourceType
@@ -74,7 +74,7 @@ function Test-AzsNameAvailability {
7474
}
7575
$NameAvailabilityDefinition = New-CheckNameAvailabilityDefinitionObject @utilityCmdParams
7676

77-
if ('Subscriptions_CheckNameAvailability' -eq $PsCmdlet.ParameterSetName) {
77+
if ('Test' -eq $PsCmdlet.ParameterSetName) {
7878
Write-Verbose -Message 'Performing operation CheckNameAvailabilityWithHttpMessagesAsync on $SubscriptionsAdminClient.'
7979
$TaskResult = $SubscriptionsAdminClient.Subscriptions.CheckNameAvailabilityWithHttpMessagesAsync($NameAvailabilityDefinition)
8080
} else {

src/StackAdmin/Azs.Subscriptions.Admin/Tests/Azs.Subscriptions.Admin.Tests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
<None Include="SessionRecords\SubscriptionsAdminClient\TestListPlans.json" />
8181
<None Include="SessionRecords\SubscriptionsAdminClient\TestListQuotas.json" />
8282
<None Include="SessionRecords\SubscriptionsAdminClient\TestListSubscriptions.json" />
83+
<None Include="SessionRecords\SubscriptionsAdminClient\TestSetOffer.json" />
84+
<None Include="SessionRecords\SubscriptionsAdminClient\TestSetPlan.json" />
85+
<None Include="SessionRecords\SubscriptionsAdminClient\TestSetSubscription.json" />
8386
<None Include="src\*.ps1" />
8487
</ItemGroup>
8588
<ItemGroup>
Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
{
2+
"Entries": [
3+
{
4+
"RequestUri": "/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/providers/Microsoft.Subscriptions.Admin/offers?api-version=2015-11-01",
5+
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2E4MzE0MzEtZGFjMi00NDY2LWE1MzgtNTlmYTNmODgyZjY4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9ucy5BZG1pbi9vZmZlcnM/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==",
6+
"RequestMethod": "GET",
7+
"RequestBody": "",
8+
"RequestHeaders": {
9+
"x-ms-client-request-id": [
10+
"d0e30e84-8c44-4b17-8484-eb442d02d82b"
11+
],
12+
"accept-language": [
13+
"en-US"
14+
],
15+
"User-Agent": [
16+
"FxVersion/4.6.26011.01",
17+
"Microsoft.AzureStack.Management.Subscriptions.Admin.SubscriptionsAdminClient/0.0.0.0"
18+
]
19+
},
20+
"ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourceGroups/rg/providers/Microsoft.Subscriptions.Admin/offers/offer1\",\r\n \"name\": \"offer1\",\r\n \"type\": \"Microsoft.Subscriptions.Admin/offers\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"name\": \"offer1\",\r\n \"displayName\": \"offer1-u\",\r\n \"description\": \"\",\r\n \"externalReferenceId\": \"\",\r\n \"state\": \"Public\",\r\n \"subscriptionCount\": 1,\r\n \"maxSubscriptionsPerAccount\": 0,\r\n \"basePlanIds\": [\r\n \"/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourceGroups/rg/providers/Microsoft.Subscriptions.Admin/plans/plan1\"\r\n ],\r\n \"addonPlans\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourceGroups/rg/providers/Microsoft.Subscriptions.Admin/offers/offersub\",\r\n \"name\": \"offersub\",\r\n \"type\": \"Microsoft.Subscriptions.Admin/offers\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"name\": \"offersub\",\r\n \"displayName\": \"offersub\",\r\n \"description\": \"\",\r\n \"externalReferenceId\": \"\",\r\n \"state\": \"Public\",\r\n \"subscriptionCount\": 1,\r\n \"maxSubscriptionsPerAccount\": 0,\r\n \"basePlanIds\": [\r\n \"/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourceGroups/rg/providers/Microsoft.Subscriptions.Admin/plans/plansub\"\r\n ],\r\n \"addonPlans\": []\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourceGroups/rg/providers/Microsoft.Subscriptions.Admin/offers/offerc\",\r\n \"name\": \"offerc\",\r\n \"type\": \"Microsoft.Subscriptions.Admin/offers\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"name\": \"offerc\",\r\n \"displayName\": \"offerc\",\r\n \"state\": \"Private\",\r\n \"subscriptionCount\": 0,\r\n \"maxSubscriptionsPerAccount\": 0,\r\n \"basePlanIds\": [\r\n \"/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourceGroups/rg/providers/Microsoft.Subscriptions.Admin/plans/planc\"\r\n ],\r\n \"addonPlans\": [\r\n {\r\n \"planId\": \"/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourceGroups/rg/providers/Microsoft.Subscriptions.Admin/plans/plan1\",\r\n \"maxAcquisitionCount\": 1\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}",
21+
"ResponseHeaders": {
22+
"Content-Length": [
23+
"1748"
24+
],
25+
"Content-Type": [
26+
"application/json; charset=utf-8"
27+
],
28+
"Expires": [
29+
"-1"
30+
],
31+
"Cache-Control": [
32+
"no-cache"
33+
],
34+
"Date": [
35+
"Wed, 25 Apr 2018 16:09:58 GMT"
36+
],
37+
"Pragma": [
38+
"no-cache"
39+
],
40+
"x-ms-ratelimit-remaining-subscription-reads": [
41+
"14942"
42+
],
43+
"x-ms-request-id": [
44+
"ca670f23-7d94-443f-ba46-0f8763658766"
45+
],
46+
"x-ms-correlation-request-id": [
47+
"ca670f23-7d94-443f-ba46-0f8763658766"
48+
],
49+
"x-ms-routing-request-id": [
50+
"LOCAL:20180425T160958Z:ca670f23-7d94-443f-ba46-0f8763658766"
51+
],
52+
"Strict-Transport-Security": [
53+
"max-age=31536000; includeSubDomains"
54+
],
55+
"X-Content-Type-Options": [
56+
"nosniff"
57+
]
58+
},
59+
"StatusCode": 200
60+
},
61+
{
62+
"RequestUri": "/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourcegroups/rg/providers/Microsoft.Subscriptions.Admin/offers/offer1?api-version=2015-11-01",
63+
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2E4MzE0MzEtZGFjMi00NDY2LWE1MzgtNTlmYTNmODgyZjY4L3Jlc291cmNlZ3JvdXBzL3JnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9ucy5BZG1pbi9vZmZlcnMvb2ZmZXIxP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=",
64+
"RequestMethod": "PUT",
65+
"RequestBody": "{\r\n \"properties\": {\r\n \"name\": \"offer1\",\r\n \"displayName\": \"offer1-u-test\",\r\n \"description\": \"\",\r\n \"externalReferenceId\": \"\",\r\n \"state\": \"Public\",\r\n \"subscriptionCount\": 1,\r\n \"maxSubscriptionsPerAccount\": 0,\r\n \"basePlanIds\": [\r\n \"/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourceGroups/rg/providers/Microsoft.Subscriptions.Admin/plans/plan1\"\r\n ]\r\n },\r\n \"location\": \"local\"\r\n}",
66+
"RequestHeaders": {
67+
"Content-Type": [
68+
"application/json; charset=utf-8"
69+
],
70+
"Content-Length": [
71+
"419"
72+
],
73+
"x-ms-client-request-id": [
74+
"977ef1c5-35a2-4587-abb3-f2a473a89efb"
75+
],
76+
"accept-language": [
77+
"en-US"
78+
],
79+
"User-Agent": [
80+
"FxVersion/4.6.26011.01",
81+
"Microsoft.AzureStack.Management.Subscriptions.Admin.SubscriptionsAdminClient/0.0.0.0"
82+
]
83+
},
84+
"ResponseBody": "{\r\n \"id\": \"/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourceGroups/rg/providers/Microsoft.Subscriptions.Admin/offers/offer1\",\r\n \"name\": \"offer1\",\r\n \"type\": \"Microsoft.Subscriptions.Admin/offers\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"name\": \"offer1\",\r\n \"displayName\": \"offer1-u-test\",\r\n \"description\": \"\",\r\n \"externalReferenceId\": \"\",\r\n \"state\": \"Public\",\r\n \"subscriptionCount\": 1,\r\n \"maxSubscriptionsPerAccount\": 0,\r\n \"basePlanIds\": [\r\n \"/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourceGroups/rg/providers/Microsoft.Subscriptions.Admin/plans/plan1\"\r\n ],\r\n \"addonPlans\": []\r\n }\r\n}",
85+
"ResponseHeaders": {
86+
"Content-Length": [
87+
"542"
88+
],
89+
"Content-Type": [
90+
"application/json; charset=utf-8"
91+
],
92+
"Expires": [
93+
"-1"
94+
],
95+
"Cache-Control": [
96+
"no-cache"
97+
],
98+
"Date": [
99+
"Wed, 25 Apr 2018 16:09:58 GMT"
100+
],
101+
"Pragma": [
102+
"no-cache"
103+
],
104+
"x-ms-ratelimit-remaining-subscription-writes": [
105+
"1183"
106+
],
107+
"x-ms-request-id": [
108+
"b13fc385-e227-49ee-8b89-c22fb4a6470d"
109+
],
110+
"x-ms-correlation-request-id": [
111+
"b13fc385-e227-49ee-8b89-c22fb4a6470d"
112+
],
113+
"x-ms-routing-request-id": [
114+
"LOCAL:20180425T160958Z:b13fc385-e227-49ee-8b89-c22fb4a6470d"
115+
],
116+
"Strict-Transport-Security": [
117+
"max-age=31536000; includeSubDomains"
118+
],
119+
"X-Content-Type-Options": [
120+
"nosniff"
121+
]
122+
},
123+
"StatusCode": 200
124+
},
125+
{
126+
"RequestUri": "/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourcegroups/rg/providers/Microsoft.Subscriptions.Admin/offers/offer1?api-version=2015-11-01",
127+
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2E4MzE0MzEtZGFjMi00NDY2LWE1MzgtNTlmYTNmODgyZjY4L3Jlc291cmNlZ3JvdXBzL3JnL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3Vic2NyaXB0aW9ucy5BZG1pbi9vZmZlcnMvb2ZmZXIxP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=",
128+
"RequestMethod": "GET",
129+
"RequestBody": "",
130+
"RequestHeaders": {
131+
"x-ms-client-request-id": [
132+
"b5496ab2-2169-4a5d-82b8-99eefbf069cc"
133+
],
134+
"accept-language": [
135+
"en-US"
136+
],
137+
"User-Agent": [
138+
"FxVersion/4.6.26011.01",
139+
"Microsoft.AzureStack.Management.Subscriptions.Admin.SubscriptionsAdminClient/0.0.0.0"
140+
]
141+
},
142+
"ResponseBody": "{\r\n \"id\": \"/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourceGroups/rg/providers/Microsoft.Subscriptions.Admin/offers/offer1\",\r\n \"name\": \"offer1\",\r\n \"type\": \"Microsoft.Subscriptions.Admin/offers\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"name\": \"offer1\",\r\n \"displayName\": \"offer1-u-test\",\r\n \"description\": \"\",\r\n \"externalReferenceId\": \"\",\r\n \"state\": \"Public\",\r\n \"subscriptionCount\": 1,\r\n \"maxSubscriptionsPerAccount\": 0,\r\n \"basePlanIds\": [\r\n \"/subscriptions/ca831431-dac2-4466-a538-59fa3f882f68/resourceGroups/rg/providers/Microsoft.Subscriptions.Admin/plans/plan1\"\r\n ],\r\n \"addonPlans\": []\r\n }\r\n}",
143+
"ResponseHeaders": {
144+
"Content-Length": [
145+
"542"
146+
],
147+
"Content-Type": [
148+
"application/json; charset=utf-8"
149+
],
150+
"Expires": [
151+
"-1"
152+
],
153+
"Cache-Control": [
154+
"no-cache"
155+
],
156+
"Date": [
157+
"Wed, 25 Apr 2018 16:09:58 GMT"
158+
],
159+
"Pragma": [
160+
"no-cache"
161+
],
162+
"x-ms-ratelimit-remaining-subscription-reads": [
163+
"14941"
164+
],
165+
"x-ms-request-id": [
166+
"33f79a19-f176-43d0-a652-7967373175e1"
167+
],
168+
"x-ms-correlation-request-id": [
169+
"33f79a19-f176-43d0-a652-7967373175e1"
170+
],
171+
"x-ms-routing-request-id": [
172+
"LOCAL:20180425T160958Z:33f79a19-f176-43d0-a652-7967373175e1"
173+
],
174+
"Strict-Transport-Security": [
175+
"max-age=31536000; includeSubDomains"
176+
],
177+
"X-Content-Type-Options": [
178+
"nosniff"
179+
]
180+
},
181+
"StatusCode": 200
182+
}
183+
],
184+
"Names": {},
185+
"Variables": {
186+
"SubscriptionId": "ca831431-dac2-4466-a538-59fa3f882f68"
187+
}
188+
}

0 commit comments

Comments
 (0)