ZiWei Chen 2024-09-26 17:27:43 +08:00 коммит произвёл GitHub
Родитель 5cbbab919b
Коммит 7e2c6bcf52
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
170 изменённых файлов: 2973 добавлений и 1210 удалений

Просмотреть файл

@ -13232,7 +13232,7 @@ packages:
dev: false
file:projects/arm-batch.tgz:
resolution: {integrity: sha512-xbfyInpvh//K3rGg0LkeSunwru0AJyRmWBkAYKBB3ZIEI2Zz84uI48VnCFap8xw9x5ZpzOf3Z+gc3VNYz95GWA==, tarball: file:projects/arm-batch.tgz}
resolution: {integrity: sha512-GzGCopQ9KbMjORsZM5l6Q9G6BiGLe7XvXbigD/eGvU7rE6/3U7CY9bORHfB6MyeBJLab9BbRxzNcNlP8w2tL8A==, tarball: file:projects/arm-batch.tgz}
name: '@rush-temp/arm-batch'
version: 0.0.0
dependencies:
@ -13253,6 +13253,7 @@ packages:
rimraf: 5.0.10
ts-node: 10.9.2(@types/node@18.19.50)(typescript@5.6.2)
tslib: 2.7.0
tsx: 4.19.1
typescript: 5.6.2
uglify-js: 3.19.3
transitivePeerDependencies:

Просмотреть файл

@ -1,15 +1,71 @@
# Release History
## 9.2.1 (Unreleased)
## 10.0.0 (2024-09-11)
### Features Added
- Added operation group NetworkSecurityPerimeterOperations
- Added Interface AccessRule
- Added Interface AccessRuleProperties
- Added Interface AccessRulePropertiesSubscriptionsItem
- Added Interface AzureProxyResource
- Added Interface AzureResource
- Added Interface ContainerHostBatchBindMountEntry
- Added Interface ErrorAdditionalInfo
- Added Interface ErrorDetail
- Added Interface ErrorResponse
- Added Interface NetworkSecurityPerimeter
- Added Interface NetworkSecurityPerimeterConfiguration
- Added Interface NetworkSecurityPerimeterConfigurationListResult
- Added Interface NetworkSecurityPerimeterConfigurationProperties
- Added Interface NetworkSecurityPerimeterGetConfigurationOptionalParams
- Added Interface NetworkSecurityPerimeterListConfigurationsNextOptionalParams
- Added Interface NetworkSecurityPerimeterListConfigurationsOptionalParams
- Added Interface NetworkSecurityPerimeterReconcileConfigurationHeaders
- Added Interface NetworkSecurityPerimeterReconcileConfigurationOptionalParams
- Added Interface NetworkSecurityProfile
- Added Interface ProvisioningIssue
- Added Interface ProvisioningIssueProperties
- Added Interface ResourceAssociation
- Added Interface SystemData
- Added Interface VMDiskSecurityProfile
- Added Type Alias AccessRuleDirection
- Added Type Alias ContainerHostDataPath
- Added Type Alias CreatedByType
- Added Type Alias IssueType
- Added Type Alias NetworkSecurityPerimeterConfigurationProvisioningState
- Added Type Alias NetworkSecurityPerimeterGetConfigurationResponse
- Added Type Alias NetworkSecurityPerimeterListConfigurationsNextResponse
- Added Type Alias NetworkSecurityPerimeterListConfigurationsResponse
- Added Type Alias NetworkSecurityPerimeterReconcileConfigurationResponse
- Added Type Alias ResourceAssociationAccessMode
- Added Type Alias SecurityEncryptionTypes
- Added Type Alias SecurityTypes
- Added Type Alias Severity
- Interface ImageReference has a new optional parameter communityGalleryImageId
- Interface ImageReference has a new optional parameter sharedGalleryImageId
- Interface ManagedDisk has a new optional parameter securityProfile
- Interface Resource has a new optional parameter systemData
- Interface TaskContainerSettings has a new optional parameter containerHostBatchBindMounts
- Added Enum KnownAccessRuleDirection
- Added Enum KnownContainerHostDataPath
- Added Enum KnownCreatedByType
- Added Enum KnownIssueType
- Added Enum KnownNetworkSecurityPerimeterConfigurationProvisioningState
- Added Enum KnownResourceAssociationAccessMode
- Added Enum KnownSecurityEncryptionTypes
- Added Enum KnownSeverity
### Breaking Changes
### Bugs Fixed
### Other Changes
- Removed operation Location_2.listSupportedCloudServiceSkus
- Interface DeploymentConfiguration no longer has parameter cloudServiceConfiguration
- Interface ProxyResource no longer has parameter etag
- Interface Resource no longer has parameter location
- Interface Resource no longer has parameter tags
- Type of parameter securityType of interface SecurityProfile is changed from "trustedLaunch" to SecurityTypes
## 9.2.0 (2024-03-13)
### Features Added

Просмотреть файл

@ -1,8 +1,8 @@
{
"commit": "3004d02873a4b583ba6a3966a370f1ba19b5da1d",
"commit": "3519c80fe510a268f6e59a29ccac8a53fdec15b6",
"readme": "specification/batch/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\batch\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\batch\\resource-manager\\readme.md --use=@autorest/typescript@6.0.27 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.4",
"use": "@autorest/typescript@6.0.17"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.12",
"use": "@autorest/typescript@6.0.27"
}

Просмотреть файл

@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/batch/arm-batch",
"Tag": "js/batch/arm-batch_e0ce7d086e"
"Tag": "js/batch/arm-batch_20f166d6fc"
}

Просмотреть файл

@ -3,13 +3,13 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for BatchManagementClient.",
"version": "9.2.1",
"version": "10.0.0",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/abort-controller": "^2.1.2",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
@ -35,11 +35,12 @@
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure/identity": "^4.2.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",

Просмотреть файл

