Skip to content

Commit d399ef1

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/azure-docs-pr into may20updates
2 parents 47f5370 + 1ef6684 commit d399ef1

File tree

8 files changed

+131
-31
lines changed

8 files changed

+131
-31
lines changed

articles/batch/batch-docker-container-workloads.md

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
title: Container workloads
33
description: Learn how to run and scale apps from container images on Azure Batch. Create a pool of compute nodes that support running container tasks.
44
ms.topic: article
5-
ms.date: 03/02/2020
5+
ms.date: 05/20/2020
66
ms.custom: seodec18
7-
87
---
9-
108
# Run container applications on Azure Batch
119

1210
Azure Batch lets you run and scale large numbers of batch computing jobs on Azure. Batch tasks can run directly on virtual machines (nodes) in a Batch pool, but you can also set up a Batch pool to run tasks in Docker-compatible containers on the nodes. This article shows you how to create a pool of compute nodes that support running container tasks, and then run container tasks on the pool.
@@ -155,32 +153,40 @@ new_pool = batch.models.PoolAddParameter(
155153
The following C# example assumes that you want to prefetch a TensorFlow image from [Docker Hub](https://hub.docker.com). This example includes a start task that runs in the VM host on the pool nodes. You might run a start task in the host, for example, to mount a file server that can be accessed from the containers.
156154

157155
```csharp
158-
159156
ImageReference imageReference = new ImageReference(
160157
publisher: "microsoft-azure-batch",
161158
offer: "ubuntu-server-container",
162159
sku: "16-04-lts",
163160
version: "latest");
164161

162+
ContainerRegistry containerRegistry = new ContainerRegistry(
163+
registryServer: "https://hub.docker.com",
164+
userName: "UserName",
165+
password: "YourPassword"
166+
);
167+
165168
// Specify container configuration, prefetching Docker images
166-
ContainerConfiguration containerConfig = new ContainerConfiguration(
167-
containerImageNames: new List<string> { "tensorflow/tensorflow:latest-gpu" } );
169+
ContainerConfiguration containerConfig = new ContainerConfiguration();
170+
containerConfig.ContainerImageNames = new List<string> { "tensorflow/tensorflow:latest-gpu" };
171+
containerConfig.ContainerRegistries = new List<ContainerRegistry> { containerRegistry };
168172

169173
// VM configuration
170174
VirtualMachineConfiguration virtualMachineConfiguration = new VirtualMachineConfiguration(
171175
imageReference: imageReference,
172-
containerConfiguration: containerConfig,
173176
nodeAgentSkuId: "batch.node.ubuntu 16.04");
177+
virtualMachineConfiguration.ContainerConfiguration = containerConfig;
174178

175179
// Set a native host command line start task
176-
StartTask startTaskNative = new StartTask( CommandLine: "<native-host-command-line>" );
180+
StartTask startTaskContainer = new StartTask( commandLine: "<native-host-command-line>" );
177181

178182
// Create pool
179183
CloudPool pool = batchClient.PoolOperations.CreatePool(
180184
poolId: poolId,
181-
targetDedicatedComputeNodes: 4,
182185
virtualMachineSize: "Standard_NC6",
183-
virtualMachineConfiguration: virtualMachineConfiguration, startTaskContainer);
186+
virtualMachineConfiguration: virtualMachineConfiguration);
187+
188+
// Start the task in the pool
189+
pool.StartTask = startTaskContainer;
184190
...
185191
```
186192

@@ -191,22 +197,22 @@ You can also prefetch container images by authenticating to a private container
191197

192198
```csharp
193199
// Specify a container registry
194-
ContainerRegistry containerRegistry = new ContainerRegistry (
195-
registryServer: "myContainerRegistry.azurecr.io",
196-
username: "myUserName",
200+
ContainerRegistry containerRegistry = new ContainerRegistry(
201+
registryServer: "myContainerRegistry.azurecr.io",
202+
userName: "myUserName",
197203
password: "myPassword");
198204

199205
// Create container configuration, prefetching Docker images from the container registry
200-
ContainerConfiguration containerConfig = new ContainerConfiguration(
201-
containerImageNames: new List<string> {
202-
"myContainerRegistry.azurecr.io/tensorflow/tensorflow:latest-gpu" },
203-
containerRegistries: new List<ContainerRegistry> { containerRegistry } );
206+
ContainerConfiguration containerConfig = new ContainerConfiguration();
207+
containerConfig.ContainerImageNames = new List<string> {
208+
"myContainerRegistry.azurecr.io/tensorflow/tensorflow:latest-gpu" };
209+
containerConfig.ContainerRegistries = new List<ContainerRegistry> { containerRegistry } );
204210

205211
// VM configuration
206212
VirtualMachineConfiguration virtualMachineConfiguration = new VirtualMachineConfiguration(
207213
imageReference: imageReference,
208-
containerConfiguration: containerConfig,
209214
nodeAgentSkuId: "batch.node.ubuntu 16.04");
215+
virtualMachineConfiguration.ContainerConfiguration = containerConfig;
210216

211217
// Create pool
212218
CloudPool pool = batchClient.PoolOperations.CreatePool(
@@ -281,7 +287,6 @@ The following C# example shows basic container settings for a cloud task:
281287

282288
```csharp
283289
// Simple container task command
284-
285290
string cmdLine = "c:\\app\\myApp.exe";
286291

287292
TaskContainerSettings cmdContainerSettings = new TaskContainerSettings (
@@ -291,11 +296,10 @@ TaskContainerSettings cmdContainerSettings = new TaskContainerSettings (
291296

292297
CloudTask containerTask = new CloudTask (
293298
id: "Task1",
294-
containerSettings: cmdContainerSettings,
295-
commandLine: cmdLine);
299+
commandline: cmdLine);
300+
containerTask.ContainerSettings = cmdContainerSettings;
296301
```
297302

298-
299303
## Next steps
300304

301305
* Also see the [Batch Shipyard](https://github.com/Azure/batch-shipyard) toolkit for easy deployment of container workloads on Azure Batch through [Shipyard recipes](https://github.com/Azure/batch-shipyard/tree/master/recipes).

articles/cost-management-billing/manage/switch-azure-offer.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.reviewer: amberb
66
tags: billing,top-support-issue
77
ms.service: cost-management-billing
88
ms.topic: conceptual
9-
ms.date: 02/13/2020
9+
ms.date: 05/14/2020
1010
ms.author: banders
1111
---
1212

@@ -40,16 +40,16 @@ You can switch from an individual subscription with pay-as-you-go rates to:
4040
4141
1. Sign in at [Azure Account Center](https://account.windowsazure.com/Subscriptions).
4242
1. Select your individual subscription with pay-as-you-go rates.
43-
1. Click **Switch to another offer**. The option is only available if you have a individual subscription with pay-as-you-go rates and have completed your first billing period.
43+
1. Click **Switch to another offer**. The option is only available if you have an individual subscription with pay-as-you-go rates and have completed your first billing period.
4444

4545
![Notice the Switch offer button on the right side of the page](./media/switch-azure-offer/switchbutton.png)
4646
1. **Select the offer you want** from the list of offers your subscription can be switched to. This list varies based on the memberships that your account is associated with. If nothing is available, check the [list of available offers you can switch to](#whats-supported) and make sure you have the right memberships.
4747

4848
![Select an offer that you want to switch to](./media/switch-azure-offer/selectoffer.png)
49-
1. Depending on the offer you’re switching to, you may see a note about the impact of switching. Go through this list carefully and follow the instructions before you proceed.
49+
1. Depending on the offer you’re switching to, you may see a note about the impact of switching. Go through the list carefully and follow the instructions before you continue.
5050

5151
![Review the notes](./media/switch-azure-offer/thingstonote.png)
52-
1. You can rename your subscription. By default, it is set to the new offer name. Click **Switch Offer** to complete the process.
52+
1. You can rename your subscription. By default, it isn't set to the new offer name. Click **Switch Offer** to complete the process.
5353

5454
![Click the green button](./media/switch-azure-offer/confirmpage.png)
5555
1. Success! Your subscription is now switched to the new offer.
@@ -91,11 +91,11 @@ When you switch offers, any [limit or quota increases above the default limit](.
9191

9292
#### Billing
9393

94-
On the day you switch, an invoice is generated for all outstanding charges. Then, your subscription is billed per the new offer’s pricing terms. Your subscription billing anniversary changes to the date on which you changed offers. Usage and billing data before the offer change is not retained, so we recommend that you download a copy before switching.
94+
On the day you switch, an invoice is generated for all outstanding charges. Then, your subscription is billed per the new offer’s pricing terms. Your subscription billing anniversary changes to the date on which you changed offers. Usage and billing data before the offer change isn't kept, so we recommend that you download a copy before switching.
9595

9696
### Can I migrate from a subscription with pay-as-you-go rates to Cloud Solution Provider (CSP) or Enterprise Agreement (EA)?
9797

98-
* To migrate to CSP, see [Azure Pay-As-You-Go Subscription Migration to CSP](https://docs.microsoft.com/azure/cloud-solution-provider/migration/migration-from-payg-to-csp).
98+
* To migrate to CSP, see [Transfer Azure subscriptions between subscribers and CSPs](transfer-subscriptions-subscribers-csp.md).
9999
* To migrate to EA, have your Enrollment Admin add your account into the EA. Follow instructions in the invitation email to have your subscriptions moved under EA enrollment. To learn more, see [Associate an Existing Account](https://ea.azure.com/helpdocs/associateExistingAccount) in the EA portal.
100100

101101
### Can I migrate data and services to a new subscription?
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Charge back Azure Reservation costs
3+
description: Learn how to view Azure Reservation costs for chargeback.
4+
author: yashesvi
5+
ms.service: cost-management-billing
6+
ms.topic: conceptual
7+
ms.date: 05/14/2020
8+
ms.author: banders
9+
---
10+
11+
# Charge back Azure Reservation costs
12+
13+
Enterprise Agreement and Microsoft Customer Agreement billing readers can view amortized cost data for reservations. They can use the cost data to charge back the monetary value for a subscription, resource group, resource, or a tag to their partners. In amortized data, the effective price is the prorated hourly reservation cost. The cost is the total cost of reservation usage by the resource on that day.
14+
15+
Users with an individual subscription can get the amortized cost data from their usage file. When a resource gets a reservation discount, the *AdditionalInfo* section in the usage file contains the reservation details. For more information, see [Download usage from the Azure portal](https://docs.microsoft.com/azure/cost-management-billing/understand/download-azure-daily-usage#download-usage-from-the-azure-portal-csv).
16+
17+
## Get reservation charge back data for chargeback
18+
19+
1. Sign in to the [Azure portal](https://portal.azure.com).
20+
1. Navigate to **Cost Management + Billing**.
21+
1. Under **Actual Cost**, select the **Amortized Cost** metric.
22+
1. To see which resources were used by a reservation, apply a filter for **Reservation** and then select reservations.
23+
1. Set the **Granularity** to **Monthly** or **Daily**.
24+
1. Set the chart type to **Table**.
25+
1. Set the **Group by** option to **Resource**.
26+
27+
[![Example showing reservation resource costs that you can use for chargeback](./media/charge-back-usage/amortized-reservation-costs.png)](./media/charge-back-usage/amortized-reservation-costs.png#lightbox)
28+
29+
Here's a video showing how to view reservation utilization costs in the Azure portal.
30+
31+
> [!VIDEO https://www.microsoft.com/videoplayer/embed/RE4sQOw]
32+
33+
## Need help? Contact us.
34+
35+
If you have questions or need help, [create a support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/newsupportrequest).
36+
37+
## Next steps
38+
39+
- To learn how to manage a reservation, see [Manage Azure Reservations](manage-reserved-vm-instance.md).
40+
- To learn more about Azure Reservations, see the following articles:
41+
- [What are Azure Reservations?](save-compute-costs-reservations.md)
42+
- [Manage Reservations in Azure](manage-reserved-vm-instance.md)
136 KB
Loading
Loading
148 KB
Loading

articles/cost-management-billing/reservations/toc.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
- name: What are Azure Reservations?
77
href: save-compute-costs-reservations.md
88
- name: How-to guides
9-
expanded: true
109
items:
1110
- name: Determine what to purchase
1211
items:
@@ -56,12 +55,17 @@
5655
href: manage-reserved-vm-instance.md#change-optimize-setting-for-reserved-vm-instances
5756
- name: Exchange and refund reservations
5857
href: exchange-and-refund-azure-reservations.md
58+
- name: Report costs
59+
items:
60+
- name: View reservation transactions
61+
href: view-purchase-refunds.md
62+
- name: Charge back reservation costs
63+
href: charge-back-usage.md
5964
- name: Renew reservations
6065
items:
6166
- name: Renew a reservation
6267
href: reservation-renew.md
6368
- name: Concepts
64-
expanded: true
6569
items:
6670
- name: How reservation recommendations are created
6771
href: reserved-instance-purchase-recommendations.md
@@ -119,4 +123,3 @@
119123
href: /rest/api/consumption/usagedetails
120124
- name: Cost Management - Consumption Reservations Details REST API
121125
href: /rest/api/consumption/reservationsdetails
122-
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: View Azure Reservation purchase and refund transactions
3+
description: Learn how view Azure Reservation purchase and refund transactions.
4+
author: yashesvi
5+
ms.service: cost-management-billing
6+
ms.topic: conceptual
7+
ms.date: 05/14/2020
8+
ms.author: banders
9+
---
10+
11+
# View reservation purchase and refund transactions
12+
13+
There are a few different ways to view reservation purchase and refund transactions. You can use the Azure portal, Power BI, and REST APIs.
14+
15+
## View reservation transactions in the Azure portal
16+
17+
An Enterprise enrollment or Microsoft Customer Agreement billing administrator can view reservation transactions in Cost Management and Billing.
18+
19+
1. Sign in to the [Azure portal](https://portal.azure.com).
20+
1. Search for **Cost Management + Billing**.
21+
1. Select **Reservation transactions**.
22+
1. To filter the results, select **Timespan**, **Type**, or **Description**.
23+
1. Select **Apply**.
24+
25+
[![Screenshot showing reservation transactions in the Azure portal](./media/view-purchase-refunds/azure-portal-reservation-transactions.png)](./media/view-purchase-refunds/azure-portal-reservation-transactions.png#lightbox)
26+
27+
## View reservation transactions in Power BI
28+
29+
An Enterprise enrollment or Microsoft Customer Agreement billing administrator can view reservation transactions with the Cost Management Power BI app.
30+
31+
1. Get the [Cost Management Power BI App](https://appsource.microsoft.com/product/power-bi/costmanagement.azurecostmanagementapp).
32+
1. Navigate to the RI Purchases report.
33+
34+
[![Example showing reservation transactions](./media/view-purchase-refunds/power-bi-reservation-transactions.png)](./media/view-purchase-refunds/power-bi-reservation-transactions.png#lightbox)
35+
36+
To learn more, see [Azure Cost Management Power BI App for Enterprise Agreements](https://docs.microsoft.com/azure/cost-management-billing/costs/analyze-cost-data-azure-cost-management-power-bi-template-app).
37+
38+
## Use APIs to get reservation transactions
39+
40+
Enterprise Agreement (EA) and Microsoft Customer Agreement users can get reservation transactions data using [Reservation Transactions - List API](https://docs.microsoft.com/rest/api/consumption/reservationtransactions/list).
41+
42+
## Need help? Contact us.
43+
44+
If you have questions or need help, [create a support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/newsupportrequest).
45+
46+
## Next steps
47+
48+
- To learn how to manage a reservation, see [Manage Azure Reservations](manage-reserved-vm-instance.md).
49+
- To learn more about Azure Reservations, see the following articles:
50+
- [What are Azure Reservations?](save-compute-costs-reservations.md)
51+
- [Manage Reservations in Azure](manage-reserved-vm-instance.md)

0 commit comments

Comments
 (0)