ZiWei Chen 2024-11-15 10:19:38 +08:00 коммит произвёл GitHub
Родитель ae05a39d0f
Коммит fedf4aa0c3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
208 изменённых файлов: 6044 добавлений и 412 удалений

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

@ -4912,7 +4912,7 @@ packages:
/ajv-formats@3.0.1:
resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==}
dependencies:
ajv: 8.13.0
ajv: 8.17.1
dev: false
/ajv@6.12.6:
@ -15416,23 +15416,26 @@ packages:
dev: false
file:projects/arm-hybridcompute.tgz:
resolution: {integrity: sha512-cEQb5jxuTRbVMsRDFbH2ZMgGF7YC+dBR1Iw3/+Jkwwzy0zUK97csQJaStktVO7m7n8k7uCODOrU7vdRV0qkOgA==, tarball: file:projects/arm-hybridcompute.tgz}
resolution: {integrity: sha512-+DX7eIMt7WAbn6AD+QZpjVyoMuXdNpGH452FuoUH2UvFhOBtlZD3B5y8bwW/oE8d3E/u2eZ3B4N2cAFV32bgbw==, tarball: file:projects/arm-hybridcompute.tgz}
name: '@rush-temp/arm-hybridcompute'
version: 0.0.0
dependencies:
'@azure-tools/test-credential': 1.3.1
'@azure-tools/test-recorder': 3.5.2
'@azure/core-lro': 2.7.2
'@microsoft/api-extractor': 7.47.11(@types/node@18.19.64)
'@types/chai': 4.3.20
'@types/mocha': 10.0.9
'@types/node': 18.19.64
chai: 4.3.10
cross-env: 7.0.3
dotenv: 16.4.5
mocha: 10.8.2
ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3)
tslib: 2.8.1
tsx: 4.19.2
typescript: 5.6.3
uglify-js: 3.19.3
transitivePeerDependencies:
- '@swc/core'
- '@swc/wasm'

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

@ -1,15 +1,85 @@
# Release History
## 4.0.1 (Unreleased)
## 4.1.0-beta.1 (2024-11-12)
Compared with version 4.0.0
### Features Added
### Breaking Changes
### Bugs Fixed
### Other Changes
- Added operation group Gateways
- Added operation group MachineRunCommands
- Added operation group SettingsOperations
- Added Interface AgentVersion
- Added Interface AgentVersionsList
- Added Interface Disk
- Added Interface ErrorDetailAutoGenerated
- Added Interface ErrorResponseAutoGenerated
- Added Interface FirmwareProfile
- Added Interface Gateway
- Added Interface GatewaysCreateOrUpdateHeaders
- Added Interface GatewaysCreateOrUpdateOptionalParams
- Added Interface GatewaysDeleteHeaders
- Added Interface GatewaysDeleteOptionalParams
- Added Interface GatewaysGetOptionalParams
- Added Interface GatewaysListByResourceGroupNextOptionalParams
- Added Interface GatewaysListByResourceGroupOptionalParams
- Added Interface GatewaysListBySubscriptionNextOptionalParams
- Added Interface GatewaysListBySubscriptionOptionalParams
- Added Interface GatewaysListResult
- Added Interface GatewaysUpdateOptionalParams
- Added Interface GatewayUpdate
- Added Interface HardwareProfile
- Added Interface HybridIdentityMetadata
- Added Interface HybridIdentityMetadataList
- Added Interface MachineRunCommand
- Added Interface MachineRunCommandInstanceView
- Added Interface MachineRunCommandsCreateOrUpdateHeaders
- Added Interface MachineRunCommandsCreateOrUpdateOptionalParams
- Added Interface MachineRunCommandScriptSource
- Added Interface MachineRunCommandsDeleteHeaders
- Added Interface MachineRunCommandsDeleteOptionalParams
- Added Interface MachineRunCommandsGetOptionalParams
- Added Interface MachineRunCommandsListNextOptionalParams
- Added Interface MachineRunCommandsListOptionalParams
- Added Interface MachineRunCommandsListResult
- Added Interface MachineRunCommandUpdate
- Added Interface NetworkConfiguration
- Added Interface Processor
- Added Interface RunCommandInputParameter
- Added Interface RunCommandManagedIdentity
- Added Interface Settings
- Added Interface SettingsGetOptionalParams
- Added Interface SettingsPatchOptionalParams
- Added Interface SettingsUpdateOptionalParams
- Added Interface StorageProfile
- Added Interface TrackedResourceAutoGenerated
- Added Type Alias ExecutionState
- Added Type Alias GatewaysCreateOrUpdateResponse
- Added Type Alias GatewaysDeleteResponse
- Added Type Alias GatewaysGetResponse
- Added Type Alias GatewaysListByResourceGroupNextResponse
- Added Type Alias GatewaysListByResourceGroupResponse
- Added Type Alias GatewaysListBySubscriptionNextResponse
- Added Type Alias GatewaysListBySubscriptionResponse
- Added Type Alias GatewaysUpdateResponse
- Added Type Alias GatewayType
- Added Type Alias MachineRunCommandsCreateOrUpdateResponse
- Added Type Alias MachineRunCommandsDeleteResponse
- Added Type Alias MachineRunCommandsGetResponse
- Added Type Alias MachineRunCommandsListNextResponse
- Added Type Alias MachineRunCommandsListResponse
- Added Type Alias SettingsGetResponse
- Added Type Alias SettingsPatchResponse
- Added Type Alias SettingsUpdateResponse
- Interface Machine has a new optional parameter firmwareProfile
- Interface Machine has a new optional parameter hardwareProfile
- Interface Machine has a new optional parameter storageProfile
- Interface NetworkInterface has a new optional parameter id
- Interface NetworkInterface has a new optional parameter macAddress
- Interface NetworkInterface has a new optional parameter name
- Added Enum KnownExecutionState
- Added Enum KnownGatewayType
## 4.0.0 (2024-10-12)
### Features Added

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

@ -6,7 +6,7 @@ The Hybrid Compute Management Client.
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcompute/arm-hybridcompute) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-hybridcompute) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-hybridcompute) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-hybridcompute?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
## Getting started

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

@ -1,8 +1,8 @@
{
"commit": "15b16d1b5c3cccdecdd1cfe936f6a8005680c557",
"commit": "2d4992bd73955a93f972ba6c476e980e7e16a992",
"readme": "specification/hybridcompute/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\\hybridcompute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.27 --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\\hybridcompute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.28 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.13",
"use": "@autorest/typescript@6.0.27"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.15",
"use": "@autorest/typescript@6.0.28"
}

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

@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/hybridcompute/arm-hybridcompute",
"Tag": "js/hybridcompute/arm-hybridcompute_d121632d82"
"Tag": "js/hybridcompute/arm-hybridcompute_0fd9d119d9"
}

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

@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for HybridComputeManagementClient.",
"version": "4.0.1",
"version": "4.1.0-beta.1",
"engines": {
"node": ">=18.0.0"
},
@ -28,6 +28,7 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-hybridcompute.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"typescript": "~5.6.2",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
@ -89,7 +90,8 @@
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped"
"integration-test:browser": "echo skipped",
"update-snippets": "echo skipped"
},
"sideEffects": false,
"//metadata": {

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

@ -49,6 +49,19 @@ export interface AgentUpgrade {
readonly lastAttemptTimestamp?: Date;
}
// @public
export interface AgentVersion {
agentVersion?: string;
downloadLink?: string;
osType?: string;
}
// @public
export interface AgentVersionsList {
nextLink?: string;
value?: AgentVersion[];
}
// @public
export type ArcKindEnum = string;
@ -91,6 +104,17 @@ export interface ConnectionDetail {
// @public
export type CreatedByType = string;
// @public
export interface Disk {
diskType?: string;
generatedId?: string;
id?: string;
maxSizeInBytes?: number;
name?: string;
path?: string;
usedSpaceInBytes?: number;
}
// @public
export interface ErrorAdditionalInfo {
readonly info?: Record<string, unknown>;
@ -106,11 +130,25 @@ export interface ErrorDetail {
readonly target?: string;
}
// @public
export interface ErrorDetailAutoGenerated {
readonly additionalInfo?: ErrorAdditionalInfo[];
readonly code?: string;
readonly details?: ErrorDetailAutoGenerated[];
readonly message?: string;
readonly target?: string;
}
// @public
export interface ErrorResponse {
error?: ErrorDetail;
}
// @public
export interface ErrorResponseAutoGenerated {
error?: ErrorDetailAutoGenerated;
}
// @public
export type EsuEligibility = string;
@ -126,6 +164,9 @@ export type EsuKeyState = string;
// @public
export type EsuServerType = string;
// @public
export type ExecutionState = string;
// @public
export interface ExtensionMetadata {
get(location: string, publisher: string, extensionType: string, version: string, options?: ExtensionMetadataGetOptionalParams): Promise<ExtensionMetadataGetResponse>;
@ -175,9 +216,131 @@ export interface ExtensionValueListResult {
readonly value?: ExtensionValue[];
}
// @public
export interface FirmwareProfile {
readonly serialNumber?: string;
readonly type?: string;
}
// @public
export interface Gateway extends TrackedResourceAutoGenerated {
allowedFeatures?: string[];
readonly gatewayEndpoint?: string;
readonly gatewayId?: string;
gatewayType?: GatewayType;
readonly provisioningState?: ProvisioningState;
}
// @public
export interface Gateways {
beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, parameters: Gateway, options?: GatewaysCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<GatewaysCreateOrUpdateResponse>, GatewaysCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, gatewayName: string, parameters: Gateway, options?: GatewaysCreateOrUpdateOptionalParams): Promise<GatewaysCreateOrUpdateResponse>;
beginDelete(resourceGroupName: string, gatewayName: string, options?: GatewaysDeleteOptionalParams): Promise<SimplePollerLike<OperationState<GatewaysDeleteResponse>, GatewaysDeleteResponse>>;
beginDeleteAndWait(resourceGroupName: string, gatewayName: string, options?: GatewaysDeleteOptionalParams): Promise<GatewaysDeleteResponse>;
get(resourceGroupName: string, gatewayName: string, options?: GatewaysGetOptionalParams): Promise<GatewaysGetResponse>;
listByResourceGroup(resourceGroupName: string, options?: GatewaysListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Gateway>;
listBySubscription(options?: GatewaysListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Gateway>;
update(resourceGroupName: string, gatewayName: string, parameters: GatewayUpdate, options?: GatewaysUpdateOptionalParams): Promise<GatewaysUpdateResponse>;
}
// @public
export interface GatewaysCreateOrUpdateHeaders {
azureAsyncOperation?: string;
location?: string;
retryAfter?: number;
}
// @public
export interface GatewaysCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}
// @public
export type GatewaysCreateOrUpdateResponse = Gateway;
// @public
export interface GatewaysDeleteHeaders {
azureAsyncOperation?: string;
location?: string;
retryAfter?: number;
}
// @public
export interface GatewaysDeleteOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}
// @public
export type GatewaysDeleteResponse = GatewaysDeleteHeaders;
// @public
export interface GatewaysGetOptionalParams extends coreClient.OperationOptions {
}
// @public
export type GatewaysGetResponse = Gateway;
// @public
export interface GatewaysListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
}
// @public
export type GatewaysListByResourceGroupNextResponse = GatewaysListResult;
// @public
export interface GatewaysListByResourceGroupOptionalParams extends coreClient.OperationOptions {
}
// @public
export type GatewaysListByResourceGroupResponse = GatewaysListResult;
// @public
export interface GatewaysListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
}
// @public
export type GatewaysListBySubscriptionNextResponse = GatewaysListResult;
// @public
export interface GatewaysListBySubscriptionOptionalParams extends coreClient.OperationOptions {
}
// @public
export type GatewaysListBySubscriptionResponse = GatewaysListResult;
// @public
export interface GatewaysListResult {
nextLink?: string;
value: Gateway[];
}
// @public
export interface GatewaysUpdateOptionalParams extends coreClient.OperationOptions {
}
// @public
export type GatewaysUpdateResponse = Gateway;
// @public
export type GatewayType = string;
// @public
export interface GatewayUpdate extends ResourceUpdate {
allowedFeatures?: string[];
}
// @public
export function getContinuationToken(page: unknown): string | undefined;
// @public
export interface HardwareProfile {
readonly numberOfCpuSockets?: number;
readonly processors?: Processor[];
readonly totalPhysicalMemoryInBytes?: number;
}
// @public
export type HotpatchEnablementStatus = string;
@ -193,12 +356,16 @@ export class HybridComputeManagementClient extends coreClient.ServiceClient {
// (undocumented)
extensionMetadata: ExtensionMetadata;
// (undocumented)
gateways: Gateways;
// (undocumented)
licenseProfiles: LicenseProfiles;
// (undocumented)
licenses: Licenses;
// (undocumented)
machineExtensions: MachineExtensions;
// (undocumented)
machineRunCommands: MachineRunCommands;
// (undocumented)
machines: Machines;
// (undocumented)
networkProfileOperations: NetworkProfileOperations;
@ -213,6 +380,8 @@ export class HybridComputeManagementClient extends coreClient.ServiceClient {
// (undocumented)
privateLinkScopes: PrivateLinkScopes;
// (undocumented)
settingsOperations: SettingsOperations;
// (undocumented)
subscriptionId: string;
}
@ -250,6 +419,19 @@ export interface HybridComputePrivateLinkScopeProperties {
publicNetworkAccess?: PublicNetworkAccessType;
}
// @public
export interface HybridIdentityMetadata extends ProxyResourceAutoGenerated {
readonly identity?: Identity;
publicKey?: string;
vmId?: string;
}
// @public
export interface HybridIdentityMetadataList {
nextLink?: string;
value: HybridIdentityMetadata[];
}
// @public
export interface Identity {
readonly principalId?: string;
@ -343,6 +525,22 @@ export enum KnownEsuServerType {
Standard = "Standard"
}
// @public
export enum KnownExecutionState {
Canceled = "Canceled",
Failed = "Failed",
Pending = "Pending",
Running = "Running",
Succeeded = "Succeeded",
TimedOut = "TimedOut",
Unknown = "Unknown"
}
// @public
export enum KnownGatewayType {
Public = "Public"
}
// @public
export enum KnownHotpatchEnablementStatus {
ActionRequired = "ActionRequired",
@ -899,6 +1097,8 @@ export interface Machine extends TrackedResource {
readonly domainName?: string;
readonly errorDetails?: ErrorDetail[];
extensions?: MachineExtensionInstanceView[];
readonly firmwareProfile?: FirmwareProfile;
readonly hardwareProfile?: HardwareProfile;
identity?: Identity;
kind?: ArcKindEnum;
readonly lastStatusChange?: Date;
@ -919,6 +1119,7 @@ export interface Machine extends TrackedResource {
readonly resources?: MachineExtension[];
serviceStatuses?: ServiceStatuses;
readonly status?: StatusTypes;
readonly storageProfile?: StorageProfile;
vmId?: string;
readonly vmUuid?: string;
}
@ -1111,6 +1312,117 @@ export interface MachineListResult {
value: Machine[];
}
// @public
export interface MachineRunCommand extends TrackedResource {
asyncExecution?: boolean;
errorBlobManagedIdentity?: RunCommandManagedIdentity;
errorBlobUri?: string;
readonly instanceView?: MachineRunCommandInstanceView;
outputBlobManagedIdentity?: RunCommandManagedIdentity;
outputBlobUri?: string;
parameters?: RunCommandInputParameter[];
protectedParameters?: RunCommandInputParameter[];
readonly provisioningState?: string;
runAsPassword?: string;
runAsUser?: string;
source?: MachineRunCommandScriptSource;
timeoutInSeconds?: number;
}
// @public
export interface MachineRunCommandInstanceView {
endTime?: Date;
error?: string;
executionMessage?: string;
executionState?: ExecutionState;
exitCode?: number;
output?: string;
startTime?: Date;
statuses?: ExtensionsResourceStatus[];
}
// @public
export interface MachineRunCommands {
beginCreateOrUpdate(resourceGroupName: string, machineName: string, runCommandName: string, runCommandProperties: MachineRunCommand, options?: MachineRunCommandsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<MachineRunCommandsCreateOrUpdateResponse>, MachineRunCommandsCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, machineName: string, runCommandName: string, runCommandProperties: MachineRunCommand, options?: MachineRunCommandsCreateOrUpdateOptionalParams): Promise<MachineRunCommandsCreateOrUpdateResponse>;
beginDelete(resourceGroupName: string, machineName: string, runCommandName: string, options?: MachineRunCommandsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<MachineRunCommandsDeleteResponse>, MachineRunCommandsDeleteResponse>>;
beginDeleteAndWait(resourceGroupName: string, machineName: string, runCommandName: string, options?: MachineRunCommandsDeleteOptionalParams): Promise<MachineRunCommandsDeleteResponse>;
get(resourceGroupName: string, machineName: string, runCommandName: string, options?: MachineRunCommandsGetOptionalParams): Promise<MachineRunCommandsGetResponse>;
list(resourceGroupName: string, machineName: string, options?: MachineRunCommandsListOptionalParams): PagedAsyncIterableIterator<MachineRunCommand>;
}
// @public
export interface MachineRunCommandsCreateOrUpdateHeaders {
azureAsyncOperation?: string;
location?: string;
retryAfter?: number;
}
// @public
export interface MachineRunCommandsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}
// @public
export type MachineRunCommandsCreateOrUpdateResponse = MachineRunCommand;
// @public
export interface MachineRunCommandScriptSource {
commandId?: string;
script?: string;
scriptUri?: string;
scriptUriManagedIdentity?: RunCommandManagedIdentity;
}
// @public
export interface MachineRunCommandsDeleteHeaders {
azureAsyncOperation?: string;
location?: string;
retryAfter?: number;
}
// @public
export interface MachineRunCommandsDeleteOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}
// @public
export type MachineRunCommandsDeleteResponse = MachineRunCommandsDeleteHeaders;
// @public
export interface MachineRunCommandsGetOptionalParams extends coreClient.OperationOptions {
}
// @public
export type MachineRunCommandsGetResponse = MachineRunCommand;
// @public
export interface MachineRunCommandsListNextOptionalParams extends coreClient.OperationOptions {
}
// @public
export type MachineRunCommandsListNextResponse = MachineRunCommandsListResult;
// @public
export interface MachineRunCommandsListOptionalParams extends coreClient.OperationOptions {
expand?: string;
}
// @public
export type MachineRunCommandsListResponse = MachineRunCommandsListResult;
// @public
export interface MachineRunCommandsListResult {
nextLink?: string;
value?: MachineRunCommand[];
}
// @public
export interface MachineRunCommandUpdate extends ResourceUpdate {
}
// @public
export interface Machines {
beginAssessPatches(resourceGroupName: string, name: string, options?: MachinesAssessPatchesOptionalParams): Promise<SimplePollerLike<OperationState<MachinesAssessPatchesResponse>, MachinesAssessPatchesResponse>>;
@ -1204,9 +1516,21 @@ export interface MachineUpdate extends ResourceUpdate {
privateLinkScopeResourceId?: string;
}
// @public (undocumented)
export interface NetworkConfiguration extends ProxyResourceAutoGenerated {
readonly keyProperties?: KeyProperties;
location?: string;
networkConfigurationScopeId?: string;
networkConfigurationScopeResourceId?: string;
readonly tenantId?: string;
}
// @public
export interface NetworkInterface {
id?: string;
ipAddresses?: IpAddress[];
macAddress?: string;
name?: string;
}
// @public
@ -1631,6 +1955,12 @@ export interface PrivateLinkServiceConnectionStateProperty {
status: string;
}
// @public
export interface Processor {
readonly name?: string;
readonly numberOfCores?: number;
}
// @public
export interface ProductFeature {
readonly billingEndDate?: Date;
@ -1710,6 +2040,18 @@ export interface ResourceUpdate {
};
}
// @public
export interface RunCommandInputParameter {
name: string;
value: string;
}
// @public
export interface RunCommandManagedIdentity {
clientId?: string;
objectId?: string;
}
// @public
export interface ServiceStatus {
startupType?: string;
@ -1722,12 +2064,51 @@ export interface ServiceStatuses {
guestConfigurationService?: ServiceStatus;
}
// @public (undocumented)
export interface Settings extends ProxyResourceAutoGenerated {
gatewayResourceId?: string;
readonly tenantId?: string;
}
// @public
export interface SettingsGetOptionalParams extends coreClient.OperationOptions {
}
// @public
export type SettingsGetResponse = Settings;
// @public
export interface SettingsOperations {
get(resourceGroupName: string, baseProvider: string, baseResourceType: string, baseResourceName: string, settingsResourceName: string, options?: SettingsGetOptionalParams): Promise<SettingsGetResponse>;
patch(resourceGroupName: string, baseProvider: string, baseResourceType: string, baseResourceName: string, settingsResourceName: string, parameters: Settings, options?: SettingsPatchOptionalParams): Promise<SettingsPatchResponse>;
update(resourceGroupName: string, baseProvider: string, baseResourceType: string, baseResourceName: string, settingsResourceName: string, parameters: Settings, options?: SettingsUpdateOptionalParams): Promise<SettingsUpdateResponse>;
}
// @public
export interface SettingsPatchOptionalParams extends coreClient.OperationOptions {
}
// @public
export type SettingsPatchResponse = Settings;
// @public
export interface SettingsUpdateOptionalParams extends coreClient.OperationOptions {
}
// @public
export type SettingsUpdateResponse = Settings;
// @public
export type StatusLevelTypes = string;
// @public
export type StatusTypes = string;
// @public
export interface StorageProfile {
disks?: Disk[];
}
// @public
export interface Subnet {
addressPrefix?: string;
@ -1758,6 +2139,14 @@ export interface TrackedResource extends Resource {
};
}
// @public
export interface TrackedResourceAutoGenerated extends ResourceAutoGenerated {
location: string;
tags?: {
[propertyName: string]: string;
};
}
// @public
export interface UpgradeExtensionsOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;

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

@ -1,4 +1 @@
# App registration secret for AAD authentication
AZURE_CLIENT_SECRET=
AZURE_CLIENT_ID=
AZURE_TENANT_ID=
# Feel free to add your own environment variables.

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets an Extension Metadata based on location, publisher, extensionType and version
*
* @summary Gets an Extension Metadata based on location, publisher, extensionType and version
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_Get.json
*/
async function getAnExtensionsMetadata() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets all Extension versions based on location, publisher, extensionType
*
* @summary Gets all Extension versions based on location, publisher, extensionType
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_List.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_List.json
*/
async function getAListOfExtensions() {
const subscriptionId =

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

@ -0,0 +1,52 @@
/*
* 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 {
Gateway,
HybridComputeManagementClient,
} from "@azure/arm-hybridcompute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to The operation to create or update a gateway.
*
* @summary The operation to create or update a gateway.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_CreateOrUpdate.json
*/
async function createOrUpdateAGateway() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] ||
"ffd506c8-3415-42d3-9612-fdb423fb17df";
const resourceGroupName =
process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const gatewayName = "{gatewayName}";
const parameters: Gateway = {
allowedFeatures: ["*"],
gatewayType: "Public",
location: "eastus2euap",
};
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.gateways.beginCreateOrUpdateAndWait(
resourceGroupName,
gatewayName,
parameters,
);
console.log(result);
}
async function main() {
createOrUpdateAGateway();
}
main().catch(console.error);

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

@ -0,0 +1,43 @@
/*
* 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 { HybridComputeManagementClient } from "@azure/arm-hybridcompute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to The operation to delete a gateway.
*
* @summary The operation to delete a gateway.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Delete.json
*/
async function deleteAGateway() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] ||
"ffd506c8-3415-42d3-9612-fdb423fb17df";
const resourceGroupName =
process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const gatewayName = "{gatewayName}";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.gateways.beginDeleteAndWait(
resourceGroupName,
gatewayName,
);
console.log(result);
}
async function main() {
deleteAGateway();
}
main().catch(console.error);

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

@ -0,0 +1,40 @@
/*
* 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 { HybridComputeManagementClient } from "@azure/arm-hybridcompute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Retrieves information about the view of a gateway.
*
* @summary Retrieves information about the view of a gateway.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Get.json
*/
async function getGateway() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] ||
"ffd506c8-3415-42d3-9612-fdb423fb17df";
const resourceGroupName =
process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const gatewayName = "{gatewayName}";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.gateways.get(resourceGroupName, gatewayName);
console.log(result);
}
async function main() {
getGateway();
}
main().catch(console.error);

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

@ -0,0 +1,44 @@
/*
* 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 { HybridComputeManagementClient } from "@azure/arm-hybridcompute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to The operation to get all gateways of a non-Azure machine
*
* @summary The operation to get all gateways of a non-Azure machine
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListByResourceGroup.json
*/
async function listGatewaysByResourceGroup() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] ||
"ffd506c8-3415-42d3-9612-fdb423fb17df";
const resourceGroupName =
process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.gateways.listByResourceGroup(
resourceGroupName,
)) {
resArray.push(item);
}
console.log(resArray);
}
async function main() {
listGatewaysByResourceGroup();
}
main().catch(console.error);

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

