Skip to content

Commit 70de0d0

Browse files
grizzlytheodoreTheodore ChangArcturusZhang
authored
CRP 2022-11-01 track 2 (Azure#33553)
* track 2 generation * fix properties issue * customize * customize * address comments * add more customiztion * tests re-recorded * removing xml document * remove xml * renamed, and samples generated * rename scheduledEventsProfile * generate test * renamed the other serialized requireGuestProvisionSignal * autorest * export api * fixedeverything * remianing recordings * fix snippets --------- Co-authored-by: Theodore Chang <[email protected]> Co-authored-by: Arcturus Zhang <[email protected]>
1 parent 6d46b95 commit 70de0d0

File tree

265 files changed

+973411
-8547
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+973411
-8547
lines changed

sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ New design of track 2 initial commit.
178178
Example: Create a VM:
179179

180180
Before upgrade:
181+
182+
You need the following using statements:
181183
```C#
182184
using System.Collections.Generic;
183185
using System.Linq;
@@ -193,7 +195,10 @@ using IPVersion = Microsoft.Azure.Management.Network.Models.IPVersion;
193195
using ResourceManagementClient = Microsoft.Azure.Management.ResourceManager.ResourceManagementClient;
194196
using Sku = Microsoft.Azure.Management.Compute.Models.Sku;
195197
using SubResource = Microsoft.Azure.Management.Compute.Models.SubResource;
198+
```
196199

200+
The code looks like:
201+
```C#
197202
var credentials = new TokenCredentials("YOUR ACCESS TOKEN");;
198203

199204
var resourceClient = new ResourceManagementClient(credentials);
@@ -298,7 +303,9 @@ await computeClient.VirtualMachines.BeginCreateOrUpdateAsync(resourceGroupName,
298303
```
299304

300305
After upgrade:
301-
```C# Snippet:Changelog_New
306+
307+
You need the following using statements:
308+
```C# Snippet:Changelog_NewUsing
302309
using Azure.Identity;
303310
using Azure.ResourceManager.Compute.Models;
304311
using Azure.ResourceManager.Network;
@@ -308,7 +315,10 @@ using Azure.ResourceManager.Resources.Models;
308315
using Azure.Core;
309316
using System;
310317
using System.Linq;
318+
```
311319

320+
The code looks like:
321+
```C# Snippet:Changelog_New
312322
ArmClient armClient = new ArmClient(new DefaultAzureCredential());
313323

314324
AzureLocation location = AzureLocation.WestUS;

sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs

Lines changed: 87 additions & 0 deletions
Large diffs are not rendered by default.

sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetCollection.cs

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_AvailabilitySetResource.cs

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)