Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/SDKs/Billing/AzSdk.RP.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>Billing_2018-03-01-preview;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion src/SDKs/Billing/Billing.Tests/Billing.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Description>Billing.Tests Class Library</Description>
<Authors>Microsoft Corporation</Authors>
<AssemblyName>Billing.Tests</AssemblyName>
<VersionPrefix>2.0.0-preview</VersionPrefix>
<VersionPrefix>2.0.0</VersionPrefix>
</PropertyGroup>

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using Billing.Tests.Helpers;
using Microsoft.Azure.Management.Billing;
using Microsoft.Azure.Management.Resources;
using Microsoft.Azure.Test.HttpRecorder;
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
using System.IO;
using System.Linq;
using System.Net;
using System.Reflection;
using Xunit;

namespace Billing.Tests.ScenarioTests
{
public class EnrollmentAccountTests : TestBase
{
const string EnrollmentAccountName = "c8a9f59a-2d9b-4086-91c8-8988cae3bec3";

[Fact]
public void ListEnrollmentAccounts()
{
HttpMockServer.RecordsDirectory = GetSessionsDirectoryPath();
using (MockContext context = MockContext.Start(this.GetType().FullName))
{
var billingMgmtClient = BillingTestUtilities.GetBillingManagementClient(context, new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK });
var enrollmentAccounts = billingMgmtClient.EnrollmentAccounts.List().Value;
Assert.NotNull(enrollmentAccounts);
Assert.True(enrollmentAccounts.Any());
}
}

[Fact]
public void GetEnrollmentAccountWithName()
{
HttpMockServer.RecordsDirectory = GetSessionsDirectoryPath();
using (MockContext context = MockContext.Start(this.GetType().FullName))
{
var billingMgmtClient = BillingTestUtilities.GetBillingManagementClient(context, new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK });
var enrollmentAccount = billingMgmtClient.EnrollmentAccounts.Get(EnrollmentAccountName);
Assert.NotNull(enrollmentAccount);
Assert.Equal(EnrollmentAccountName, enrollmentAccount.Name);
Assert.NotNull(enrollmentAccount.Name);
Assert.NotNull(enrollmentAccount.PrincipalName);
}
}

private static string GetSessionsDirectoryPath()
{
string executingAssemblyPath = typeof(Billing.Tests.ScenarioTests.EnrollmentAccountTests).GetTypeInfo().Assembly.Location;
return Path.Combine(Path.GetDirectoryName(executingAssemblyPath), "SessionRecords");
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Entries": [
{
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods/201705-1?api-version=2017-04-24-preview",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9iaWxsaW5nUGVyaW9kcy8yMDE3MDUtMT9hcGktdmVyc2lvbj0yMDE3LTA0LTI0LXByZXZpZXc=",
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods/201705-1?api-version=2018-03-01-preview",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9iaWxsaW5nUGVyaW9kcy8yMDE3MDUtMT9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Entries": [
{
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods?api-version=2017-04-24-preview&$filter=billingPeriodEndDate%20lt%202017-01-01&$top=1",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9iaWxsaW5nUGVyaW9kcz9hcGktdmVyc2lvbj0yMDE3LTA0LTI0LXByZXZpZXcmJGZpbHRlcj1iaWxsaW5nUGVyaW9kRW5kRGF0ZSUyMGx0JTIwMjAxNy0wMS0wMSYkdG9wPTE=",
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods?api-version=2018-03-01-preview&$filter=billingPeriodEndDate%20lt%202017-01-01&$top=1",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9iaWxsaW5nUGVyaW9kcz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXcmJGZpbHRlcj1iaWxsaW5nUGVyaW9kRW5kRGF0ZSUyMGx0JTIwMjAxNy0wMS0wMSYkdG9wPTE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand All @@ -17,7 +17,7 @@
"Microsoft.Azure.Management.Billing.BillingManagementClient/1.2.0-preview"
]
},
"ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"target\": \"https://billing-preview.windowsazure.com/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods?api-version=2017-04-24-preview&$filter=billingPeriodEndDate%20lt%202017-01-01&$top=1\",\r\n \"message\": \"Could not find billing period for the subscription.\"\r\n }\r\n}",
"ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"target\": \"https://billing-preview.windowsazure.com/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods?api-version=2018-03-01-preview&$filter=billingPeriodEndDate%20lt%202017-01-01&$top=1\",\r\n \"message\": \"Could not find billing period for the subscription.\"\r\n }\r\n}",
"ResponseHeaders": {
"Content-Length": [
"332"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Entries": [
{
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods?api-version=2017-04-24-preview",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9iaWxsaW5nUGVyaW9kcz9hcGktdmVyc2lvbj0yMDE3LTA0LTI0LXByZXZpZXc=",
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods?api-version=2018-03-01-preview",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9iaWxsaW5nUGVyaW9kcz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Entries": [
{
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods?api-version=2017-04-24-preview&$filter=billingPeriodEndDate%20gt%202017-01-31&$top=1",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9iaWxsaW5nUGVyaW9kcz9hcGktdmVyc2lvbj0yMDE3LTA0LTI0LXByZXZpZXcmJGZpbHRlcj1iaWxsaW5nUGVyaW9kRW5kRGF0ZSUyMGd0JTIwMjAxNy0wMS0zMSYkdG9wPTE=",
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods?api-version=2018-03-01-preview&$filter=billingPeriodEndDate%20gt%202017-01-31&$top=1",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9iaWxsaW5nUGVyaW9kcz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXcmJGZpbHRlcj1iaWxsaW5nUGVyaW9kRW5kRGF0ZSUyMGd0JTIwMjAxNy0wMS0zMSYkdG9wPTE=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand All @@ -17,7 +17,7 @@
"Microsoft.Azure.Management.Billing.BillingManagementClient/1.2.0-preview"
]
},
"ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods/201706-1\",\r\n \"type\": \"Microsoft.Billing/billingPeriods\",\r\n \"name\": \"201706-1\",\r\n \"properties\": {\r\n \"billingPeriodStartDate\": \"2017-04-10\",\r\n \"billingPeriodEndDate\": \"2017-05-09\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://billing-preview.windowsazure.com/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods?api-version=2017-04-24-preview&$filter=billingPeriodEndDate%20gt%202017-01-31&$top=1&$skiptoken=MQ%3D%3D\"\r\n}",
"ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods/201706-1\",\r\n \"type\": \"Microsoft.Billing/billingPeriods\",\r\n \"name\": \"201706-1\",\r\n \"properties\": {\r\n \"billingPeriodStartDate\": \"2017-04-10\",\r\n \"billingPeriodEndDate\": \"2017-05-09\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"https://billing-preview.windowsazure.com/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/billingPeriods?api-version=2018-03-01-preview&$filter=billingPeriodEndDate%20gt%202017-01-31&$top=1&$skiptoken=MQ%3D%3D\"\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"Entries": [
{
"RequestUri": "/providers/Microsoft.Billing/enrollmentAccounts/c8a9f59a-2d9b-4086-91c8-8988cae3bec3?api-version=2018-03-01-preview",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9lbnJvbGxtZW50QWNjb3VudHMvYzhhOWY1OWEtMmQ5Yi00MDg2LTkxYzgtODk4OGNhZTNiZWMzP2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
"eafff9da-749e-48e4-a6d7-07f09324c9f6"
],
"accept-language": [
"en-US"
],
"User-Agent": [
"FxVersion/4.6.25211.01",
"Microsoft.Azure.Management.Billing.BillingManagementClient/2.0.0.0"
]
},
"ResponseBody": "{\r\n \"id\": \"/providers/Microsoft.Billing/enrollmentAccounts/c8a9f59a-2d9b-4086-91c8-8988cae3bec3\",\r\n \"name\": \"c8a9f59a-2d9b-4086-91c8-8988cae3bec3\",\r\n \"properties\": {\r\n \"principalName\": \"JoeSchmoe@contoso.onmicrosoft.com\",\r\n \"offerTypes\": [\r\n \"MS-AZR-0017P\",\r\n \"MS-AZR-0025P\",\r\n \"MS-AZR-0148P\"\r\n ]\r\n },\r\n \"type\": \"Microsoft.Billing/enrollmentAccounts\"\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
],
"Expires": [
"-1"
],
"Cache-Control": [
"no-cache"
],
"Date": [
"Tue, 20 Mar 2018 23:49:17 GMT"
],
"Pragma": [
"no-cache"
],
"Transfer-Encoding": [
"chunked"
],
"Server": [
"Microsoft-IIS/8.5"
],
"Vary": [
"Accept-Encoding"
],
"api-supported-versions": [
"2018-03-01-preview"
],
"X-Content-Type-Options": [
"nosniff"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-AspNet-Version": [
"4.0.30319"
],
"X-Powered-By": [
"ASP.NET"
],
"x-ms-ratelimit-remaining-tenant-reads": [
"14997"
],
"x-ms-request-id": [
"98e9ab6a-9814-4dc5-bbd9-f2adee071009"
],
"x-ms-correlation-request-id": [
"98e9ab6a-9814-4dc5-bbd9-f2adee071009"
],
"x-ms-routing-request-id": [
"CENTRALUS:20180320T234918Z:98e9ab6a-9814-4dc5-bbd9-f2adee071009"
]
},
"StatusCode": 200
}
],
"Names": {},
"Variables": {
"SubscriptionId": "e67eab5a-bc80-4e7f-9c9f-2228d76575a4"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"Entries": [
{
"RequestUri": "/providers/Microsoft.Billing/enrollmentAccounts?api-version=2018-03-01-preview",
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9lbnJvbGxtZW50QWNjb3VudHM/YXBpLXZlcnNpb249MjAxOC0wMy0wMS1wcmV2aWV3",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
"4e688485-4104-43db-9967-494e3caca686"
],
"accept-language": [
"en-US"
],
"User-Agent": [
"FxVersion/4.6.25211.01",
"Microsoft.Azure.Management.Billing.BillingManagementClient/2.0.0.0"
]
},
"ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/providers/Microsoft.Billing/enrollmentAccounts/a5a1de67-85ef-4082-b274-44a264fc4fee\",\r\n \"name\": \"a5a1de67-85ef-4082-b274-44a264fc4fee\",\r\n \"properties\": {\r\n \"principalName\": \"JoeSchmoe@contoso.onmicrosoft.com\",\r\n \"offerTypes\": [\r\n \"MS-AZR-0017P\",\r\n \"MS-AZR-0025P\",\r\n \"MS-AZR-0148P\"\r\n ]\r\n },\r\n \"type\": \"Microsoft.Billing/enrollmentAccounts\"\r\n },\r\n {\r\n \"id\": \"/providers/Microsoft.Billing/enrollmentAccounts/14522963-9fac-4453-9a4b-c9c57217a78f\",\r\n \"name\": \"14522963-9fac-4453-9a4b-c9c57217a78f\",\r\n \"properties\": {\r\n \"principalName\": \"JoeSchmoe@contoso.onmicrosoft.com\",\r\n \"offerTypes\": [\r\n \"MS-AZR-0017P\",\r\n \"MS-AZR-0025P\",\r\n \"MS-AZR-0148P\"\r\n ]\r\n },\r\n \"type\": \"Microsoft.Billing/enrollmentAccounts\"\r\n }\r\n ]\r\n}",
"ResponseHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
],
"Expires": [
"-1"
],
"Cache-Control": [
"no-cache"
],
"Date": [
"Tue, 20 Mar 2018 23:48:41 GMT"
],
"Pragma": [
"no-cache"
],
"Transfer-Encoding": [
"chunked"
],
"Server": [
"Microsoft-IIS/8.5"
],
"Vary": [
"Accept-Encoding"
],
"api-supported-versions": [
"2018-03-01-preview"
],
"X-Content-Type-Options": [
"nosniff"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-AspNet-Version": [
"4.0.30319"
],
"X-Powered-By": [
"ASP.NET"
],
"x-ms-ratelimit-remaining-tenant-reads": [
"14995"
],
"x-ms-request-id": [
"b8ff92c7-052e-47f2-b9ea-f332290e2895"
],
"x-ms-correlation-request-id": [
"b8ff92c7-052e-47f2-b9ea-f332290e2895"
],
"x-ms-routing-request-id": [
"CENTRALUS:20180320T234841Z:b8ff92c7-052e-47f2-b9ea-f332290e2895"
]
},
"StatusCode": 200
}
],
"Names": {},
"Variables": {
"SubscriptionId": "e67eab5a-bc80-4e7f-9c9f-2228d76575a4"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Entries": [
{
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/invoices/201705-217994100075389?api-version=2017-04-24-preview",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9pbnZvaWNlcy8yMDE3MDUtMjE3OTk0MTAwMDc1Mzg5P2FwaS12ZXJzaW9uPTIwMTctMDQtMjQtcHJldmlldw==",
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/invoices/201705-217994100075389?api-version=2018-03-01-preview",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9pbnZvaWNlcy8yMDE3MDUtMjE3OTk0MTAwMDc1Mzg5P2FwaS12ZXJzaW9uPTIwMTgtMDMtMDEtcHJldmlldw==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Entries": [
{
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/invoices?api-version=2017-04-24-preview&$expand=downloadUrl&$filter=invoicePeriodEndDate%20lt%202016-01-31&$top=1",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9pbnZvaWNlcz9hcGktdmVyc2lvbj0yMDE3LTA0LTI0LXByZXZpZXcmJGV4cGFuZD1kb3dubG9hZFVybCYkZmlsdGVyPWludm9pY2VQZXJpb2RFbmREYXRlJTIwbHQlMjAyMDE2LTAxLTMxJiR0b3A9MQ==",
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/invoices?api-version=2018-03-01-preview&$expand=downloadUrl&$filter=invoicePeriodEndDate%20lt%202016-01-31&$top=1",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9pbnZvaWNlcz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXcmJGV4cGFuZD1kb3dubG9hZFVybCYkZmlsdGVyPWludm9pY2VQZXJpb2RFbmREYXRlJTIwbHQlMjAyMDE2LTAxLTMxJiR0b3A9MQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand All @@ -17,7 +17,7 @@
"Microsoft.Azure.Management.Billing.BillingManagementClient/1.2.0-preview"
]
},
"ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"target\": \"https://billing-preview.windowsazure.com/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/invoices?api-version=2017-04-24-preview&$expand=downloadUrl&$filter=invoicePeriodEndDate%20lt%202016-01-31&$top=1\",\r\n \"message\": \"Could not find invoice for the subscription.\"\r\n }\r\n}",
"ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"target\": \"https://billing-preview.windowsazure.com/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/invoices?api-version=2018-03-01-preview&$expand=downloadUrl&$filter=invoicePeriodEndDate%20lt%202016-01-31&$top=1\",\r\n \"message\": \"Could not find invoice for the subscription.\"\r\n }\r\n}",
"ResponseHeaders": {
"Content-Length": [
"339"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Entries": [
{
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/invoices/latest?api-version=2017-04-24-preview",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9pbnZvaWNlcy9sYXRlc3Q/YXBpLXZlcnNpb249MjAxNy0wNC0yNC1wcmV2aWV3",
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/invoices/latest?api-version=2018-03-01-preview",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9pbnZvaWNlcy9sYXRlc3Q/YXBpLXZlcnNpb249MjAxOC0wMy0wMS1wcmV2aWV3",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Entries": [
{
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/invoices?api-version=2017-04-24-preview",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9pbnZvaWNlcz9hcGktdmVyc2lvbj0yMDE3LTA0LTI0LXByZXZpZXc=",
"RequestUri": "/subscriptions/0347d63a-421a-43a7-836a-5f389c79cd07/providers/Microsoft.Billing/invoices?api-version=2018-03-01-preview",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDM0N2Q2M2EtNDIxYS00M2E3LTgzNmEtNWYzODljNzljZDA3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQmlsbGluZy9pbnZvaWNlcz9hcGktdmVyc2lvbj0yMDE4LTAzLTAxLXByZXZpZXc=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
Expand Down
Loading