@ -0,0 +1,40 @@
/*
* 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 { HybridComputeManagementClient } from "@azure/arm-hybridcompute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to The operation to get all gateways of a non-Azure machine
*
* @summary The operation to get all gateways of a non-Azure machine
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListBySubscription.json
*/
async function listGatewaysBySubscription() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] ||
"ffd506c8-3415-42d3-9612-fdb423fb17df";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.gateways.listBySubscription()) {
resArray.push(item);
}
console.log(resArray);
}
async function main() {
listGatewaysBySubscription();
}
main().catch(console.error);

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

@ -0,0 +1,48 @@
/*
* 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 {
GatewayUpdate,
HybridComputeManagementClient,
} from "@azure/arm-hybridcompute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to The operation to update a gateway.
*
* @summary The operation to update a gateway.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Update.json
*/
async function updateAGateway() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] ||
"ffd506c8-3415-42d3-9612-fdb423fb17df";
const resourceGroupName =
process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const gatewayName = "{gatewayName}";
const parameters: GatewayUpdate = { allowedFeatures: ["*"] };
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.gateways.update(
resourceGroupName,
gatewayName,
parameters,
);
console.log(result);
}
async function main() {
updateAGateway();
}
main().catch(console.error);

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

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to The operation to create or update a license profile.
*
* @summary The operation to create or update a license profile.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json
*/
async function createOrUpdateALicenseProfile() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to The operation to delete a license profile.
*
* @summary The operation to delete a license profile.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Delete.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Delete.json
*/
async function deleteALicenseProfile() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Retrieves information about the view of a license profile.
*
* @summary Retrieves information about the view of a license profile.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Get.json
*/
async function getLicenseProfile() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to The operation to get all license profiles of a non-Azure machine
*
* @summary The operation to get all license profiles of a non-Azure machine
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_List.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_List.json
*/
async function listAllLicenseProfiles() {
const subscriptionId =

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

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to The operation to update a license profile.
*
* @summary The operation to update a license profile.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Update.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Update.json
*/
async function updateALicenseProfile() {
const subscriptionId =

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

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to The operation to create or update a license.
*
* @summary The operation to create or update a license.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_CreateOrUpdate.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_CreateOrUpdate.json
*/
async function createOrUpdateALicense() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to The operation to delete a license.
*
* @summary The operation to delete a license.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Delete.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Delete.json
*/
async function deleteALicense() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Retrieves information about the view of a license.
*
* @summary Retrieves information about the view of a license.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Get.json
*/
async function getLicense() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to The operation to get all licenses of a non-Azure machine
*
* @summary The operation to get all licenses of a non-Azure machine
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListByResourceGroup.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListByResourceGroup.json
*/
async function getAllMachineExtensions() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to The operation to get all licenses of a non-Azure machine
*
* @summary The operation to get all licenses of a non-Azure machine
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListBySubscription.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListBySubscription.json
*/
async function listLicensesBySubscription() {
const subscriptionId =

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

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to The operation to update a license.
*
* @summary The operation to update a license.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Update.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Update.json
*/
async function updateALicense() {
const subscriptionId =

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

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to The operation to validate a license.
*
* @summary The operation to validate a license.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ValidateLicense.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ValidateLicense.json
*/
async function validateALicense() {
const subscriptionId =

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

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to The operation to create or update the extension.
*
* @summary The operation to create or update the extension.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_CreateOrUpdate.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_CreateOrUpdate.json
*/
async function createOrUpdateAMachineExtension() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to The operation to delete the extension.
*
* @summary The operation to delete the extension.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Delete.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Delete.json
*/
async function deleteAMachineExtension() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to The operation to get the extension.
*
* @summary The operation to get the extension.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Get.json
*/
async function getMachineExtension() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to The operation to get all extensions of a non-Azure machine
*
* @summary The operation to get all extensions of a non-Azure machine
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_List.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_List.json
*/
async function getAllMachineExtensionsList() {
const subscriptionId =

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

@ -18,10 +18,10 @@ import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to The operation to update the extension.
* This sample demonstrates how to The operation to create or update the extension.
*
* @summary The operation to update the extension.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Update.json
* @summary The operation to create or update the extension.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Update.json
*/
async function createOrUpdateAMachineExtension() {
const subscriptionId =

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

@ -0,0 +1,64 @@
/*
* 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 {
MachineRunCommand,
HybridComputeManagementClient,
} from "@azure/arm-hybridcompute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to The operation to create or update a run command.
*
* @summary The operation to create or update a run command.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_CreateOrUpdate.json
*/
async function createOrUpdateARunCommand() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
const resourceGroupName =
process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const machineName = "myMachine";
const runCommandName = "myRunCommand";
const runCommandProperties: MachineRunCommand = {
asyncExecution: false,
errorBlobUri:
"https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt",
location: "eastus2",
outputBlobUri:
"https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt",
parameters: [
{ name: "param1", value: "value1" },
{ name: "param2", value: "value2" },
],
runAsPassword: "<runAsPassword>",
runAsUser: "user1",
source: { script: "Write-Host Hello World!" },
timeoutInSeconds: 3600,
};
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.machineRunCommands.beginCreateOrUpdateAndWait(
resourceGroupName,
machineName,
runCommandName,
runCommandProperties,
);
console.log(result);
}
async function main() {
createOrUpdateARunCommand();
}
main().catch(console.error);

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

@ -0,0 +1,44 @@
/*
* 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 { HybridComputeManagementClient } from "@azure/arm-hybridcompute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to The operation to delete a run command.
*
* @summary The operation to delete a run command.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Delete.json
*/
async function deleteAMachineRunCommand() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
const resourceGroupName =
process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const machineName = "myMachine";
const runCommandName = "myRunCommand";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.machineRunCommands.beginDeleteAndWait(
resourceGroupName,
machineName,
runCommandName,
);
console.log(result);
}
async function main() {
deleteAMachineRunCommand();
}
main().catch(console.error);

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

@ -0,0 +1,44 @@
/*
* 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 { HybridComputeManagementClient } from "@azure/arm-hybridcompute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to The operation to get a run command.
*
* @summary The operation to get a run command.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Get.json
*/
async function getARunCommand() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
const resourceGroupName =
process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const machineName = "myMachine";
const runCommandName = "myRunCommand";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.machineRunCommands.get(
resourceGroupName,
machineName,
runCommandName,
);
console.log(result);
}
async function main() {
getARunCommand();
}
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 { HybridComputeManagementClient } from "@azure/arm-hybridcompute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to The operation to get all the run commands of a non-Azure machine.
*
* @summary The operation to get all the run commands of a non-Azure machine.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_List.json
*/
async function getAllMachineRunCommands() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
const resourceGroupName =
process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const machineName = "myMachine";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.machineRunCommands.list(
resourceGroupName,
machineName,
)) {
resArray.push(item);
}
console.log(resArray);
}
async function main() {
getAllMachineRunCommands();
}
main().catch(console.error);

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to The operation to assess patches on a hybrid machine identity in Azure.
*
* @summary The operation to assess patches on a hybrid machine identity in Azure.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_AssessPatches.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_AssessPatches.json
*/
async function assessPatchStateOfAMachine() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to The operation to delete a hybrid machine.
*
* @summary The operation to delete a hybrid machine.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Delete.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Delete.json
*/
async function deleteAMachine() {
const subscriptionId =

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

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Retrieves information about the model view or the instance view of a hybrid machine.
*
* @summary Retrieves information about the model view or the instance view of a hybrid machine.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get.json
*/
async function getMachine() {
const subscriptionId =
@ -39,7 +39,7 @@ async function getMachine() {
* This sample demonstrates how to Retrieves information about the model view or the instance view of a hybrid machine.
*
* @summary Retrieves information about the model view or the instance view of a hybrid machine.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get_LicenseProfileInstanceView.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json
*/
async function getMachineWithLicenseProfileInstanceView() {
const subscriptionId =

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

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to The operation to install patches on a hybrid machine identity in Azure.
*
* @summary The operation to install patches on a hybrid machine identity in Azure.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_InstallPatches.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_InstallPatches.json
*/
async function installPatchStateOfAMachine() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.
*
* @summary Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListByResourceGroup.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListByResourceGroup.json
*/
async function listMachinesByResourceGroup() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.
*
* @summary Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListBySubscription.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListBySubscription.json
*/
async function listMachinesByResourceGroup() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to The operation to get network information of hybrid machine
*
* @summary The operation to get network information of hybrid machine
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/NetworkProfile_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/NetworkProfile_Get.json
*/
async function getNetworkProfile() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets the network security perimeter configuration for a private link scope.
*
* @summary Gets the network security perimeter configuration for a private link scope.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json
*/
async function getsTheNetworkSecurityPerimeterConfigurationOfThePrivateLinkScope() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists the network security perimeter configurations for a private link scope.
*
* @summary Lists the network security perimeter configurations for a private link scope.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json
*/
async function getsTheListOfNetworkSecurityPerimeterConfigurationsOfThePrivateLinkScope() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Forces the network security perimeter configuration to refresh for a private link scope.
*
* @summary Forces the network security perimeter configuration to refresh for a private link scope.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json
*/
async function reconcilesTheNetworkSecurityPerimeterConfigurationOfThePrivateLinkScope() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets a list of hybrid compute operations.
*
* @summary Gets a list of hybrid compute operations.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/Operations_List.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/Operations_List.json
*/
async function listHybridComputeProviderOperations() {
const subscriptionId =

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

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Approve or reject a private endpoint connection with a given name.
*
* @summary Approve or reject a private endpoint connection with a given name.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Update.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Update.json
*/
async function approveOrRejectAPrivateEndpointConnectionWithAGivenName() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Deletes a private endpoint connection with a given name.
*
* @summary Deletes a private endpoint connection with a given name.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Delete.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Delete.json
*/
async function deletesAPrivateEndpointConnectionWithAGivenName() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets a private endpoint connection.
*
* @summary Gets a private endpoint connection.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Get.json
*/
async function getsPrivateEndpointConnection() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets all private endpoint connections on a private link scope.
*
* @summary Gets all private endpoint connections on a private link scope.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_List.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_List.json
*/
async function getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
*
* @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json
*/
async function getsPrivateEndpointConnection() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
*
* @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json
*/
async function getsPrivateEndpointConnection() {
const subscriptionId =

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

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
*
* @summary Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Create.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Create.json
*/
async function privateLinkScopeCreate() {
const subscriptionId =
@ -45,7 +45,7 @@ async function privateLinkScopeCreate() {
* This sample demonstrates how to Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
*
* @summary Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Update.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Update.json
*/
async function privateLinkScopeUpdate() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Deletes a Azure Arc PrivateLinkScope.
*
* @summary Deletes a Azure Arc PrivateLinkScope.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Delete.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Delete.json
*/
async function privateLinkScopesDelete() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Returns a Azure Arc PrivateLinkScope.
*
* @summary Returns a Azure Arc PrivateLinkScope.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Get.json
*/
async function privateLinkScopeGet() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Returns a Azure Arc PrivateLinkScope's validation details for a given machine.
*
* @summary Returns a Azure Arc PrivateLinkScope's validation details for a given machine.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json
*/
async function privateLinkScopeGet() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Returns a Azure Arc PrivateLinkScope's validation details.
*
* @summary Returns a Azure Arc PrivateLinkScope's validation details.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json
*/
async function privateLinkScopeGet() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets a list of Azure Arc PrivateLinkScopes within a resource group.
*
* @summary Gets a list of Azure Arc PrivateLinkScopes within a resource group.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json
*/
async function privateLinkScopeListByResourceGroup() {
const subscriptionId =

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

@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets a list of all Azure Arc PrivateLinkScopes within a subscription.
*
* @summary Gets a list of all Azure Arc PrivateLinkScopes within a subscription.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_List.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_List.json
*/
async function privateLinkScopesListJson() {
const subscriptionId =

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

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
*
* @summary Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json
*/
async function privateLinkScopeUpdateTagsOnly() {
const subscriptionId =

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

@ -0,0 +1,49 @@
/*
* 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 { HybridComputeManagementClient } from "@azure/arm-hybridcompute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Returns the base Settings for the target resource.
*
* @summary Returns the base Settings for the target resource.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsGet.json
*/
async function networkConfigurationsGet() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] ||
"00000000-1111-2222-3333-444444444444";
const resourceGroupName =
process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "hybridRG";
const baseProvider = "Microsoft.HybridCompute";
const baseResourceType = "machines";
const baseResourceName = "testMachine";
const settingsResourceName = "default";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.settingsOperations.get(
resourceGroupName,
baseProvider,
baseResourceType,
baseResourceName,
settingsResourceName,
);
console.log(result);
}
async function main() {
networkConfigurationsGet();
}
main().catch(console.error);

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

@ -0,0 +1,57 @@
/*
* 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 {
Settings,
HybridComputeManagementClient,
} from "@azure/arm-hybridcompute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Update the base Settings of the target resource.
*
* @summary Update the base Settings of the target resource.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsPatch.json
*/
async function networkConfigurationsPatch() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] ||
"00000000-1111-2222-3333-444444444444";
const resourceGroupName =
process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "hybridRG";
const baseProvider = "Microsoft.HybridCompute";
const baseResourceType = "machines";
const baseResourceName = "testMachine";
const settingsResourceName = "default";
const parameters: Settings = {
gatewayResourceId:
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway",
};
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.settingsOperations.patch(
resourceGroupName,
baseProvider,
baseResourceType,
baseResourceName,
settingsResourceName,
parameters,
);
console.log(result);
}
async function main() {
networkConfigurationsPatch();
}
main().catch(console.error);

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

@ -0,0 +1,57 @@
/*
* 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 {
Settings,
HybridComputeManagementClient,
} from "@azure/arm-hybridcompute";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";
dotenv.config();
/**
* This sample demonstrates how to Updates the base Settings of the target resource.
*
* @summary Updates the base Settings of the target resource.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsUpdate.json
*/
async function settingsUpdate() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] ||
"00000000-1111-2222-3333-444444444444";
const resourceGroupName =
process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "hybridRG";
const baseProvider = "Microsoft.HybridCompute";
const baseResourceType = "machines";
const baseResourceName = "testMachine";
const settingsResourceName = "default";
const parameters: Settings = {
gatewayResourceId:
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway",
};
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.settingsOperations.update(
resourceGroupName,
baseProvider,
baseResourceType,
baseResourceName,
settingsResourceName,
parameters,
);
console.log(result);
}
async function main() {
settingsUpdate();
}
main().catch(console.error);

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

@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to The operation to Upgrade Machine Extensions.
*
* @summary The operation to Upgrade Machine Extensions.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extensions_Upgrade.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extensions_Upgrade.json
*/
async function upgradeMachineExtensions() {
const subscriptionId =

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

@ -1,54 +1,67 @@
# client library samples for JavaScript
# client library samples for JavaScript (Beta)
These sample programs show how to use the JavaScript client libraries for in some common scenarios.
| **File Name** | **Description** |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [extensionMetadataGetSample.js][extensionmetadatagetsample] | Gets an Extension Metadata based on location, publisher, extensionType and version x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_Get.json |
| [extensionMetadataListSample.js][extensionmetadatalistsample] | Gets all Extension versions based on location, publisher, extensionType x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_List.json |
| [licenseProfilesCreateOrUpdateSample.js][licenseprofilescreateorupdatesample] | The operation to create or update a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json |
| [licenseProfilesDeleteSample.js][licenseprofilesdeletesample] | The operation to delete a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Delete.json |
| [licenseProfilesGetSample.js][licenseprofilesgetsample] | Retrieves information about the view of a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Get.json |
| [licenseProfilesListSample.js][licenseprofileslistsample] | The operation to get all license profiles of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_List.json |
| [licenseProfilesUpdateSample.js][licenseprofilesupdatesample] | The operation to update a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Update.json |
| [licensesCreateOrUpdateSample.js][licensescreateorupdatesample] | The operation to create or update a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_CreateOrUpdate.json |
| [licensesDeleteSample.js][licensesdeletesample] | The operation to delete a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Delete.json |
| [licensesGetSample.js][licensesgetsample] | Retrieves information about the view of a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Get.json |
| [licensesListByResourceGroupSample.js][licenseslistbyresourcegroupsample] | The operation to get all licenses of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListByResourceGroup.json |
| [licensesListBySubscriptionSample.js][licenseslistbysubscriptionsample] | The operation to get all licenses of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListBySubscription.json |
| [licensesUpdateSample.js][licensesupdatesample] | The operation to update a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Update.json |
| [licensesValidateLicenseSample.js][licensesvalidatelicensesample] | The operation to validate a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ValidateLicense.json |
| [machineExtensionsCreateOrUpdateSample.js][machineextensionscreateorupdatesample] | The operation to create or update the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_CreateOrUpdate.json |
| [machineExtensionsDeleteSample.js][machineextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Delete.json |
| [machineExtensionsGetSample.js][machineextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Get.json |
| [machineExtensionsListSample.js][machineextensionslistsample] | The operation to get all extensions of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_List.json |
| [machineExtensionsUpdateSample.js][machineextensionsupdatesample] | The operation to update the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Update.json |
| [machinesAssessPatchesSample.js][machinesassesspatchessample] | The operation to assess patches on a hybrid machine identity in Azure. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_AssessPatches.json |
| [machinesDeleteSample.js][machinesdeletesample] | The operation to delete a hybrid machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Delete.json |
| [machinesGetSample.js][machinesgetsample] | Retrieves information about the model view or the instance view of a hybrid machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get.json |
| [machinesInstallPatchesSample.js][machinesinstallpatchessample] | The operation to install patches on a hybrid machine identity in Azure. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_InstallPatches.json |
| [machinesListByResourceGroupSample.js][machineslistbyresourcegroupsample] | Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListByResourceGroup.json |
| [machinesListBySubscriptionSample.js][machineslistbysubscriptionsample] | Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListBySubscription.json |
| [networkProfileGetSample.js][networkprofilegetsample] | The operation to get network information of hybrid machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/NetworkProfile_Get.json |
| [networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js][networksecurityperimeterconfigurationsgetbyprivatelinkscopesample] | Gets the network security perimeter configuration for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json |
| [networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js][networksecurityperimeterconfigurationslistbyprivatelinkscopesample] | Lists the network security perimeter configurations for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json |
| [networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js][networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample] | Forces the network security perimeter configuration to refresh for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json |
| [operationsListSample.js][operationslistsample] | Gets a list of hybrid compute operations. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/Operations_List.json |
| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Update.json |
| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Delete.json |
| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets a private endpoint connection. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Get.json |
| [privateEndpointConnectionsListByPrivateLinkScopeSample.js][privateendpointconnectionslistbyprivatelinkscopesample] | Gets all private endpoint connections on a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_List.json |
| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json |
| [privateLinkResourcesListByPrivateLinkScopeSample.js][privatelinkresourceslistbyprivatelinkscopesample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json |
| [privateLinkScopesCreateOrUpdateSample.js][privatelinkscopescreateorupdatesample] | Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Create.json |
| [privateLinkScopesDeleteSample.js][privatelinkscopesdeletesample] | Deletes a Azure Arc PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Delete.json |
| [privateLinkScopesGetSample.js][privatelinkscopesgetsample] | Returns a Azure Arc PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Get.json |
| [privateLinkScopesGetValidationDetailsForMachineSample.js][privatelinkscopesgetvalidationdetailsformachinesample] | Returns a Azure Arc PrivateLinkScope's validation details for a given machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json |
| [privateLinkScopesGetValidationDetailsSample.js][privatelinkscopesgetvalidationdetailssample] | Returns a Azure Arc PrivateLinkScope's validation details. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json |
| [privateLinkScopesListByResourceGroupSample.js][privatelinkscopeslistbyresourcegroupsample] | Gets a list of Azure Arc PrivateLinkScopes within a resource group. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json |
| [privateLinkScopesListSample.js][privatelinkscopeslistsample] | Gets a list of all Azure Arc PrivateLinkScopes within a subscription. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_List.json |
| [privateLinkScopesUpdateTagsSample.js][privatelinkscopesupdatetagssample] | Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json |
| [upgradeExtensionsSample.js][upgradeextensionssample] | The operation to Upgrade Machine Extensions. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extensions_Upgrade.json |
| **File Name** | **Description** |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [extensionMetadataGetSample.js][extensionmetadatagetsample] | Gets an Extension Metadata based on location, publisher, extensionType and version x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_Get.json |
| [extensionMetadataListSample.js][extensionmetadatalistsample] | Gets all Extension versions based on location, publisher, extensionType x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_List.json |
| [gatewaysCreateOrUpdateSample.js][gatewayscreateorupdatesample] | The operation to create or update a gateway. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_CreateOrUpdate.json |
| [gatewaysDeleteSample.js][gatewaysdeletesample] | The operation to delete a gateway. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Delete.json |
| [gatewaysGetSample.js][gatewaysgetsample] | Retrieves information about the view of a gateway. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Get.json |
| [gatewaysListByResourceGroupSample.js][gatewayslistbyresourcegroupsample] | The operation to get all gateways of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListByResourceGroup.json |
| [gatewaysListBySubscriptionSample.js][gatewayslistbysubscriptionsample] | The operation to get all gateways of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListBySubscription.json |
| [gatewaysUpdateSample.js][gatewaysupdatesample] | The operation to update a gateway. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Update.json |
| [licenseProfilesCreateOrUpdateSample.js][licenseprofilescreateorupdatesample] | The operation to create or update a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json |
| [licenseProfilesDeleteSample.js][licenseprofilesdeletesample] | The operation to delete a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Delete.json |
| [licenseProfilesGetSample.js][licenseprofilesgetsample] | Retrieves information about the view of a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Get.json |
| [licenseProfilesListSample.js][licenseprofileslistsample] | The operation to get all license profiles of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_List.json |
| [licenseProfilesUpdateSample.js][licenseprofilesupdatesample] | The operation to update a license profile. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Update.json |
| [licensesCreateOrUpdateSample.js][licensescreateorupdatesample] | The operation to create or update a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_CreateOrUpdate.json |
| [licensesDeleteSample.js][licensesdeletesample] | The operation to delete a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Delete.json |
| [licensesGetSample.js][licensesgetsample] | Retrieves information about the view of a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Get.json |
| [licensesListByResourceGroupSample.js][licenseslistbyresourcegroupsample] | The operation to get all licenses of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListByResourceGroup.json |
| [licensesListBySubscriptionSample.js][licenseslistbysubscriptionsample] | The operation to get all licenses of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListBySubscription.json |
| [licensesUpdateSample.js][licensesupdatesample] | The operation to update a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Update.json |
| [licensesValidateLicenseSample.js][licensesvalidatelicensesample] | The operation to validate a license. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ValidateLicense.json |
| [machineExtensionsCreateOrUpdateSample.js][machineextensionscreateorupdatesample] | The operation to create or update the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_CreateOrUpdate.json |
| [machineExtensionsDeleteSample.js][machineextensionsdeletesample] | The operation to delete the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Delete.json |
| [machineExtensionsGetSample.js][machineextensionsgetsample] | The operation to get the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Get.json |
| [machineExtensionsListSample.js][machineextensionslistsample] | The operation to get all extensions of a non-Azure machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_List.json |
| [machineExtensionsUpdateSample.js][machineextensionsupdatesample] | The operation to create or update the extension. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Update.json |
| [machineRunCommandsCreateOrUpdateSample.js][machineruncommandscreateorupdatesample] | The operation to create or update a run command. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_CreateOrUpdate.json |
| [machineRunCommandsDeleteSample.js][machineruncommandsdeletesample] | The operation to delete a run command. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Delete.json |
| [machineRunCommandsGetSample.js][machineruncommandsgetsample] | The operation to get a run command. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Get.json |
| [machineRunCommandsListSample.js][machineruncommandslistsample] | The operation to get all the run commands of a non-Azure machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_List.json |
| [machinesAssessPatchesSample.js][machinesassesspatchessample] | The operation to assess patches on a hybrid machine identity in Azure. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_AssessPatches.json |
| [machinesDeleteSample.js][machinesdeletesample] | The operation to delete a hybrid machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Delete.json |
| [machinesGetSample.js][machinesgetsample] | Retrieves information about the model view or the instance view of a hybrid machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get.json |
| [machinesInstallPatchesSample.js][machinesinstallpatchessample] | The operation to install patches on a hybrid machine identity in Azure. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_InstallPatches.json |
| [machinesListByResourceGroupSample.js][machineslistbyresourcegroupsample] | Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListByResourceGroup.json |
| [machinesListBySubscriptionSample.js][machineslistbysubscriptionsample] | Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListBySubscription.json |
| [networkProfileGetSample.js][networkprofilegetsample] | The operation to get network information of hybrid machine x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/NetworkProfile_Get.json |
| [networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js][networksecurityperimeterconfigurationsgetbyprivatelinkscopesample] | Gets the network security perimeter configuration for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json |
| [networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js][networksecurityperimeterconfigurationslistbyprivatelinkscopesample] | Lists the network security perimeter configurations for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json |
| [networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js][networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample] | Forces the network security perimeter configuration to refresh for a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json |
| [operationsListSample.js][operationslistsample] | Gets a list of hybrid compute operations. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/Operations_List.json |
| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Update.json |
| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Delete.json |
| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets a private endpoint connection. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Get.json |
| [privateEndpointConnectionsListByPrivateLinkScopeSample.js][privateendpointconnectionslistbyprivatelinkscopesample] | Gets all private endpoint connections on a private link scope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_List.json |
| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json |
| [privateLinkResourcesListByPrivateLinkScopeSample.js][privatelinkresourceslistbyprivatelinkscopesample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json |
| [privateLinkScopesCreateOrUpdateSample.js][privatelinkscopescreateorupdatesample] | Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Create.json |
| [privateLinkScopesDeleteSample.js][privatelinkscopesdeletesample] | Deletes a Azure Arc PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Delete.json |
| [privateLinkScopesGetSample.js][privatelinkscopesgetsample] | Returns a Azure Arc PrivateLinkScope. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Get.json |
| [privateLinkScopesGetValidationDetailsForMachineSample.js][privatelinkscopesgetvalidationdetailsformachinesample] | Returns a Azure Arc PrivateLinkScope's validation details for a given machine. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json |
| [privateLinkScopesGetValidationDetailsSample.js][privatelinkscopesgetvalidationdetailssample] | Returns a Azure Arc PrivateLinkScope's validation details. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json |
| [privateLinkScopesListByResourceGroupSample.js][privatelinkscopeslistbyresourcegroupsample] | Gets a list of Azure Arc PrivateLinkScopes within a resource group. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json |
| [privateLinkScopesListSample.js][privatelinkscopeslistsample] | Gets a list of all Azure Arc PrivateLinkScopes within a subscription. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_List.json |
| [privateLinkScopesUpdateTagsSample.js][privatelinkscopesupdatetagssample] | Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json |
| [settingsGetSample.js][settingsgetsample] | Returns the base Settings for the target resource. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsGet.json |
| [settingsPatchSample.js][settingspatchsample] | Update the base Settings of the target resource. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsPatch.json |
| [settingsUpdateSample.js][settingsupdatesample] | Updates the base Settings of the target resource. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsUpdate.json |
| [upgradeExtensionsSample.js][upgradeextensionssample] | The operation to Upgrade Machine Extensions. x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extensions_Upgrade.json |
## Prerequisites
@ -88,51 +101,64 @@ npx dev-tool run vendored cross-env HYBRIDCOMPUTE_SUBSCRIPTION_ID="<hybridcomput
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
[extensionmetadatagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/extensionMetadataGetSample.js
[extensionmetadatalistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/extensionMetadataListSample.js
[licenseprofilescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesCreateOrUpdateSample.js
[licenseprofilesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesDeleteSample.js
[licenseprofilesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesGetSample.js
[licenseprofileslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesListSample.js
[licenseprofilesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesUpdateSample.js
[licensescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesCreateOrUpdateSample.js
[licensesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesDeleteSample.js
[licensesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesGetSample.js
[licenseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesListByResourceGroupSample.js
[licenseslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesListBySubscriptionSample.js
[licensesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesUpdateSample.js
[licensesvalidatelicensesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesValidateLicenseSample.js
[machineextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsCreateOrUpdateSample.js
[machineextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsDeleteSample.js
[machineextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsGetSample.js
[machineextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsListSample.js
[machineextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsUpdateSample.js
[machinesassesspatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesAssessPatchesSample.js
[machinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesDeleteSample.js
[machinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesGetSample.js
[machinesinstallpatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesInstallPatchesSample.js
[machineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesListByResourceGroupSample.js
[machineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesListBySubscriptionSample.js
[networkprofilegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkProfileGetSample.js
[networksecurityperimeterconfigurationsgetbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js
[networksecurityperimeterconfigurationslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js
[networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/operationsListSample.js
[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsCreateOrUpdateSample.js
[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsDeleteSample.js
[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsGetSample.js
[privateendpointconnectionslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js
[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkResourcesGetSample.js
[privatelinkresourceslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js
[privatelinkscopescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesCreateOrUpdateSample.js
[privatelinkscopesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesDeleteSample.js
[privatelinkscopesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetSample.js
[privatelinkscopesgetvalidationdetailsformachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetValidationDetailsForMachineSample.js
[privatelinkscopesgetvalidationdetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetValidationDetailsSample.js
[privatelinkscopeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesListByResourceGroupSample.js
[privatelinkscopeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesListSample.js
[privatelinkscopesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesUpdateTagsSample.js
[upgradeextensionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/upgradeExtensionsSample.js
[extensionmetadatagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/extensionMetadataGetSample.js
[extensionmetadatalistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/extensionMetadataListSample.js
[gatewayscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysCreateOrUpdateSample.js
[gatewaysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysDeleteSample.js
[gatewaysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysGetSample.js
[gatewayslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysListByResourceGroupSample.js
[gatewayslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysListBySubscriptionSample.js
[gatewaysupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysUpdateSample.js
[licenseprofilescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesCreateOrUpdateSample.js
[licenseprofilesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesDeleteSample.js
[licenseprofilesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesGetSample.js
[licenseprofileslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesListSample.js
[licenseprofilesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesUpdateSample.js
[licensescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesCreateOrUpdateSample.js
[licensesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesDeleteSample.js
[licensesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesGetSample.js
[licenseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesListByResourceGroupSample.js
[licenseslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesListBySubscriptionSample.js
[licensesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesUpdateSample.js
[licensesvalidatelicensesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesValidateLicenseSample.js
[machineextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsCreateOrUpdateSample.js
[machineextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsDeleteSample.js
[machineextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsGetSample.js
[machineextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsListSample.js
[machineextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsUpdateSample.js
[machineruncommandscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsCreateOrUpdateSample.js
[machineruncommandsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsDeleteSample.js
[machineruncommandsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsGetSample.js
[machineruncommandslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsListSample.js
[machinesassesspatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesAssessPatchesSample.js
[machinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesDeleteSample.js
[machinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesGetSample.js
[machinesinstallpatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesInstallPatchesSample.js
[machineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesListByResourceGroupSample.js
[machineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesListBySubscriptionSample.js
[networkprofilegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkProfileGetSample.js
[networksecurityperimeterconfigurationsgetbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js
[networksecurityperimeterconfigurationslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js
[networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/operationsListSample.js
[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js
[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsDeleteSample.js
[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsGetSample.js
[privateendpointconnectionslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js
[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkResourcesGetSample.js
[privatelinkresourceslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js
[privatelinkscopescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesCreateOrUpdateSample.js
[privatelinkscopesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesDeleteSample.js
[privatelinkscopesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetSample.js
[privatelinkscopesgetvalidationdetailsformachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetValidationDetailsForMachineSample.js
[privatelinkscopesgetvalidationdetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesGetValidationDetailsSample.js
[privatelinkscopeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesListByResourceGroupSample.js
[privatelinkscopeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesListSample.js
[privatelinkscopesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateLinkScopesUpdateTagsSample.js
[settingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsGetSample.js
[settingspatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsPatchSample.js
[settingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/settingsUpdateSample.js
[upgradeextensionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/upgradeExtensionsSample.js
[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-hybridcompute?view=azure-node-preview
[freesub]: https://azure.microsoft.com/free/
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcompute/arm-hybridcompute/README.md

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets an Extension Metadata based on location, publisher, extensionType and version
*
* @summary Gets an Extension Metadata based on location, publisher, extensionType and version
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_Get.json
*/
async function getAnExtensionsMetadata() {
const subscriptionId =

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Gets all Extension versions based on location, publisher, extensionType
*
* @summary Gets all Extension versions based on location, publisher, extensionType
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_List.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_List.json
*/
async function getAListOfExtensions() {
const subscriptionId =

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

@ -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.
const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to The operation to create or update a gateway.
*
* @summary The operation to create or update a gateway.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_CreateOrUpdate.json
*/
async function createOrUpdateAGateway() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "ffd506c8-3415-42d3-9612-fdb423fb17df";
const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const gatewayName = "{gatewayName}";
const parameters = {
allowedFeatures: ["*"],
gatewayType: "Public",
location: "eastus2euap",
};
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.gateways.beginCreateOrUpdateAndWait(
resourceGroupName,
gatewayName,
parameters,
);
console.log(result);
}
async function main() {
createOrUpdateAGateway();
}
main().catch(console.error);

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

@ -0,0 +1,36 @@
/*
* 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 { HybridComputeManagementClient } = require("@azure/arm-hybridcompute");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to The operation to delete a gateway.
*
* @summary The operation to delete a gateway.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Delete.json
*/
async function deleteAGateway() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "ffd506c8-3415-42d3-9612-fdb423fb17df";
const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const gatewayName = "{gatewayName}";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.gateways.beginDeleteAndWait(resourceGroupName, gatewayName);
console.log(result);
}
async function main() {
deleteAGateway();
}
main().catch(console.error);

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

@ -0,0 +1,36 @@
/*
* 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 { HybridComputeManagementClient } = require("@azure/arm-hybridcompute");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to Retrieves information about the view of a gateway.
*
* @summary Retrieves information about the view of a gateway.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Get.json
*/
async function getGateway() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "ffd506c8-3415-42d3-9612-fdb423fb17df";
const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const gatewayName = "{gatewayName}";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.gateways.get(resourceGroupName, gatewayName);
console.log(result);
}
async function main() {
getGateway();
}
main().catch(console.error);

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

@ -0,0 +1,38 @@
/*
* 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 { HybridComputeManagementClient } = require("@azure/arm-hybridcompute");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to The operation to get all gateways of a non-Azure machine
*
* @summary The operation to get all gateways of a non-Azure machine
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListByResourceGroup.json
*/
async function listGatewaysByResourceGroup() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "ffd506c8-3415-42d3-9612-fdb423fb17df";
const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.gateways.listByResourceGroup(resourceGroupName)) {
resArray.push(item);
}
console.log(resArray);
}
async function main() {
listGatewaysByResourceGroup();
}
main().catch(console.error);

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

@ -0,0 +1,37 @@
/*
* 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 { HybridComputeManagementClient } = require("@azure/arm-hybridcompute");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to The operation to get all gateways of a non-Azure machine
*
* @summary The operation to get all gateways of a non-Azure machine
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListBySubscription.json
*/
async function listGatewaysBySubscription() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "ffd506c8-3415-42d3-9612-fdb423fb17df";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.gateways.listBySubscription()) {
resArray.push(item);
}
console.log(resArray);
}
async function main() {
listGatewaysBySubscription();
}
main().catch(console.error);

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

@ -0,0 +1,37 @@
/*
* 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 { HybridComputeManagementClient } = require("@azure/arm-hybridcompute");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to The operation to update a gateway.
*
* @summary The operation to update a gateway.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Update.json
*/
async function updateAGateway() {
const subscriptionId =
process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "ffd506c8-3415-42d3-9612-fdb423fb17df";
const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const gatewayName = "{gatewayName}";
const parameters = { allowedFeatures: ["*"] };
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.gateways.update(resourceGroupName, gatewayName, parameters);
console.log(result);
}
async function main() {
updateAGateway();
}
main().catch(console.error);

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to create or update a license profile.
*
* @summary The operation to create or update a license profile.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json
*/
async function createOrUpdateALicenseProfile() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to delete a license profile.
*
* @summary The operation to delete a license profile.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Delete.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Delete.json
*/
async function deleteALicenseProfile() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Retrieves information about the view of a license profile.
*
* @summary Retrieves information about the view of a license profile.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Get.json
*/
async function getLicenseProfile() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to get all license profiles of a non-Azure machine
*
* @summary The operation to get all license profiles of a non-Azure machine
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_List.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_List.json
*/
async function listAllLicenseProfiles() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to update a license profile.
*
* @summary The operation to update a license profile.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Update.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Update.json
*/
async function updateALicenseProfile() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to create or update a license.
*
* @summary The operation to create or update a license.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_CreateOrUpdate.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_CreateOrUpdate.json
*/
async function createOrUpdateALicense() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to delete a license.
*
* @summary The operation to delete a license.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Delete.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Delete.json
*/
async function deleteALicense() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Retrieves information about the view of a license.
*
* @summary Retrieves information about the view of a license.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Get.json
*/
async function getLicense() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to get all licenses of a non-Azure machine
*
* @summary The operation to get all licenses of a non-Azure machine
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListByResourceGroup.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListByResourceGroup.json
*/
async function getAllMachineExtensions() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to get all licenses of a non-Azure machine
*
* @summary The operation to get all licenses of a non-Azure machine
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListBySubscription.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListBySubscription.json
*/
async function listLicensesBySubscription() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to update a license.
*
* @summary The operation to update a license.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Update.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Update.json
*/
async function updateALicense() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to validate a license.
*
* @summary The operation to validate a license.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ValidateLicense.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ValidateLicense.json
*/
async function validateALicense() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to create or update the extension.
*
* @summary The operation to create or update the extension.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_CreateOrUpdate.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_CreateOrUpdate.json
*/
async function createOrUpdateAMachineExtension() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to delete the extension.
*
* @summary The operation to delete the extension.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Delete.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Delete.json
*/
async function deleteAMachineExtension() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to get the extension.
*
* @summary The operation to get the extension.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Get.json
*/
async function getMachineExtension() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to get all extensions of a non-Azure machine
*
* @summary The operation to get all extensions of a non-Azure machine
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_List.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_List.json
*/
async function getAllMachineExtensionsList() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to The operation to update the extension.
* This sample demonstrates how to The operation to create or update the extension.
*
* @summary The operation to update the extension.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Update.json
* @summary The operation to create or update the extension.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Update.json
*/
async function createOrUpdateAMachineExtension() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -0,0 +1,56 @@
/*
* 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 { HybridComputeManagementClient } = require("@azure/arm-hybridcompute");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to The operation to create or update a run command.
*
* @summary The operation to create or update a run command.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_CreateOrUpdate.json
*/
async function createOrUpdateARunCommand() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const machineName = "myMachine";
const runCommandName = "myRunCommand";
const runCommandProperties = {
asyncExecution: false,
errorBlobUri: "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt",
location: "eastus2",
outputBlobUri:
"https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt",
parameters: [
{ name: "param1", value: "value1" },
{ name: "param2", value: "value2" },
],
runAsPassword: "<runAsPassword>",
runAsUser: "user1",
source: { script: "Write-Host Hello World!" },
timeoutInSeconds: 3600,
};
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.machineRunCommands.beginCreateOrUpdateAndWait(
resourceGroupName,
machineName,
runCommandName,
runCommandProperties,
);
console.log(result);
}
async function main() {
createOrUpdateARunCommand();
}
main().catch(console.error);

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

@ -0,0 +1,40 @@
/*
* 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 { HybridComputeManagementClient } = require("@azure/arm-hybridcompute");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to The operation to delete a run command.
*
* @summary The operation to delete a run command.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Delete.json
*/
async function deleteAMachineRunCommand() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const machineName = "myMachine";
const runCommandName = "myRunCommand";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.machineRunCommands.beginDeleteAndWait(
resourceGroupName,
machineName,
runCommandName,
);
console.log(result);
}
async function main() {
deleteAMachineRunCommand();
}
main().catch(console.error);

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

@ -0,0 +1,40 @@
/*
* 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 { HybridComputeManagementClient } = require("@azure/arm-hybridcompute");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to The operation to get a run command.
*
* @summary The operation to get a run command.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Get.json
*/
async function getARunCommand() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const machineName = "myMachine";
const runCommandName = "myRunCommand";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const result = await client.machineRunCommands.get(
resourceGroupName,
machineName,
runCommandName,
);
console.log(result);
}
async function main() {
getARunCommand();
}
main().catch(console.error);

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

@ -0,0 +1,38 @@
/*
* 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 { HybridComputeManagementClient } = require("@azure/arm-hybridcompute");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to The operation to get all the run commands of a non-Azure machine.
*
* @summary The operation to get all the run commands of a non-Azure machine.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_List.json
*/
async function getAllMachineRunCommands() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
const resourceGroupName = process.env["HYBRIDCOMPUTE_RESOURCE_GROUP"] || "myResourceGroup";
const machineName = "myMachine";
const credential = new DefaultAzureCredential();
const client = new HybridComputeManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.machineRunCommands.list(resourceGroupName, machineName)) {
resArray.push(item);
}
console.log(resArray);
}
async function main() {
getAllMachineRunCommands();
}
main().catch(console.error);

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to assess patches on a hybrid machine identity in Azure.
*
* @summary The operation to assess patches on a hybrid machine identity in Azure.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_AssessPatches.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_AssessPatches.json
*/
async function assessPatchStateOfAMachine() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to delete a hybrid machine.
*
* @summary The operation to delete a hybrid machine.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Delete.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Delete.json
*/
async function deleteAMachine() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to Retrieves information about the model view or the instance view of a hybrid machine.
*
* @summary Retrieves information about the model view or the instance view of a hybrid machine.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get.json
*/
async function getMachine() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
@ -32,7 +32,7 @@ async function getMachine() {
* This sample demonstrates how to Retrieves information about the model view or the instance view of a hybrid machine.
*
* @summary Retrieves information about the model view or the instance view of a hybrid machine.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get_LicenseProfileInstanceView.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json
*/
async function getMachineWithLicenseProfileInstanceView() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";

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

@ -16,7 +16,7 @@ require("dotenv").config();
* This sample demonstrates how to The operation to install patches on a hybrid machine identity in Azure.
*
* @summary The operation to install patches on a hybrid machine identity in Azure.
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_InstallPatches.json
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_InstallPatches.json
*/
async function installPatchStateOfAMachine() {
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}";

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