@ -10,6 +10,31 @@ import { OperationState } from '@azure/core-lro';
import { PagedAsyncIterableIterator } from '@azure/core-paging';
import { SimplePollerLike } from '@azure/core-lro';
// @public
export interface AccessRule {
name?: string;
properties?: AccessRuleProperties;
}
// @public
export type AccessRuleDirection = string;
// @public
export interface AccessRuleProperties {
addressPrefixes?: string[];
direction?: AccessRuleDirection;
emailAddresses?: string[];
fullyQualifiedDomainNames?: string[];
networkSecurityPerimeters?: NetworkSecurityPerimeter[];
phoneNumbers?: string[];
subscriptions?: AccessRulePropertiesSubscriptionsItem[];
}
// @public
export interface AccessRulePropertiesSubscriptionsItem {
id?: string;
}
// @public
export type AccountKeyType = "Primary" | "Secondary";
@ -22,7 +47,7 @@ export interface ActivateApplicationPackageParameters {
export type AllocationState = "Steady" | "Resizing" | "Stopping";
// @public
export interface Application extends ProxyResource {
export interface Application extends AzureProxyResource {
allowUpdates?: boolean;
defaultVersion?: string;
displayName?: string;
@ -72,7 +97,7 @@ export interface ApplicationOperations {
}
// @public
export interface ApplicationPackage extends ProxyResource {
export interface ApplicationPackage extends AzureProxyResource {
readonly format?: string;
readonly lastActivationTime?: Date;
readonly state?: PackageState;
@ -219,7 +244,29 @@ export interface AzureFileShareConfiguration {
}
// @public
export interface BatchAccount extends Resource {
export interface AzureProxyResource {
readonly etag?: string;
readonly id?: string;
readonly name?: string;
tags?: {
[propertyName: string]: string;
};
readonly type?: string;
}
// @public
export interface AzureResource {
readonly id?: string;
readonly location?: string;
readonly name?: string;
readonly tags?: {
[propertyName: string]: string;
};
readonly type?: string;
}
// @public
export interface BatchAccount extends AzureResource {
readonly accountEndpoint?: string;
readonly activeJobAndJobScheduleQuota?: number;
readonly allowedAuthenticationModes?: AuthenticationMode[];
@ -460,6 +507,8 @@ export class BatchManagementClient extends coreClient.ServiceClient {
// (undocumented)
location: Location_2;
// (undocumented)
networkSecurityPerimeterOperations: NetworkSecurityPerimeterOperations;
// (undocumented)
operations: Operations;
// (undocumented)
poolOperations: PoolOperations;
@ -490,7 +539,7 @@ export interface BatchPoolIdentity {
export type CachingType = "None" | "ReadOnly" | "ReadWrite";
// @public
export interface Certificate extends ProxyResource {
export interface Certificate extends AzureProxyResource {
readonly deleteCertificateError?: DeleteCertificateError;
format?: CertificateFormat;
readonly previousProvisioningState?: CertificateProvisioningState;
@ -533,7 +582,7 @@ export interface CertificateCreateOptionalParams extends coreClient.OperationOpt
}
// @public
export interface CertificateCreateOrUpdateParameters extends ProxyResource {
export interface CertificateCreateOrUpdateParameters extends AzureProxyResource {
data?: string;
format?: CertificateFormat;
password?: string;
@ -680,12 +729,6 @@ export interface CloudErrorBody {
target?: string;
}
// @public
export interface CloudServiceConfiguration {
osFamily: string;
osVersion?: string;
}
// @public
export type ComputeNodeDeallocationOption = "Requeue" | "Terminate" | "TaskCompletion" | "RetainedData";
@ -704,6 +747,15 @@ export interface ContainerConfiguration {
type: ContainerType;
}
// @public
export interface ContainerHostBatchBindMountEntry {
isReadOnly?: boolean;
source?: ContainerHostDataPath;
}
// @public
export type ContainerHostDataPath = string;
// @public
export interface ContainerRegistry {
identityReference?: ComputeNodeIdentityReference;
@ -718,6 +770,9 @@ export type ContainerType = string;
// @public
export type ContainerWorkingDirectory = "TaskWorkingDirectory" | "ContainerImageDefault";
// @public
export type CreatedByType = string;
// @public
export interface DataDisk {
caching?: CachingType;
@ -736,7 +791,6 @@ export interface DeleteCertificateError {
// @public
export interface DeploymentConfiguration {
cloudServiceConfiguration?: CloudServiceConfiguration;
virtualMachineConfiguration?: VirtualMachineConfiguration;
}
@ -747,7 +801,7 @@ export interface DetectorListResult {
}
// @public
export interface DetectorResponse extends ProxyResource {
export interface DetectorResponse extends AzureProxyResource {
value?: string;
}
@ -803,6 +857,26 @@ export interface EnvironmentSetting {
value?: string;
}
// @public
export interface ErrorAdditionalInfo {
readonly info?: Record<string, unknown>;
readonly type?: string;
}
// @public
export interface ErrorDetail {
readonly additionalInfo?: ErrorAdditionalInfo[];
readonly code?: string;
readonly details?: ErrorDetail[];
readonly message?: string;
readonly target?: string;
}
// @public
export interface ErrorResponse {
error?: ErrorDetail;
}
// @public
export interface FixedScaleSettings {
nodeDeallocationOption?: ComputeNodeDeallocationOption;
@ -816,9 +890,11 @@ export function getContinuationToken(page: unknown): string | undefined;
// @public
export interface ImageReference {
communityGalleryImageId?: string;
id?: string;
offer?: string;
publisher?: string;
sharedGalleryImageId?: string;
sku?: string;
version?: string;
}
@ -848,6 +924,9 @@ export interface IPRule {
value: string;
}
// @public
export type IssueType = string;
// @public
export type KeySource = "Microsoft.Batch" | "Microsoft.KeyVault";
@ -862,12 +941,74 @@ export interface KeyVaultReference {
url: string;
}
// @public
export enum KnownAccessRuleDirection {
Inbound = "Inbound",
Outbound = "Outbound"
}
// @public
export enum KnownContainerHostDataPath {
Applications = "Applications",
JobPrep = "JobPrep",
Shared = "Shared",
Startup = "Startup",
Task = "Task",
VfsMounts = "VfsMounts"
}
// @public
export enum KnownContainerType {
CriCompatible = "CriCompatible",
DockerCompatible = "DockerCompatible"
}
// @public
export enum KnownCreatedByType {
Application = "Application",
Key = "Key",
ManagedIdentity = "ManagedIdentity",
User = "User"
}
// @public
export enum KnownIssueType {
ConfigurationPropagationFailure = "ConfigurationPropagationFailure",
MissingIdentityConfiguration = "MissingIdentityConfiguration",
MissingPerimeterConfiguration = "MissingPerimeterConfiguration",
Unknown = "Unknown"
}
// @public
export enum KnownNetworkSecurityPerimeterConfigurationProvisioningState {
Accepted = "Accepted",
Canceled = "Canceled",
Creating = "Creating",
Deleting = "Deleting",
Failed = "Failed",
Succeeded = "Succeeded",
Updating = "Updating"
}
// @public
export enum KnownResourceAssociationAccessMode {
Audit = "Audit",
Enforced = "Enforced",
Learning = "Learning"
}
// @public
export enum KnownSecurityEncryptionTypes {
NonPersistedTPM = "NonPersistedTPM",
VMGuestStateOnly = "VMGuestStateOnly"
}
// @public
export enum KnownSeverity {
Error = "Error",
Warning = "Warning"
}
// @public
export interface LinuxUserConfiguration {
gid?: number;
@ -915,7 +1056,6 @@ export interface ListPrivateLinkResourcesResult {
interface Location_2 {
checkNameAvailability(locationName: string, parameters: CheckNameAvailabilityParameters, options?: LocationCheckNameAvailabilityOptionalParams): Promise<LocationCheckNameAvailabilityResponse>;
getQuotas(locationName: string, options?: LocationGetQuotasOptionalParams): Promise<LocationGetQuotasResponse>;
listSupportedCloudServiceSkus(locationName: string, options?: LocationListSupportedCloudServiceSkusOptionalParams): PagedAsyncIterableIterator<SupportedSku>;
listSupportedVirtualMachineSkus(locationName: string, options?: LocationListSupportedVirtualMachineSkusOptionalParams): PagedAsyncIterableIterator<SupportedSku>;
}
export { Location_2 as Location }
@ -934,22 +1074,6 @@ export interface LocationGetQuotasOptionalParams extends coreClient.OperationOpt
// @public
export type LocationGetQuotasResponse = BatchLocationQuota;
// @public
export interface LocationListSupportedCloudServiceSkusNextOptionalParams extends coreClient.OperationOptions {
}
// @public
export type LocationListSupportedCloudServiceSkusNextResponse = SupportedSkusResult;
// @public
export interface LocationListSupportedCloudServiceSkusOptionalParams extends coreClient.OperationOptions {
filter?: string;
maxresults?: number;
}
// @public
export type LocationListSupportedCloudServiceSkusResponse = SupportedSkusResult;
// @public
export interface LocationListSupportedVirtualMachineSkusNextOptionalParams extends coreClient.OperationOptions {
}
@ -971,6 +1095,7 @@ export type LoginMode = "Batch" | "Interactive";
// @public (undocumented)
export interface ManagedDisk {
securityProfile?: VMDiskSecurityProfile;
storageAccountType?: StorageAccountType;
}
@ -1017,6 +1142,89 @@ export interface NetworkSecurityGroupRule {
// @public
export type NetworkSecurityGroupRuleAccess = "Allow" | "Deny";
// @public
export interface NetworkSecurityPerimeter {
id?: string;
location?: string;
perimeterGuid?: string;
}
// @public
export interface NetworkSecurityPerimeterConfiguration extends ProxyResource {
properties?: NetworkSecurityPerimeterConfigurationProperties;
}
// @public
export interface NetworkSecurityPerimeterConfigurationListResult {
nextLink?: string;
value?: NetworkSecurityPerimeterConfiguration[];
}
// @public
export interface NetworkSecurityPerimeterConfigurationProperties {
networkSecurityPerimeter?: NetworkSecurityPerimeter;
profile?: NetworkSecurityProfile;
readonly provisioningIssues?: ProvisioningIssue[];
readonly provisioningState?: NetworkSecurityPerimeterConfigurationProvisioningState;
resourceAssociation?: ResourceAssociation;
}
// @public
export type NetworkSecurityPerimeterConfigurationProvisioningState = string;
// @public
export interface NetworkSecurityPerimeterGetConfigurationOptionalParams extends coreClient.OperationOptions {
}
// @public
export type NetworkSecurityPerimeterGetConfigurationResponse = NetworkSecurityPerimeterConfiguration;
// @public
export interface NetworkSecurityPerimeterListConfigurationsNextOptionalParams extends coreClient.OperationOptions {
}
// @public
export type NetworkSecurityPerimeterListConfigurationsNextResponse = NetworkSecurityPerimeterConfigurationListResult;
// @public
export interface NetworkSecurityPerimeterListConfigurationsOptionalParams extends coreClient.OperationOptions {
}
// @public
export type NetworkSecurityPerimeterListConfigurationsResponse = NetworkSecurityPerimeterConfigurationListResult;
// @public
export interface NetworkSecurityPerimeterOperations {
beginReconcileConfiguration(resourceGroupName: string, accountName: string, networkSecurityPerimeterConfigurationName: string, options?: NetworkSecurityPerimeterReconcileConfigurationOptionalParams): Promise<SimplePollerLike<OperationState<NetworkSecurityPerimeterReconcileConfigurationResponse>, NetworkSecurityPerimeterReconcileConfigurationResponse>>;
beginReconcileConfigurationAndWait(resourceGroupName: string, accountName: string, networkSecurityPerimeterConfigurationName: string, options?: NetworkSecurityPerimeterReconcileConfigurationOptionalParams): Promise<NetworkSecurityPerimeterReconcileConfigurationResponse>;
getConfiguration(resourceGroupName: string, accountName: string, networkSecurityPerimeterConfigurationName: string, options?: NetworkSecurityPerimeterGetConfigurationOptionalParams): Promise<NetworkSecurityPerimeterGetConfigurationResponse>;
listConfigurations(resourceGroupName: string, accountName: string, options?: NetworkSecurityPerimeterListConfigurationsOptionalParams): PagedAsyncIterableIterator<NetworkSecurityPerimeterConfiguration>;
}
// @public
export interface NetworkSecurityPerimeterReconcileConfigurationHeaders {
location?: string;
retryAfter?: number;
}
// @public
export interface NetworkSecurityPerimeterReconcileConfigurationOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}
// @public
export type NetworkSecurityPerimeterReconcileConfigurationResponse = NetworkSecurityPerimeterReconcileConfigurationHeaders;
// @public
export interface NetworkSecurityProfile {
accessRules?: AccessRule[];
accessRulesVersion?: number;
diagnosticSettingsVersion?: number;
enabledLogCategories?: string[];
name?: string;
}
// @public
export interface NFSMountConfiguration {
mountOptions?: string;
@ -1103,7 +1311,7 @@ export interface OutboundEnvironmentEndpointCollection {
export type PackageState = "Pending" | "Active";
// @public
export interface Pool extends ProxyResource {
export interface Pool extends AzureProxyResource {
readonly allocationState?: AllocationState;
readonly allocationStateTransitionTime?: Date;
applicationLicenses?: string[];
@ -1262,7 +1470,7 @@ export interface PrivateEndpoint {
}
// @public
export interface PrivateEndpointConnection extends ProxyResource {
export interface PrivateEndpointConnection extends AzureProxyResource {
readonly groupIds?: string[];
readonly privateEndpoint?: PrivateEndpoint;
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
@ -1336,7 +1544,7 @@ export interface PrivateEndpointConnectionUpdateOptionalParams extends coreClien
export type PrivateEndpointConnectionUpdateResponse = PrivateEndpointConnection;
// @public
export interface PrivateLinkResource extends ProxyResource {
export interface PrivateLinkResource extends AzureProxyResource {
readonly groupId?: string;
readonly requiredMembers?: string[];
readonly requiredZoneNames?: string[];
@ -1380,15 +1588,26 @@ export interface PrivateLinkServiceConnectionState {
// @public
export type PrivateLinkServiceConnectionStatus = "Approved" | "Pending" | "Rejected" | "Disconnected";
// @public
export interface ProvisioningIssue {
readonly name?: string;
readonly properties?: ProvisioningIssueProperties;
}
// @public
export interface ProvisioningIssueProperties {
readonly description?: string;
readonly issueType?: IssueType;
readonly severity?: Severity;
readonly suggestedAccessRules?: AccessRule[];
readonly suggestedResourceIds?: string[];
}
// @public
export type ProvisioningState = "Invalid" | "Creating" | "Deleting" | "Succeeded" | "Failed" | "Cancelled";
// @public
export interface ProxyResource {
readonly etag?: string;
readonly id?: string;
readonly name?: string;
readonly type?: string;
export interface ProxyResource extends Resource {
}
// @public
@ -1398,7 +1617,7 @@ export interface PublicIPAddressConfiguration {
}
// @public
export type PublicNetworkAccessType = "Enabled" | "Disabled";
export type PublicNetworkAccessType = "Enabled" | "Disabled" | "SecuredByPerimeter";
// @public
export interface ResizeError {
@ -1420,14 +1639,20 @@ export interface ResizeOperationStatus {
// @public
export interface Resource {
readonly id?: string;
readonly location?: string;
readonly name?: string;
readonly tags?: {
[propertyName: string]: string;
};
readonly systemData?: SystemData;
readonly type?: string;
}
// @public
export interface ResourceAssociation {
accessMode?: ResourceAssociationAccessMode;
name?: string;
}
// @public
export type ResourceAssociationAccessMode = string;
// @public
export interface ResourceFile {
autoStorageContainerName?: string;
@ -1459,18 +1684,27 @@ export interface ScaleSettings {
fixedScale?: FixedScaleSettings;
}
// @public
export type SecurityEncryptionTypes = string;
// @public
export interface SecurityProfile {
encryptionAtHost?: boolean;
securityType?: "trustedLaunch";
securityType?: SecurityTypes;
uefiSettings?: UefiSettings;
}
// @public
export type SecurityTypes = "trustedLaunch" | "confidentialVM";
// @public
export interface ServiceArtifactReference {
id: string;
}
// @public
export type Severity = string;
// @public
export interface SkuCapability {
readonly name?: string;
@ -1505,8 +1739,19 @@ export interface SupportedSkusResult {
value: SupportedSku[];
}
// @public
export interface SystemData {
createdAt?: Date;
createdBy?: string;
createdByType?: CreatedByType;
lastModifiedAt?: Date;
lastModifiedBy?: string;
lastModifiedByType?: CreatedByType;
}
// @public
export interface TaskContainerSettings {
containerHostBatchBindMounts?: ContainerHostBatchBindMountEntry[];
containerRunOptions?: string;
imageName: string;
registry?: ContainerRegistry;
@ -1577,6 +1822,11 @@ export interface VirtualMachineFamilyCoreQuota {
readonly name?: string;
}
// @public
export interface VMDiskSecurityProfile {
securityEncryptionType?: SecurityEncryptionTypes;
}
// @public
export interface VMExtension {
autoUpgradeMinorVersion?: boolean;

Просмотреть файл

@ -22,7 +22,7 @@ dotenv.config();
* This sample demonstrates how to Adds an application to the specified Batch account.
*
* @summary Adds an application to the specified Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationCreate.json
*/
async function applicationCreate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Deletes an application.
*
* @summary Deletes an application.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationDelete.json
*/
async function applicationDelete() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets information about the specified application.
*
* @summary Gets information about the specified application.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationGet.json
*/
async function applicationGet() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists all of the applications in the specified account.
*
* @summary Lists all of the applications in the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationList.json
*/
async function applicationList() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
*
* @summary Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageActivate.json
*/
async function applicationPackageActivate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
*
* @summary Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageCreate.json
*/
async function applicationPackageCreate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Deletes an application package record and its associated binary file.
*
* @summary Deletes an application package record and its associated binary file.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageDelete.json
*/
async function applicationPackageDelete() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets information about the specified application package.
*
* @summary Gets information about the specified application package.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageGet.json
*/
async function applicationPackageGet() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists all of the application packages in the specified application.
*
* @summary Lists all of the application packages in the specified application.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageList.json
*/
async function applicationPackageList() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Updates settings for the specified application.
*
* @summary Updates settings for the specified application.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationUpdate.json
*/
async function applicationUpdate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
*
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_BYOS.json
*/
async function batchAccountCreateByos() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -54,7 +54,7 @@ async function batchAccountCreateByos() {
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
*
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_Default.json
*/
async function batchAccountCreateDefault() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -82,7 +82,7 @@ async function batchAccountCreateDefault() {
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
*
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
*/
async function batchAccountCreateSystemAssignedIdentity() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -111,7 +111,7 @@ async function batchAccountCreateSystemAssignedIdentity() {
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
*
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_UserAssignedIdentity.json
*/
async function batchAccountCreateUserAssignedIdentity() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -146,7 +146,7 @@ async function batchAccountCreateUserAssignedIdentity() {
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
*
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateBatchAccountCreate.json
*/
async function privateBatchAccountCreate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Deletes the specified Batch account.
*
* @summary Deletes the specified Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountDelete.json
*/
async function batchAccountDelete() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets information about the given detector for a given Batch account.
*
* @summary Gets information about the given detector for a given Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/DetectorGet.json
*/
async function getDetector() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
*
* @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountGetKeys.json
*/
async function batchAccountGetKeys() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets information about the specified Batch account.
*
* @summary Gets information about the specified Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountGet.json
*/
async function batchAccountGet() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -38,7 +38,7 @@ async function batchAccountGet() {
* This sample demonstrates how to Gets information about the specified Batch account.
*
* @summary Gets information about the specified Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateBatchAccountGet.json
*/
async function privateBatchAccountGet() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group.
*
* @summary Gets information about the Batch accounts associated with the specified resource group.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountListByResourceGroup.json
*/
async function batchAccountListByResourceGroup() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets information about the detectors available for a given Batch account.
*
* @summary Gets information about the detectors available for a given Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/DetectorList.json
*/
async function listDetectors() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -15,10 +15,10 @@ import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
* This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network.
*
* @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json
* @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json
*/
async function listOutboundNetworkDependencies() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets information about the Batch accounts associated with the subscription.
*
* @summary Gets information about the Batch accounts associated with the subscription.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountList.json
*/
async function batchAccountList() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
*
* @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountRegenerateKey.json
*/
async function batchAccountRegenerateKey() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
*
* @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
*/
async function batchAccountSynchronizeAutoStorageKeys() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Updates the properties of an existing Batch account.
*
* @summary Updates the properties of an existing Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountUpdate.json
*/
async function batchAccountUpdate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -22,7 +22,7 @@ Warning: This operation is deprecated and will be removed after February, 2024.
* @summary If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate.
Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCancelDeletion.json
*/
async function certificateCancelDeletion() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCreate_Full.json
*/
async function createCertificateFull() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -51,7 +51,7 @@ async function createCertificateFull() {
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCreate_MinimalCer.json
*/
async function createCertificateMinimalCer() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -78,7 +78,7 @@ async function createCertificateMinimalCer() {
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCreate_Minimal.json
*/
async function createCertificateMinimalPfx() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateDelete.json
*/
async function certificateDelete() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateGet.json
*/
async function getCertificate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -40,7 +40,7 @@ async function getCertificate() {
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateGetWithDeletionError.json
*/
async function getCertificateWithDeletionError() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateList.json
*/
async function listCertificates() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -44,7 +44,7 @@ async function listCertificates() {
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateListWithFilter.json
*/
async function listCertificatesFilterAndSelect() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateUpdate.json
*/
async function updateCertificate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
*
* @summary Checks whether the Batch account name is available in the specified region.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationCheckNameAvailability_AlreadyExists.json
*/
async function locationCheckNameAvailabilityAlreadyExists() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -43,7 +43,7 @@ async function locationCheckNameAvailabilityAlreadyExists() {
* This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
*
* @summary Checks whether the Batch account name is available in the specified region.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationCheckNameAvailability_Available.json
*/
async function locationCheckNameAvailabilityAvailable() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location.
*
* @summary Gets the Batch service quotas for the specified subscription at the given location.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationGetQuotas.json
*/
async function locationGetQuotas() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
*
* @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationListVirtualMachineSkus.json
*/
async function locationListVirtualMachineSkus() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -0,0 +1,45 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Gets information about the specified NSP configuration.
*
* @summary Gets information about the specified NSP configuration.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationGet.json
*/
async function getNspConfiguration() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
const resourceGroupName =
process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
const accountName = "sampleacct";
const networkSecurityPerimeterConfigurationName =
"00000000-0000-0000-0000-000000000000.sampleassociation";
const credential = new DefaultAzureCredential();
const client = new BatchManagementClient(credential, subscriptionId);
const result =
await client.networkSecurityPerimeterOperations.getConfiguration(
resourceGroupName,
accountName,
networkSecurityPerimeterConfigurationName,
);
console.log(result);
}
async function main() {
getNspConfiguration();
}
main().catch(console.error);

Просмотреть файл

@ -15,19 +15,22 @@ import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location.
* This sample demonstrates how to Lists all of the NSP configurations in the specified account.
*
* @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json
* @summary Lists all of the NSP configurations in the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationsList.json
*/
async function locationListCloudServiceSkus() {
async function listNspConfigurations() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
const locationName = "japaneast";
const resourceGroupName =
process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
const accountName = "sampleacct";
const credential = new DefaultAzureCredential();
const client = new BatchManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.location.listSupportedCloudServiceSkus(
locationName,
for await (let item of client.networkSecurityPerimeterOperations.listConfigurations(
resourceGroupName,
accountName,
)) {
resArray.push(item);
}
@ -35,7 +38,7 @@ async function locationListCloudServiceSkus() {
}
async function main() {
locationListCloudServiceSkus();
listNspConfigurations();
}
main().catch(console.error);

Просмотреть файл

@ -0,0 +1,45 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Reconciles the specified NSP configuration.
*
* @summary Reconciles the specified NSP configuration.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationReconcile.json
*/
async function reconcileNspConfiguration() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
const resourceGroupName =
process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
const accountName = "sampleacct";
const networkSecurityPerimeterConfigurationName =
"00000000-0000-0000-0000-000000000000.sampleassociation";
const credential = new DefaultAzureCredential();
const client = new BatchManagementClient(credential, subscriptionId);
const result =
await client.networkSecurityPerimeterOperations.beginReconcileConfigurationAndWait(
resourceGroupName,
accountName,
networkSecurityPerimeterConfigurationName,
);
console.log(result);
}
async function main() {
reconcileNspConfiguration();
}
main().catch(console.error);

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists available operations for the Microsoft.Batch provider
*
* @summary Lists available operations for the Microsoft.Batch provider
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/OperationsList.json
*/
async function operationsList() {
const subscriptionId =

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_SharedImageGallery.json
*/
async function createPoolCustomImage() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -52,108 +52,7 @@ async function createPoolCustomImage() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_CloudServiceConfiguration.json
*/
async function createPoolFullCloudServiceConfiguration() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
const resourceGroupName =
process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
const accountName = "sampleacct";
const poolName = "testpool";
const parameters: Pool = {
applicationLicenses: ["app-license0", "app-license1"],
applicationPackages: [
{
id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234",
version: "asdf",
},
],
certificates: [
{
id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567",
storeLocation: "LocalMachine",
storeName: "MY",
visibility: ["RemoteUser"],
},
],
deploymentConfiguration: {
cloudServiceConfiguration: {
osFamily: "4",
osVersion: "WA-GUEST-OS-4.45_201708-01",
},
},
displayName: "my-pool-name",
interNodeCommunication: "Enabled",
metadata: [
{ name: "metadata-1", value: "value-1" },
{ name: "metadata-2", value: "value-2" },
],
networkConfiguration: {
publicIPAddressConfiguration: {
ipAddressIds: [
"/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135",
"/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268",
],
provision: "UserManaged",
},
subnetId:
"/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123",
},
scaleSettings: {
fixedScale: {
nodeDeallocationOption: "TaskCompletion",
resizeTimeout: "PT8M",
targetDedicatedNodes: 6,
targetLowPriorityNodes: 28,
},
},
startTask: {
commandLine: "cmd /c SET",
environmentSettings: [{ name: "MYSET", value: "1234" }],
maxTaskRetryCount: 6,
resourceFiles: [
{
fileMode: "777",
filePath: "c:\\temp\\gohere",
httpUrl:
"https://testaccount.blob.core.windows.net/example-blob-file",
},
],
userIdentity: { autoUser: { elevationLevel: "Admin", scope: "Pool" } },
waitForSuccess: true,
},
taskSchedulingPolicy: { nodeFillType: "Pack" },
taskSlotsPerNode: 13,
userAccounts: [
{
name: "username1",
elevationLevel: "Admin",
linuxUserConfiguration: {
gid: 4567,
sshPrivateKey: "sshprivatekeyvalue",
uid: 1234,
},
password: "<ExamplePassword>",
},
],
vmSize: "STANDARD_D4",
};
const credential = new DefaultAzureCredential();
const client = new BatchManagementClient(credential, subscriptionId);
const result = await client.poolOperations.create(
resourceGroupName,
accountName,
poolName,
parameters,
);
console.log(result);
}
/**
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_VirtualMachineConfiguration.json
*/
async function createPoolFullVirtualMachineConfiguration() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -242,35 +141,7 @@ async function createPoolFullVirtualMachineConfiguration() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json
*/
async function createPoolMinimalCloudServiceConfiguration() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
const resourceGroupName =
process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
const accountName = "sampleacct";
const poolName = "testpool";
const parameters: Pool = {
deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "5" } },
scaleSettings: { fixedScale: { targetDedicatedNodes: 3 } },
vmSize: "STANDARD_D4",
};
const credential = new DefaultAzureCredential();
const client = new BatchManagementClient(credential, subscriptionId);
const result = await client.poolOperations.create(
resourceGroupName,
accountName,
poolName,
parameters,
);
console.log(result);
}
/**
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
*/
async function createPoolMinimalVirtualMachineConfiguration() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -313,7 +184,7 @@ async function createPoolMinimalVirtualMachineConfiguration() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_NoPublicIPAddresses.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_NoPublicIPAddresses.json
*/
async function createPoolNoPublicIP() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -352,7 +223,7 @@ async function createPoolNoPublicIP() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_PublicIPs.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_PublicIPs.json
*/
async function createPoolPublicIPs() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -396,7 +267,7 @@ async function createPoolPublicIPs() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_ResourceTags.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_ResourceTags.json
*/
async function createPoolResourceTags() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -437,7 +308,7 @@ async function createPoolResourceTags() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SecurityProfile.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_SecurityProfile.json
*/
async function createPoolSecurityProfile() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -482,7 +353,48 @@ async function createPoolSecurityProfile() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UpgradePolicy.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_Tags.json
*/
async function createPoolTags() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
const resourceGroupName =
process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
const accountName = "sampleacct";
const poolName = "testpool";
const parameters: Pool = {
deploymentConfiguration: {
virtualMachineConfiguration: {
imageReference: {
offer: "0001-com-ubuntu-server-jammy",
publisher: "Canonical",
sku: "22_04-lts",
version: "latest",
},
nodeAgentSkuId: "batch.node.ubuntu 22.04",
},
},
scaleSettings: {
fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 },
},
tags: { tagName1: "TagValue1", tagName2: "TagValue2" },
vmSize: "Standard_d4s_v3",
};
const credential = new DefaultAzureCredential();
const client = new BatchManagementClient(credential, subscriptionId);
const result = await client.poolOperations.create(
resourceGroupName,
accountName,
poolName,
parameters,
);
console.log(result);
}
/**
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_UpgradePolicy.json
*/
async function createPoolUpgradePolicy() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -542,7 +454,7 @@ async function createPoolUpgradePolicy() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UserAssignedIdentities.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_UserAssignedIdentities.json
*/
async function createPoolUserAssignedIdentities() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -594,7 +506,7 @@ async function createPoolUserAssignedIdentities() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json
*/
async function createPoolVirtualMachineConfigurationExtensions() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -651,7 +563,7 @@ async function createPoolVirtualMachineConfigurationExtensions() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json
*/
async function createPoolVirtualMachineConfigurationOSDisk() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -696,7 +608,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json
*/
async function createPoolVirtualMachineConfigurationServiceArtifactReference() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -744,7 +656,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_AcceleratedNetworking.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_AcceleratedNetworking.json
*/
async function createPoolAcceleratedNetworking() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -787,14 +699,13 @@ async function createPoolAcceleratedNetworking() {
async function main() {
createPoolCustomImage();
createPoolFullCloudServiceConfiguration();
createPoolFullVirtualMachineConfiguration();
createPoolMinimalCloudServiceConfiguration();
createPoolMinimalVirtualMachineConfiguration();
createPoolNoPublicIP();
createPoolPublicIPs();
createPoolResourceTags();
createPoolSecurityProfile();
createPoolTags();
createPoolUpgradePolicy();
createPoolUserAssignedIdentities();
createPoolVirtualMachineConfigurationExtensions();

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Deletes the specified pool.
*
* @summary Deletes the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolDelete.json
*/
async function deletePool() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Disables automatic scaling for a pool.
*
* @summary Disables automatic scaling for a pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolDisableAutoScale.json
*/
async function disableAutoScale() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet.json
*/
async function getPool() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -40,7 +40,7 @@ async function getPool() {
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_AcceleratedNetworking.json
*/
async function getPoolAcceleratedNetworking() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -62,7 +62,7 @@ async function getPoolAcceleratedNetworking() {
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_SecurityProfile.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_SecurityProfile.json
*/
async function getPoolSecurityProfile() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -84,7 +84,7 @@ async function getPoolSecurityProfile() {
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_UpgradePolicy.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_UpgradePolicy.json
*/
async function getPoolUpgradePolicy() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -106,7 +106,7 @@ async function getPoolUpgradePolicy() {
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json
*/
async function getPoolVirtualMachineConfigurationExtensions() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -128,7 +128,7 @@ async function getPoolVirtualMachineConfigurationExtensions() {
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json
*/
async function getPoolVirtualMachineConfigurationOSDisk() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -150,7 +150,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() {
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json
*/
async function getPoolVirtualMachineConfigurationServiceArtifactReference() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Lists all of the pools in the specified account.
*
* @summary Lists all of the pools in the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolList.json
*/
async function listPool() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -44,7 +44,7 @@ async function listPool() {
* This sample demonstrates how to Lists all of the pools in the specified account.
*
* @summary Lists all of the pools in the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolListWithFilter.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolListWithFilter.json
*/
async function listPoolWithFilter() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created.
*
* @summary This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolStopResize.json
*/
async function stopPoolResize() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Updates the properties of an existing pool.
*
* @summary Updates the properties of an existing pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolUpdate_EnableAutoScale.json
*/
async function updatePoolEnableAutoscale() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -44,7 +44,7 @@ async function updatePoolEnableAutoscale() {
* This sample demonstrates how to Updates the properties of an existing pool.
*
* @summary Updates the properties of an existing pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_OtherProperties.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolUpdate_OtherProperties.json
*/
async function updatePoolOtherProperties() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -87,7 +87,7 @@ async function updatePoolOtherProperties() {
* This sample demonstrates how to Updates the properties of an existing pool.
*
* @summary Updates the properties of an existing pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_RemoveStartTask.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolUpdate_RemoveStartTask.json
*/
async function updatePoolRemoveStartTask() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -111,7 +111,7 @@ async function updatePoolRemoveStartTask() {
* This sample demonstrates how to Updates the properties of an existing pool.
*
* @summary Updates the properties of an existing pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_ResizePool.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolUpdate_ResizePool.json
*/
async function updatePoolResizePool() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Deletes the specified private endpoint connection.
*
* @summary Deletes the specified private endpoint connection.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionDelete.json
*/
async function privateEndpointConnectionDelete() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets information about the specified private endpoint connection.
*
* @summary Gets information about the specified private endpoint connection.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionGet.json
*/
async function getPrivateEndpointConnection() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists all of the private endpoint connections in the specified account.
*
* @summary Lists all of the private endpoint connections in the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionsList.json
*/
async function listPrivateEndpointConnections() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Updates the properties of an existing private endpoint connection.
*
* @summary Updates the properties of an existing private endpoint connection.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionUpdate.json
*/
async function updatePrivateEndpointConnection() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets information about the specified private link resource.
*
* @summary Gets information about the specified private link resource.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateLinkResourceGet.json
*/
async function getPrivateLinkResource() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists all of the private link resources in the specified account.
*
* @summary Lists all of the private link resources in the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateLinkResourcesList.json
*/
async function listPrivateLinkResource() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -4,52 +4,54 @@ These sample programs show how to use the JavaScript client libraries for in som
| **File Name** | **Description** |
| --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [applicationCreateSample.js][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json |
| [applicationDeleteSample.js][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json |
| [applicationGetSample.js][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json |
| [applicationListSample.js][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json |
| [applicationPackageActivateSample.js][applicationpackageactivatesample] | Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json |
| [applicationPackageCreateSample.js][applicationpackagecreatesample] | Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json |
| [applicationPackageDeleteSample.js][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json |
| [applicationPackageGetSample.js][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json |
| [applicationPackageListSample.js][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json |
| [applicationUpdateSample.js][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json |
| [batchAccountCreateSample.js][batchaccountcreatesample] | Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json |
| [batchAccountDeleteSample.js][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json |
| [batchAccountGetDetectorSample.js][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json |
| [batchAccountGetKeysSample.js][batchaccountgetkeyssample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json |
| [batchAccountGetSample.js][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json |
| [batchAccountListByResourceGroupSample.js][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json |
| [batchAccountListDetectorsSample.js][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json |
| [batchAccountListOutboundNetworkDependenciesEndpointsSample.js][batchaccountlistoutboundnetworkdependenciesendpointssample] | Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json |
| [batchAccountListSample.js][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json |
| [batchAccountRegenerateKeySample.js][batchaccountregeneratekeysample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json |
| [batchAccountSynchronizeAutoStorageKeysSample.js][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json |
| [batchAccountUpdateSample.js][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json |
| [certificateCancelDeletionSample.js][certificatecanceldeletionsample] | If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. //@@TS-MAGIC-NEWLINE@@ Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json |
| [certificateCreateSample.js][certificatecreatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json |
| [certificateDeleteSample.js][certificatedeletesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json |
| [certificateGetSample.js][certificategetsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json |
| [certificateListByBatchAccountSample.js][certificatelistbybatchaccountsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json |
| [certificateUpdateSample.js][certificateupdatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json |
| [locationCheckNameAvailabilitySample.js][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json |
| [locationGetQuotasSample.js][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json |
| [locationListSupportedCloudServiceSkusSample.js][locationlistsupportedcloudserviceskussample] | Gets the list of Batch supported Cloud Service VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json |
| [locationListSupportedVirtualMachineSkusSample.js][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json |
| [operationsListSample.js][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json |
| [poolCreateSample.js][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json |
| [poolDeleteSample.js][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json |
| [poolDisableAutoScaleSample.js][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json |
| [poolGetSample.js][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json |
| [poolListByBatchAccountSample.js][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json |
| [poolStopResizeSample.js][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json |
| [poolUpdateSample.js][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json |
| [privateEndpointConnectionDeleteSample.js][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json |
| [privateEndpointConnectionGetSample.js][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json |
| [privateEndpointConnectionListByBatchAccountSample.js][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json |
| [privateEndpointConnectionUpdateSample.js][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json |
| [privateLinkResourceGetSample.js][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json |
| [privateLinkResourceListByBatchAccountSample.js][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json |
| [applicationCreateSample.js][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationCreate.json |
| [applicationDeleteSample.js][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationDelete.json |
| [applicationGetSample.js][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationGet.json |
| [applicationListSample.js][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationList.json |
| [applicationPackageActivateSample.js][applicationpackageactivatesample] | Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageActivate.json |
| [applicationPackageCreateSample.js][applicationpackagecreatesample] | Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageCreate.json |
| [applicationPackageDeleteSample.js][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageDelete.json |
| [applicationPackageGetSample.js][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageGet.json |
| [applicationPackageListSample.js][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageList.json |
| [applicationUpdateSample.js][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationUpdate.json |
| [batchAccountCreateSample.js][batchaccountcreatesample] | Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_BYOS.json |
| [batchAccountDeleteSample.js][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountDelete.json |
| [batchAccountGetDetectorSample.js][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/DetectorGet.json |
| [batchAccountGetKeysSample.js][batchaccountgetkeyssample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountGetKeys.json |
| [batchAccountGetSample.js][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountGet.json |
| [batchAccountListByResourceGroupSample.js][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountListByResourceGroup.json |
| [batchAccountListDetectorsSample.js][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/DetectorList.json |
| [batchAccountListOutboundNetworkDependenciesEndpointsSample.js][batchaccountlistoutboundnetworkdependenciesendpointssample] | Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json |
| [batchAccountListSample.js][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountList.json |
| [batchAccountRegenerateKeySample.js][batchaccountregeneratekeysample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountRegenerateKey.json |
| [batchAccountSynchronizeAutoStorageKeysSample.js][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountSynchronizeAutoStorageKeys.json |
| [batchAccountUpdateSample.js][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountUpdate.json |
| [certificateCancelDeletionSample.js][certificatecanceldeletionsample] | If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. //@@TS-MAGIC-NEWLINE@@ Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCancelDeletion.json |
| [certificateCreateSample.js][certificatecreatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCreate_Full.json |
| [certificateDeleteSample.js][certificatedeletesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateDelete.json |
| [certificateGetSample.js][certificategetsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateGet.json |
| [certificateListByBatchAccountSample.js][certificatelistbybatchaccountsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateList.json |
| [certificateUpdateSample.js][certificateupdatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateUpdate.json |
| [locationCheckNameAvailabilitySample.js][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationCheckNameAvailability_AlreadyExists.json |
| [locationGetQuotasSample.js][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationGetQuotas.json |
| [locationListSupportedVirtualMachineSkusSample.js][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationListVirtualMachineSkus.json |
| [networkSecurityPerimeterGetConfigurationSample.js][networksecurityperimetergetconfigurationsample] | Gets information about the specified NSP configuration. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationGet.json |
| [networkSecurityPerimeterListConfigurationsSample.js][networksecurityperimeterlistconfigurationssample] | Lists all of the NSP configurations in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationsList.json |
| [networkSecurityPerimeterReconcileConfigurationSample.js][networksecurityperimeterreconcileconfigurationsample] | Reconciles the specified NSP configuration. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationReconcile.json |
| [operationsListSample.js][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/OperationsList.json |
| [poolCreateSample.js][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_SharedImageGallery.json |
| [poolDeleteSample.js][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolDelete.json |
| [poolDisableAutoScaleSample.js][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolDisableAutoScale.json |
| [poolGetSample.js][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet.json |
| [poolListByBatchAccountSample.js][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolList.json |
| [poolStopResizeSample.js][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolStopResize.json |
| [poolUpdateSample.js][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolUpdate_EnableAutoScale.json |
| [privateEndpointConnectionDeleteSample.js][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionDelete.json |
| [privateEndpointConnectionGetSample.js][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionGet.json |
| [privateEndpointConnectionListByBatchAccountSample.js][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionsList.json |
| [privateEndpointConnectionUpdateSample.js][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionUpdate.json |
| [privateLinkResourceGetSample.js][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateLinkResourceGet.json |
| [privateLinkResourceListByBatchAccountSample.js][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateLinkResourcesList.json |
## Prerequisites
@ -89,52 +91,54 @@ npx cross-env BATCH_SUBSCRIPTION_ID="<batch subscription id>" BATCH_RESOURCE_GRO
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
[applicationcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/applicationCreateSample.js
[applicationdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/applicationDeleteSample.js
[applicationgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/applicationGetSample.js
[applicationlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/applicationListSample.js
[applicationpackageactivatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageActivateSample.js
[applicationpackagecreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageCreateSample.js
[applicationpackagedeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageDeleteSample.js
[applicationpackagegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageGetSample.js
[applicationpackagelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageListSample.js
[applicationupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/applicationUpdateSample.js
[batchaccountcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/batchAccountCreateSample.js
[batchaccountdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/batchAccountDeleteSample.js
[batchaccountgetdetectorsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetDetectorSample.js
[batchaccountgetkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetKeysSample.js
[batchaccountgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetSample.js
[batchaccountlistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListByResourceGroupSample.js
[batchaccountlistdetectorssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListDetectorsSample.js
[batchaccountlistoutboundnetworkdependenciesendpointssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js
[batchaccountlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListSample.js
[batchaccountregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/batchAccountRegenerateKeySample.js
[batchaccountsynchronizeautostoragekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/batchAccountSynchronizeAutoStorageKeysSample.js
[batchaccountupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/batchAccountUpdateSample.js
[certificatecanceldeletionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/certificateCancelDeletionSample.js
[certificatecreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/certificateCreateSample.js
[certificatedeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/certificateDeleteSample.js
[certificategetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/certificateGetSample.js
[certificatelistbybatchaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/certificateListByBatchAccountSample.js
[certificateupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/certificateUpdateSample.js
[locationchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/locationCheckNameAvailabilitySample.js
[locationgetquotassample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/locationGetQuotasSample.js
[locationlistsupportedcloudserviceskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedCloudServiceSkusSample.js
[locationlistsupportedvirtualmachineskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedVirtualMachineSkusSample.js
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/operationsListSample.js
[poolcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/poolCreateSample.js
[pooldeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/poolDeleteSample.js
[pooldisableautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/poolDisableAutoScaleSample.js
[poolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/poolGetSample.js
[poollistbybatchaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/poolListByBatchAccountSample.js
[poolstopresizesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/poolStopResizeSample.js
[poolupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/poolUpdateSample.js
[privateendpointconnectiondeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionDeleteSample.js
[privateendpointconnectiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionGetSample.js
[privateendpointconnectionlistbybatchaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionListByBatchAccountSample.js
[privateendpointconnectionupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionUpdateSample.js
[privatelinkresourcegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceGetSample.js
[privatelinkresourcelistbybatchaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceListByBatchAccountSample.js
[applicationcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/applicationCreateSample.js
[applicationdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/applicationDeleteSample.js
[applicationgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/applicationGetSample.js
[applicationlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/applicationListSample.js
[applicationpackageactivatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/applicationPackageActivateSample.js
[applicationpackagecreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/applicationPackageCreateSample.js
[applicationpackagedeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/applicationPackageDeleteSample.js
[applicationpackagegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/applicationPackageGetSample.js
[applicationpackagelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/applicationPackageListSample.js
[applicationupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/applicationUpdateSample.js
[batchaccountcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/batchAccountCreateSample.js
[batchaccountdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/batchAccountDeleteSample.js
[batchaccountgetdetectorsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/batchAccountGetDetectorSample.js
[batchaccountgetkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/batchAccountGetKeysSample.js
[batchaccountgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/batchAccountGetSample.js
[batchaccountlistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/batchAccountListByResourceGroupSample.js
[batchaccountlistdetectorssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/batchAccountListDetectorsSample.js
[batchaccountlistoutboundnetworkdependenciesendpointssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js
[batchaccountlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/batchAccountListSample.js
[batchaccountregeneratekeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/batchAccountRegenerateKeySample.js
[batchaccountsynchronizeautostoragekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/batchAccountSynchronizeAutoStorageKeysSample.js
[batchaccountupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/batchAccountUpdateSample.js
[certificatecanceldeletionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/certificateCancelDeletionSample.js
[certificatecreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/certificateCreateSample.js
[certificatedeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/certificateDeleteSample.js
[certificategetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/certificateGetSample.js
[certificatelistbybatchaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/certificateListByBatchAccountSample.js
[certificateupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/certificateUpdateSample.js
[locationchecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/locationCheckNameAvailabilitySample.js
[locationgetquotassample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/locationGetQuotasSample.js
[locationlistsupportedvirtualmachineskussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/locationListSupportedVirtualMachineSkusSample.js
[networksecurityperimetergetconfigurationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/networkSecurityPerimeterGetConfigurationSample.js
[networksecurityperimeterlistconfigurationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/networkSecurityPerimeterListConfigurationsSample.js
[networksecurityperimeterreconcileconfigurationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/networkSecurityPerimeterReconcileConfigurationSample.js
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/operationsListSample.js
[poolcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/poolCreateSample.js
[pooldeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/poolDeleteSample.js
[pooldisableautoscalesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/poolDisableAutoScaleSample.js
[poolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/poolGetSample.js
[poollistbybatchaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/poolListByBatchAccountSample.js
[poolstopresizesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/poolStopResizeSample.js
[poolupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/poolUpdateSample.js
[privateendpointconnectiondeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/privateEndpointConnectionDeleteSample.js
[privateendpointconnectiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/privateEndpointConnectionGetSample.js
[privateendpointconnectionlistbybatchaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/privateEndpointConnectionListByBatchAccountSample.js
[privateendpointconnectionupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/privateEndpointConnectionUpdateSample.js
[privatelinkresourcegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/privateLinkResourceGetSample.js
[privatelinkresourcelistbybatchaccountsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/batch/arm-batch/samples/v10/javascript/privateLinkResourceListByBatchAccountSample.js
[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-batch?view=azure-node-preview
[freesub]: https://azure.microsoft.com/free/
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/batch/arm-batch/README.md

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Adds an application to the specified Batch account.
*
* @summary Adds an application to the specified Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationCreate.json
*/
async function applicationCreate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Deletes an application.
*
* @summary Deletes an application.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationDelete.json
*/
async function applicationDelete() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets information about the specified application.
*
* @summary Gets information about the specified application.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationGet.json
*/
async function applicationGet() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Lists all of the applications in the specified account.
*
* @summary Lists all of the applications in the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationList.json
*/
async function applicationList() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
*
* @summary Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageActivate.json
*/
async function applicationPackageActivate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
*
* @summary Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageCreate.json
*/
async function applicationPackageCreate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Deletes an application package record and its associated binary file.
*
* @summary Deletes an application package record and its associated binary file.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageDelete.json
*/
async function applicationPackageDelete() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets information about the specified application package.
*
* @summary Gets information about the specified application package.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageGet.json
*/
async function applicationPackageGet() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Lists all of the application packages in the specified application.
*
* @summary Lists all of the application packages in the specified application.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageList.json
*/
async function applicationPackageList() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Updates settings for the specified application.
*
* @summary Updates settings for the specified application.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationUpdate.json
*/
async function applicationUpdate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
*
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_BYOS.json
*/
async function batchAccountCreateByos() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -48,7 +48,7 @@ async function batchAccountCreateByos() {
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
*
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_Default.json
*/
async function batchAccountCreateDefault() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -75,7 +75,7 @@ async function batchAccountCreateDefault() {
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
*
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
*/
async function batchAccountCreateSystemAssignedIdentity() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -103,7 +103,7 @@ async function batchAccountCreateSystemAssignedIdentity() {
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
*
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_UserAssignedIdentity.json
*/
async function batchAccountCreateUserAssignedIdentity() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -137,7 +137,7 @@ async function batchAccountCreateUserAssignedIdentity() {
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
*
* @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateBatchAccountCreate.json
*/
async function privateBatchAccountCreate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Deletes the specified Batch account.
*
* @summary Deletes the specified Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountDelete.json
*/
async function batchAccountDelete() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets information about the given detector for a given Batch account.
*
* @summary Gets information about the given detector for a given Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/DetectorGet.json
*/
async function getDetector() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
*
* @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountGetKeys.json
*/
async function batchAccountGetKeys() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets information about the specified Batch account.
*
* @summary Gets information about the specified Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountGet.json
*/
async function batchAccountGet() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -32,7 +32,7 @@ async function batchAccountGet() {
* This sample demonstrates how to Gets information about the specified Batch account.
*
* @summary Gets information about the specified Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateBatchAccountGet.json
*/
async function privateBatchAccountGet() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group.
*
* @summary Gets information about the Batch accounts associated with the specified resource group.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountListByResourceGroup.json
*/
async function batchAccountListByResourceGroup() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets information about the detectors available for a given Batch account.
*
* @summary Gets information about the detectors available for a given Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/DetectorList.json
*/
async function listDetectors() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network.
*
* @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json
*/
async function listOutboundNetworkDependencies() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets information about the Batch accounts associated with the subscription.
*
* @summary Gets information about the Batch accounts associated with the subscription.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountList.json
*/
async function batchAccountList() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
*
* @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountRegenerateKey.json
*/
async function batchAccountRegenerateKey() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
*
* @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
*/
async function batchAccountSynchronizeAutoStorageKeys() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Updates the properties of an existing Batch account.
*
* @summary Updates the properties of an existing Batch account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountUpdate.json
*/
async function batchAccountUpdate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -20,7 +20,7 @@ Warning: This operation is deprecated and will be removed after February, 2024.
* @summary If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate.
Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCancelDeletion.json
*/
async function certificateCancelDeletion() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCreate_Full.json
*/
async function createCertificateFull() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -45,7 +45,7 @@ async function createCertificateFull() {
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCreate_MinimalCer.json
*/
async function createCertificateMinimalCer() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -71,7 +71,7 @@ async function createCertificateMinimalCer() {
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCreate_Minimal.json
*/
async function createCertificateMinimalPfx() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateDelete.json
*/
async function certificateDelete() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateGet.json
*/
async function getCertificate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -37,7 +37,7 @@ async function getCertificate() {
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateGetWithDeletionError.json
*/
async function getCertificateWithDeletionError() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateList.json
*/
async function listCertificates() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -38,7 +38,7 @@ async function listCertificates() {
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateListWithFilter.json
*/
async function listCertificatesFilterAndSelect() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
*
* @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateUpdate.json
*/
async function updateCertificate() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
*
* @summary Checks whether the Batch account name is available in the specified region.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationCheckNameAvailability_AlreadyExists.json
*/
async function locationCheckNameAvailabilityAlreadyExists() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -35,7 +35,7 @@ async function locationCheckNameAvailabilityAlreadyExists() {
* This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
*
* @summary Checks whether the Batch account name is available in the specified region.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationCheckNameAvailability_Available.json
*/
async function locationCheckNameAvailabilityAvailable() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location.
*
* @summary Gets the Batch service quotas for the specified subscription at the given location.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationGetQuotas.json
*/
async function locationGetQuotas() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
*
* @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationListVirtualMachineSkus.json
*/
async function locationListVirtualMachineSkus() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -0,0 +1,41 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { BatchManagementClient } = require("@azure/arm-batch");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to Gets information about the specified NSP configuration.
*
* @summary Gets information about the specified NSP configuration.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationGet.json
*/
async function getNspConfiguration() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
const accountName = "sampleacct";
const networkSecurityPerimeterConfigurationName =
"00000000-0000-0000-0000-000000000000.sampleassociation";
const credential = new DefaultAzureCredential();
const client = new BatchManagementClient(credential, subscriptionId);
const result = await client.networkSecurityPerimeterOperations.getConfiguration(
resourceGroupName,
accountName,
networkSecurityPerimeterConfigurationName,
);
console.log(result);
}
async function main() {
getNspConfiguration();
}
main().catch(console.error);

Просмотреть файл

@ -13,25 +13,29 @@ const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location.
* This sample demonstrates how to Lists all of the NSP configurations in the specified account.
*
* @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json
* @summary Lists all of the NSP configurations in the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationsList.json
*/
async function locationListCloudServiceSkus() {
async function listNspConfigurations() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
const locationName = "japaneast";
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
const accountName = "sampleacct";
const credential = new DefaultAzureCredential();
const client = new BatchManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.location.listSupportedCloudServiceSkus(locationName)) {
for await (let item of client.networkSecurityPerimeterOperations.listConfigurations(
resourceGroupName,
accountName,
)) {
resArray.push(item);
}
console.log(resArray);
}
async function main() {
locationListCloudServiceSkus();
listNspConfigurations();
}
main().catch(console.error);

Просмотреть файл

@ -0,0 +1,41 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { BatchManagementClient } = require("@azure/arm-batch");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to Reconciles the specified NSP configuration.
*
* @summary Reconciles the specified NSP configuration.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationReconcile.json
*/
async function reconcileNspConfiguration() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
const accountName = "sampleacct";
const networkSecurityPerimeterConfigurationName =
"00000000-0000-0000-0000-000000000000.sampleassociation";
const credential = new DefaultAzureCredential();
const client = new BatchManagementClient(credential, subscriptionId);
const result = await client.networkSecurityPerimeterOperations.beginReconcileConfigurationAndWait(
resourceGroupName,
accountName,
networkSecurityPerimeterConfigurationName,
);
console.log(result);
}
async function main() {
reconcileNspConfiguration();
}
main().catch(console.error);

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Lists available operations for the Microsoft.Batch provider
*
* @summary Lists available operations for the Microsoft.Batch provider
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/OperationsList.json
*/
async function operationsList() {
const subscriptionId =

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_SharedImageGallery.json
*/
async function createPoolCustomImage() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -49,106 +49,7 @@ async function createPoolCustomImage() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_CloudServiceConfiguration.json
*/
async function createPoolFullCloudServiceConfiguration() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
const accountName = "sampleacct";
const poolName = "testpool";
const parameters = {
applicationLicenses: ["app-license0", "app-license1"],
applicationPackages: [
{
id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234",
version: "asdf",
},
],
certificates: [
{
id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567",
storeLocation: "LocalMachine",
storeName: "MY",
visibility: ["RemoteUser"],
},
],
deploymentConfiguration: {
cloudServiceConfiguration: {
osFamily: "4",
osVersion: "WA-GUEST-OS-4.45_201708-01",
},
},
displayName: "my-pool-name",
interNodeCommunication: "Enabled",
metadata: [
{ name: "metadata-1", value: "value-1" },
{ name: "metadata-2", value: "value-2" },
],
networkConfiguration: {
publicIPAddressConfiguration: {
ipAddressIds: [
"/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135",
"/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268",
],
provision: "UserManaged",
},
subnetId:
"/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123",
},
scaleSettings: {
fixedScale: {
nodeDeallocationOption: "TaskCompletion",
resizeTimeout: "PT8M",
targetDedicatedNodes: 6,
targetLowPriorityNodes: 28,
},
},
startTask: {
commandLine: "cmd /c SET",
environmentSettings: [{ name: "MYSET", value: "1234" }],
maxTaskRetryCount: 6,
resourceFiles: [
{
fileMode: "777",
filePath: "c:\\temp\\gohere",
httpUrl: "https://testaccount.blob.core.windows.net/example-blob-file",
},
],
userIdentity: { autoUser: { elevationLevel: "Admin", scope: "Pool" } },
waitForSuccess: true,
},
taskSchedulingPolicy: { nodeFillType: "Pack" },
taskSlotsPerNode: 13,
userAccounts: [
{
name: "username1",
elevationLevel: "Admin",
linuxUserConfiguration: {
gid: 4567,
sshPrivateKey: "sshprivatekeyvalue",
uid: 1234,
},
password: "<ExamplePassword>",
},
],
vmSize: "STANDARD_D4",
};
const credential = new DefaultAzureCredential();
const client = new BatchManagementClient(credential, subscriptionId);
const result = await client.poolOperations.create(
resourceGroupName,
accountName,
poolName,
parameters,
);
console.log(result);
}
/**
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_VirtualMachineConfiguration.json
*/
async function createPoolFullVirtualMachineConfiguration() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -236,34 +137,7 @@ async function createPoolFullVirtualMachineConfiguration() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json
*/
async function createPoolMinimalCloudServiceConfiguration() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
const accountName = "sampleacct";
const poolName = "testpool";
const parameters = {
deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "5" } },
scaleSettings: { fixedScale: { targetDedicatedNodes: 3 } },
vmSize: "STANDARD_D4",
};
const credential = new DefaultAzureCredential();
const client = new BatchManagementClient(credential, subscriptionId);
const result = await client.poolOperations.create(
resourceGroupName,
accountName,
poolName,
parameters,
);
console.log(result);
}
/**
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
*/
async function createPoolMinimalVirtualMachineConfiguration() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -305,7 +179,7 @@ async function createPoolMinimalVirtualMachineConfiguration() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_NoPublicIPAddresses.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_NoPublicIPAddresses.json
*/
async function createPoolNoPublicIP() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -343,7 +217,7 @@ async function createPoolNoPublicIP() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_PublicIPs.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_PublicIPs.json
*/
async function createPoolPublicIPs() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -386,7 +260,7 @@ async function createPoolPublicIPs() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_ResourceTags.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_ResourceTags.json
*/
async function createPoolResourceTags() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -426,7 +300,7 @@ async function createPoolResourceTags() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SecurityProfile.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_SecurityProfile.json
*/
async function createPoolSecurityProfile() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -470,7 +344,47 @@ async function createPoolSecurityProfile() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UpgradePolicy.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_Tags.json
*/
async function createPoolTags() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
const accountName = "sampleacct";
const poolName = "testpool";
const parameters = {
deploymentConfiguration: {
virtualMachineConfiguration: {
imageReference: {
offer: "0001-com-ubuntu-server-jammy",
publisher: "Canonical",
sku: "22_04-lts",
version: "latest",
},
nodeAgentSkuId: "batch.node.ubuntu 22.04",
},
},
scaleSettings: {
fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 },
},
tags: { tagName1: "TagValue1", tagName2: "TagValue2" },
vmSize: "Standard_d4s_v3",
};
const credential = new DefaultAzureCredential();
const client = new BatchManagementClient(credential, subscriptionId);
const result = await client.poolOperations.create(
resourceGroupName,
accountName,
poolName,
parameters,
);
console.log(result);
}
/**
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_UpgradePolicy.json
*/
async function createPoolUpgradePolicy() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -529,7 +443,7 @@ async function createPoolUpgradePolicy() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UserAssignedIdentities.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_UserAssignedIdentities.json
*/
async function createPoolUserAssignedIdentities() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -580,7 +494,7 @@ async function createPoolUserAssignedIdentities() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json
*/
async function createPoolVirtualMachineConfigurationExtensions() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -636,7 +550,7 @@ async function createPoolVirtualMachineConfigurationExtensions() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json
*/
async function createPoolVirtualMachineConfigurationOSDisk() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -680,7 +594,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json
*/
async function createPoolVirtualMachineConfigurationServiceArtifactReference() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -727,7 +641,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() {
* This sample demonstrates how to Creates a new pool inside the specified account.
*
* @summary Creates a new pool inside the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_AcceleratedNetworking.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_AcceleratedNetworking.json
*/
async function createPoolAcceleratedNetworking() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -769,14 +683,13 @@ async function createPoolAcceleratedNetworking() {
async function main() {
createPoolCustomImage();
createPoolFullCloudServiceConfiguration();
createPoolFullVirtualMachineConfiguration();
createPoolMinimalCloudServiceConfiguration();
createPoolMinimalVirtualMachineConfiguration();
createPoolNoPublicIP();
createPoolPublicIPs();
createPoolResourceTags();
createPoolSecurityProfile();
createPoolTags();
createPoolUpgradePolicy();
createPoolUserAssignedIdentities();
createPoolVirtualMachineConfigurationExtensions();

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Deletes the specified pool.
*
* @summary Deletes the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolDelete.json
*/
async function deletePool() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Disables automatic scaling for a pool.
*
* @summary Disables automatic scaling for a pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolDisableAutoScale.json
*/
async function disableAutoScale() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet.json
*/
async function getPool() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -33,7 +33,7 @@ async function getPool() {
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_AcceleratedNetworking.json
*/
async function getPoolAcceleratedNetworking() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -50,7 +50,7 @@ async function getPoolAcceleratedNetworking() {
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_SecurityProfile.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_SecurityProfile.json
*/
async function getPoolSecurityProfile() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -67,7 +67,7 @@ async function getPoolSecurityProfile() {
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_UpgradePolicy.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_UpgradePolicy.json
*/
async function getPoolUpgradePolicy() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -84,7 +84,7 @@ async function getPoolUpgradePolicy() {
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json
*/
async function getPoolVirtualMachineConfigurationExtensions() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -101,7 +101,7 @@ async function getPoolVirtualMachineConfigurationExtensions() {
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json
*/
async function getPoolVirtualMachineConfigurationOSDisk() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -118,7 +118,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() {
* This sample demonstrates how to Gets information about the specified pool.
*
* @summary Gets information about the specified pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json
*/
async function getPoolVirtualMachineConfigurationServiceArtifactReference() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Lists all of the pools in the specified account.
*
* @summary Lists all of the pools in the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolList.json
*/
async function listPool() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -35,7 +35,7 @@ async function listPool() {
* This sample demonstrates how to Lists all of the pools in the specified account.
*
* @summary Lists all of the pools in the specified account.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolListWithFilter.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolListWithFilter.json
*/
async function listPoolWithFilter() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created.
*
* @summary This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolStopResize.json
*/
async function stopPoolResize() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Updates the properties of an existing pool.
*
* @summary Updates the properties of an existing pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolUpdate_EnableAutoScale.json
*/
async function updatePoolEnableAutoscale() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -41,7 +41,7 @@ async function updatePoolEnableAutoscale() {
* This sample demonstrates how to Updates the properties of an existing pool.
*
* @summary Updates the properties of an existing pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_OtherProperties.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolUpdate_OtherProperties.json
*/
async function updatePoolOtherProperties() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -83,7 +83,7 @@ async function updatePoolOtherProperties() {
* This sample demonstrates how to Updates the properties of an existing pool.
*
* @summary Updates the properties of an existing pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_RemoveStartTask.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolUpdate_RemoveStartTask.json
*/
async function updatePoolRemoveStartTask() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
@ -106,7 +106,7 @@ async function updatePoolRemoveStartTask() {
* This sample demonstrates how to Updates the properties of an existing pool.
*
* @summary Updates the properties of an existing pool.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_ResizePool.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolUpdate_ResizePool.json
*/
async function updatePoolResizePool() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Deletes the specified private endpoint connection.
*
* @summary Deletes the specified private endpoint connection.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionDelete.json
*/
async function privateEndpointConnectionDelete() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Просмотреть файл

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets information about the specified private endpoint connection.
*
* @summary Gets information about the specified private endpoint connection.
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionGet.json
*/
async function getPrivateEndpointConnection() {
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше