Skip to content

Commit cab131a

Browse files
authored
1.0.0-beta.4 Azure.Compute.Batch (#52467)
* update to 2025-06-01 api
1 parent 1949db1 commit cab131a

File tree

87 files changed

+6645
-5749
lines changed

Some content is hidden

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

87 files changed

+6645
-5749
lines changed

sdk/batch/Azure.Compute.Batch/CHANGELOG.md

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,60 @@
11
# Release History
22

3-
## 1.0.0-beta.4 (Unreleased)
3+
## 1.0.0-beta.4 (2025-09-01)
44

55
### Features Added
66

7+
Added Models:
8+
- Added `BatchJobDefaultOrder`
9+
- Added `BatchPoolIdentityReference`
10+
- Added `DiskCustomerManagedKey`
11+
- Added `DiskEncryptionSetParameters`
12+
- Added `HostEndpointSettings`
13+
- Added `HostEndpointSettingsModeTypes`
14+
- Added `IPFamily`
15+
- Added `IpTag`
16+
- Added `ProxyAgentSettings`
17+
18+
Added Properties:
19+
- Added `ipv6Address` to `BatchNode`
20+
- Added `Ipv6RemoteLoginIpAddress` and `Ipv6RemoteLoginPort` to `BatchNodeRemoteLoginSettings`
21+
- Added `IpFamilies` and `IpTags` to `BatchPublicAddressConfiguration`
22+
- Added `JobDefaultOder` to `BatchTaskSchedulingPolicy`
23+
- Added `ManagedDisk` to `DataDisk`
24+
- Added `CustomerManagedKey` to `DiskEncryptionConfiguration`
25+
- Added `DiskEncryptionSet` to `ManagedDisk`
26+
- Added `DiskWithVMGuestStateValue` to `SecurityEncryptionTypes`
27+
- Added `ProxyAgentSetting` to `SecurityProfile`
28+
29+
730
### Breaking Changes
831

9-
### Bugs Fixed
32+
Removed Certificate API's:
33+
- Removed `BatchClient.CreateCertificate`
34+
- Removed `BatchClient.CancelCertificateDeletion`
35+
- Removed `BatchClient.DeleteCertificate`
36+
- Removed `BatchClient.GetCertificate`
37+
- Removed `BatchClient.GetCertificates`
38+
39+
Removed Modes:
40+
- Removed `BatchCertificate`
41+
- Removed `BatchCertificateDeleteError`
42+
- Removed `BatchCertificateFormat`
43+
- Removed `BatchCertificateReference`
44+
- Removed `BatchCertificateState`
45+
- Removed `BatchCertificateStoreLocation`
46+
- Removed `BatchCertificateVisibility`
47+
- Removed `BatchNodeCommunicationMode`
48+
49+
Removed Properties:
50+
- Removed `CertificateReferences` from `BatchNode`
51+
- Removed `ResourceTags` and `CertificateReferences` from `BatchPool`
52+
- Removed `CertificateReferences`, `ResourceTags`, and `TargetNodeCommunicationMode` from `BatchPoolCreateOptions`
53+
- Removed `CertificateReferences` and `TargetNodeCommunicationMode` from `BatchPoolReplaceOptions`
54+
- Removed `CertificateReferences`, `ResourceTags`, and `TargetNodeCommunicationMode` from `BatchPoolSpecifications`
55+
- Removed `CertificateReferences`, `ResourceTags`, and `TargetNodeCommunicationMode` from `BatchPoolUpdateOptions`
56+
- Removed `CertificateReferences`, `ResourceTags`, and `TargetNodeCommunicationMode` from `ComputeBatchModelFactory`
1057

11-
### Other Changes
1258

1359
## 1.0.0-beta.3 (2025-06-19)
1460

sdk/batch/Azure.Compute.Batch/MigrationGuide.md

Lines changed: 1 addition & 151 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,6 @@ Familiarity with the legacy client library is assumed. For those new to the Azur
7272
- [File Properties](#get-node-file-properties)
7373
- [GetRemoteLoginSettings](#getremoteloginsettings)
7474
- [UploadComputeNodeBatchServiceLogs](#uploadcomputenodebatchservicelogs)
75-
- [Certificate Operations](#certificate-operations)
76-
- [CreateCertificateFromCer](#createcertificatefromcer)
77-
- [CreateCertificateFromPfx](#createcertificatefrompfx)
78-
- [GetCertificate](#getcertificate)
79-
- [ListCertificates](#listcertificates)
80-
- [DeleteCertificate](#deletecertificate)
81-
- [CancelDeleteCertificate](#canceldeletecertificate)
8275
- [Application Operations](#application-operations)
8376
- [GetApplicationSummary](#getapplicationsummary)
8477
- [ListApplicationSummaries](#listapplicationsummaries)
@@ -522,15 +515,7 @@ BatchApplicationPackageReference[] batchApplicationPackageReferences = new Batch
522515
}
523516
};
524517

525-
BatchCertificateReference[] certificateReferences = new BatchCertificateReference[] {
526-
new BatchCertificateReference("thumbprint","thumbprintAlgorithm")
527-
{
528-
StoreLocation = "storeLocation",
529-
StoreName = "storeName"
530-
}
531-
};
532-
533-
BatchPoolReplaceOptions replaceOptions = new BatchPoolReplaceOptions(certificateReferences, batchApplicationPackageReferences, metadataItems);
518+
BatchPoolReplaceOptions replaceOptions = new BatchPoolReplaceOptions(batchApplicationPackageReferences, metadataItems);
534519
batchClient.ReplacePoolProperties("poolID", replaceOptions);
535520
```
536521
#### ResizePool
@@ -1658,141 +1643,6 @@ UploadBatchServiceLogsOptions uploadBatchServiceLogsOptions = new UploadBatchSer
16581643
UploadBatchServiceLogsResult uploadBatchServiceLogsResult = batchClient.UploadNodeLogs("poolId", "computeNodeId", uploadBatchServiceLogsOptions);
16591644
```
16601645

1661-
### Certificate Operations
1662-
1663-
> Note: Certificates has been [deprecated].
1664-
1665-
#### CreateCertificateFromCer
1666-
1667-
Previously in `Microsoft.Azure.Batch` to create a Certificate from an existing cert you could call the `CreateCertificateFromCer` method with the path to the cert.
1668-
1669-
``` C#
1670-
Certificate cerCertificate = batchClient.CertificateOperations.CreateCertificateFromCer("cerFilePath");
1671-
```
1672-
1673-
With `Azure.Compute.Batch` call `CreateCertificate` with a `BatchCertificate` param to create a cert
1674-
1675-
```C# Snippet:Batch_Migration_CreateCerCertificate
1676-
BatchClient batchClient = new BatchClient(
1677-
new Uri("https://<your account>.eastus.batch.azure.com"), new DefaultAzureCredential());
1678-
byte[] certData = File.ReadAllBytes("certPath");
1679-
BatchCertificate cerCertificate = new BatchCertificate("Thumbprint", "ThumbprintAlgorithm", BinaryData.FromBytes(certData))
1680-
{
1681-
CertificateFormat = BatchCertificateFormat.Cer,
1682-
Password = "",
1683-
};
1684-
1685-
Response response = batchClient.CreateCertificate(cerCertificate);
1686-
```
1687-
1688-
#### CreateCertificateFromPfx
1689-
1690-
Previously in `Microsoft.Azure.Batch` to create a Certificate from an existing pfx cert you could call the `CreateCertificateFromPfx` method with the path to the cert.
1691-
1692-
``` C#
1693-
Certificate pfxCertificate = batchClient.CertificateOperations.CreateCertificateFromPfx("pfxFilePath", "CertificatePassword");
1694-
```
1695-
1696-
With `Azure.Compute.Batch` call `CreateCertificate` with a `BatchCertificate` param to create a cert
1697-
1698-
```C# Snippet:Batch_Migration_CreatePfxCertificate
1699-
BatchClient batchClient = new BatchClient(
1700-
new Uri("https://<your account>.eastus.batch.azure.com"), new DefaultAzureCredential());
1701-
1702-
byte[] certData = File.ReadAllBytes("certPath");
1703-
BatchCertificate cerCertificate = new BatchCertificate("Thumbprint", "ThumbprintAlgorithm", BinaryData.FromBytes(certData))
1704-
{
1705-
CertificateFormat = BatchCertificateFormat.Pfx,
1706-
Password = "password",
1707-
};
1708-
1709-
Response response = batchClient.CreateCertificate(cerCertificate);
1710-
```
1711-
1712-
#### GetCertificate
1713-
1714-
Previously in `Microsoft.Azure.Batch` to get a Certificate you could call the `GetCertificate` method from `CertificateOperations`.
1715-
1716-
``` C#
1717-
Certificate boundCert = batchClient.CertificateOperations.GetCertificate( "ThumbprintAlgorithm", "Thumbprint")
1718-
```
1719-
1720-
With `Azure.Compute.Batch` call `GetCertificate` to get the certificate which will return a `GetCertificateResponse`.
1721-
1722-
```C# Snippet:Batch_Migration_GetCertificate
1723-
BatchClient batchClient = new BatchClient(
1724-
new Uri("https://<your account>.eastus.batch.azure.com"), new DefaultAzureCredential());
1725-
1726-
BatchCertificate cerCertificateResponse = batchClient.GetCertificate("ThumbprintAlgorithm", "Thumbprint");
1727-
```
1728-
1729-
#### ListCertificates
1730-
1731-
Previously in `Microsoft.Azure.Batch` to get a list of Certificates you could call the `ListCertificates` method from `CertificateOperations`.
1732-
1733-
``` C#
1734-
foreach (Certificate curCert in batchClient.CertificateOperations.ListCertificates())
1735-
{
1736-
// do something
1737-
}
1738-
```
1739-
1740-
With `Azure.Compute.Batch` call `GetCertificates` to get a list of certificates.
1741-
1742-
```C# Snippet:Batch_Migration_ListCertificate
1743-
BatchClient batchClient = new BatchClient(
1744-
new Uri("https://<your account>.eastus.batch.azure.com"), new DefaultAzureCredential());
1745-
1746-
foreach (BatchCertificate item in batchClient.GetCertificates())
1747-
{
1748-
// do something
1749-
}
1750-
```
1751-
1752-
#### DeleteCertificate
1753-
1754-
Previously in `Microsoft.Azure.Batch` to delete a Certificate you could call the `DeleteCertificate` method from `CertificateOperations`.
1755-
1756-
``` C#
1757-
batchClient.CertificateOperations.DeleteCertificate("ThumbprintAlgorithm", "Thumbprint");
1758-
```
1759-
1760-
With `Azure.Compute.Batch` call `DeleteCertificate` to delete a certificate.
1761-
1762-
```C# Snippet:Batch_Migration_DeleteCertificate
1763-
BatchClient batchClient = new BatchClient(
1764-
new Uri("https://<your account>.eastus.batch.azure.com"), new DefaultAzureCredential());
1765-
1766-
batchClient.DeleteCertificate("ThumbprintAlgorithm", "Thumbprint");
1767-
```
1768-
Optionally you can use the returned `DeleteCertificateOperation` object to wait for the operation to complete.
1769-
1770-
```C# Snippet:Batch_Migration_DeleteCertificate_Operation
1771-
BatchClient batchClient = new BatchClient(
1772-
new Uri("https://<your account>.eastus.batch.azure.com"), new DefaultAzureCredential());
1773-
1774-
DeleteCertificateOperation operation = batchClient.DeleteCertificate("ThumbprintAlgorithm", "Thumbprint");
1775-
1776-
// Optional, wait for operation to complete
1777-
operation.WaitForCompletion();
1778-
```
1779-
#### CancelDeleteCertificate
1780-
1781-
Previously in `Microsoft.Azure.Batch` to cancel a delete of a Certificate you could call the `CancelDeleteCertificate` method from `CertificateOperations`.
1782-
1783-
``` C#
1784-
batchClient.CertificateOperations.CancelDeleteCertificate("ThumbprintAlgorithm", "Thumbprint");
1785-
```
1786-
1787-
With `Azure.Compute.Batch` call `CancelCertificateDeletion` to cancel a delete of a certificate.
1788-
1789-
```C# Snippet:Batch_Migration_CancelDeleteCertificate
1790-
BatchClient batchClient = new BatchClient(
1791-
new Uri("https://<your account>.eastus.batch.azure.com"), new DefaultAzureCredential());
1792-
1793-
batchClient.CancelCertificateDeletion("ThumbprintAlgorithm", "Thumbprint");
1794-
```
1795-
17961646
### Application Operations
17971647

17981648
#### GetApplicationSummary

sdk/batch/Azure.Compute.Batch/README.md

Lines changed: 1 addition & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,6 @@ The following section provides several synchronous code snippets covering some o
147147
* [Node File Properties](#get-node-file-properties)
148148
* [Get Remote Login Settings](#getremoteloginsettings)
149149
* [Upload Compute Node BatchService Logs](#uploadcomputenodebatchservicelogs)
150-
* [Certificate Operations](#certificate-operations)
151-
* [Create a Certificate](#createcertificate)
152-
* [Get a Certificatec](#getcertificate)
153-
* [List Certificates](#listcertificates)
154-
* [Delete Certificate](#deletecertificate)
155-
* [Cancel Delete Certificate](#canceldeletecertificate)
156150
* [Application Operations](#application-operations)
157151
* [Get Application](#get-application)
158152
* [List Applications](#list-application)
@@ -330,15 +324,7 @@ BatchApplicationPackageReference[] batchApplicationPackageReferences = new Batch
330324
}
331325
};
332326

333-
BatchCertificateReference[] certificateReferences = new BatchCertificateReference[] {
334-
new BatchCertificateReference("thumbprint","thumbprintAlgorithm")
335-
{
336-
StoreLocation = "storeLocation",
337-
StoreName = "storeName"
338-
}
339-
};
340-
341-
BatchPoolReplaceOptions replaceOptions = new BatchPoolReplaceOptions(certificateReferences, batchApplicationPackageReferences, metadataItems);
327+
BatchPoolReplaceOptions replaceOptions = new BatchPoolReplaceOptions(batchApplicationPackageReferences, metadataItems);
342328
batchClient.ReplacePoolProperties("poolID", replaceOptions);
343329
```
344330
#### Resize Pool
@@ -1159,85 +1145,6 @@ UploadBatchServiceLogsOptions uploadBatchServiceLogsOptions = new UploadBatchSer
11591145
UploadBatchServiceLogsResult uploadBatchServiceLogsResult = batchClient.UploadNodeLogs("poolId", "computeNodeId", uploadBatchServiceLogsOptions);
11601146
```
11611147

1162-
### Certificate Operations
1163-
1164-
> Note: Certificates has been [deprecated].
1165-
1166-
#### CreateCertificate
1167-
1168-
Call `CreateCertificate` with a `BatchCertificate` param to create a Certificate.
1169-
1170-
```C# Snippet:Batch_Migration_CreateCerCertificate
1171-
BatchClient batchClient = new BatchClient(
1172-
new Uri("https://<your account>.eastus.batch.azure.com"), new DefaultAzureCredential());
1173-
byte[] certData = File.ReadAllBytes("certPath");
1174-
BatchCertificate cerCertificate = new BatchCertificate("Thumbprint", "ThumbprintAlgorithm", BinaryData.FromBytes(certData))
1175-
{
1176-
CertificateFormat = BatchCertificateFormat.Cer,
1177-
Password = "",
1178-
};
1179-
1180-
Response response = batchClient.CreateCertificate(cerCertificate);
1181-
```
1182-
1183-
#### GetCertificate
1184-
1185-
Call `GetCertificate` to get the certificate which will return a `GetCertificateResponse`.
1186-
1187-
```C# Snippet:Batch_Migration_GetCertificate
1188-
BatchClient batchClient = new BatchClient(
1189-
new Uri("https://<your account>.eastus.batch.azure.com"), new DefaultAzureCredential());
1190-
1191-
BatchCertificate cerCertificateResponse = batchClient.GetCertificate("ThumbprintAlgorithm", "Thumbprint");
1192-
```
1193-
1194-
#### ListCertificates
1195-
1196-
Call `GetCertificates` to get a list of certificates.
1197-
1198-
```C# Snippet:Batch_Migration_ListCertificate
1199-
BatchClient batchClient = new BatchClient(
1200-
new Uri("https://<your account>.eastus.batch.azure.com"), new DefaultAzureCredential());
1201-
1202-
foreach (BatchCertificate item in batchClient.GetCertificates())
1203-
{
1204-
// do something
1205-
}
1206-
```
1207-
1208-
#### DeleteCertificate
1209-
1210-
Call `DeleteCertificate` to delete a Certificate.
1211-
1212-
```C# Snippet:Batch_Migration_DeleteCertificate
1213-
BatchClient batchClient = new BatchClient(
1214-
new Uri("https://<your account>.eastus.batch.azure.com"), new DefaultAzureCredential());
1215-
1216-
batchClient.DeleteCertificate("ThumbprintAlgorithm", "Thumbprint");
1217-
```
1218-
Optionally you can use the returned `DeleteCertificateOperation` object to wait for the operation to complete.
1219-
1220-
```C# Snippet:Batch_Migration_DeleteCertificate_Operation
1221-
BatchClient batchClient = new BatchClient(
1222-
new Uri("https://<your account>.eastus.batch.azure.com"), new DefaultAzureCredential());
1223-
1224-
DeleteCertificateOperation operation = batchClient.DeleteCertificate("ThumbprintAlgorithm", "Thumbprint");
1225-
1226-
// Optional, wait for operation to complete
1227-
operation.WaitForCompletion();
1228-
```
1229-
1230-
#### CancelDeleteCertificate
1231-
1232-
Call `CancelCertificateDeletion` to cancel a delete of a certificate.
1233-
1234-
```C# Snippet:Batch_Migration_CancelDeleteCertificate
1235-
BatchClient batchClient = new BatchClient(
1236-
new Uri("https://<your account>.eastus.batch.azure.com"), new DefaultAzureCredential());
1237-
1238-
batchClient.CancelCertificateDeletion("ThumbprintAlgorithm", "Thumbprint");
1239-
```
1240-
12411148
### Application Operations
12421149

12431150
#### Get Application

0 commit comments

Comments
 (0)