[mgmt] hybridcompute release (#31722)
https://github.com/Azure/sdk-release-request/issues/5635
This commit is contained in:
Родитель
ae05a39d0f
Коммит
fedf4aa0c3
|
@ -4912,7 +4912,7 @@ packages:
|
||||||
/ajv-formats@3.0.1:
|
/ajv-formats@3.0.1:
|
||||||
resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==}
|
resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
ajv: 8.13.0
|
ajv: 8.17.1
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/ajv@6.12.6:
|
/ajv@6.12.6:
|
||||||
|
@ -15416,23 +15416,26 @@ packages:
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
file:projects/arm-hybridcompute.tgz:
|
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'
|
name: '@rush-temp/arm-hybridcompute'
|
||||||
version: 0.0.0
|
version: 0.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@azure-tools/test-credential': 1.3.1
|
'@azure-tools/test-credential': 1.3.1
|
||||||
'@azure-tools/test-recorder': 3.5.2
|
'@azure-tools/test-recorder': 3.5.2
|
||||||
'@azure/core-lro': 2.7.2
|
'@azure/core-lro': 2.7.2
|
||||||
|
'@microsoft/api-extractor': 7.47.11(@types/node@18.19.64)
|
||||||
'@types/chai': 4.3.20
|
'@types/chai': 4.3.20
|
||||||
'@types/mocha': 10.0.9
|
'@types/mocha': 10.0.9
|
||||||
'@types/node': 18.19.64
|
'@types/node': 18.19.64
|
||||||
chai: 4.3.10
|
chai: 4.3.10
|
||||||
|
cross-env: 7.0.3
|
||||||
dotenv: 16.4.5
|
dotenv: 16.4.5
|
||||||
mocha: 10.8.2
|
mocha: 10.8.2
|
||||||
ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3)
|
ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3)
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
tsx: 4.19.2
|
tsx: 4.19.2
|
||||||
typescript: 5.6.3
|
typescript: 5.6.3
|
||||||
|
uglify-js: 3.19.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@swc/core'
|
- '@swc/core'
|
||||||
- '@swc/wasm'
|
- '@swc/wasm'
|
||||||
|
|
|
@ -1,15 +1,85 @@
|
||||||
# Release History
|
# Release History
|
||||||
|
|
||||||
## 4.0.1 (Unreleased)
|
## 4.1.0-beta.1 (2024-11-12)
|
||||||
|
Compared with version 4.0.0
|
||||||
|
|
||||||
### Features Added
|
### Features Added
|
||||||
|
|
||||||
### Breaking Changes
|
- Added operation group Gateways
|
||||||
|
- Added operation group MachineRunCommands
|
||||||
### Bugs Fixed
|
- Added operation group SettingsOperations
|
||||||
|
- Added Interface AgentVersion
|
||||||
### Other Changes
|
- 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)
|
## 4.0.0 (2024-10-12)
|
||||||
|
|
||||||
### Features Added
|
### 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) |
|
[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) |
|
[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)
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"commit": "15b16d1b5c3cccdecdd1cfe936f6a8005680c557",
|
"commit": "2d4992bd73955a93f972ba6c476e980e7e16a992",
|
||||||
"readme": "specification/hybridcompute/resource-manager/readme.md",
|
"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",
|
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||||
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.13",
|
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.15",
|
||||||
"use": "@autorest/typescript@6.0.27"
|
"use": "@autorest/typescript@6.0.28"
|
||||||
}
|
}
|
|
@ -2,5 +2,5 @@
|
||||||
"AssetsRepo": "Azure/azure-sdk-assets",
|
"AssetsRepo": "Azure/azure-sdk-assets",
|
||||||
"AssetsRepoPrefixPath": "js",
|
"AssetsRepoPrefixPath": "js",
|
||||||
"TagPrefix": "js/hybridcompute/arm-hybridcompute",
|
"TagPrefix": "js/hybridcompute/arm-hybridcompute",
|
||||||
"Tag": "js/hybridcompute/arm-hybridcompute_d121632d82"
|
"Tag": "js/hybridcompute/arm-hybridcompute_0fd9d119d9"
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"sdk-type": "mgmt",
|
"sdk-type": "mgmt",
|
||||||
"author": "Microsoft Corporation",
|
"author": "Microsoft Corporation",
|
||||||
"description": "A generated SDK for HybridComputeManagementClient.",
|
"description": "A generated SDK for HybridComputeManagementClient.",
|
||||||
"version": "4.0.1",
|
"version": "4.1.0-beta.1",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0"
|
"node": ">=18.0.0"
|
||||||
},
|
},
|
||||||
|
@ -28,6 +28,7 @@
|
||||||
"module": "./dist-esm/src/index.js",
|
"module": "./dist-esm/src/index.js",
|
||||||
"types": "./types/arm-hybridcompute.d.ts",
|
"types": "./types/arm-hybridcompute.d.ts",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@microsoft/api-extractor": "^7.31.1",
|
||||||
"typescript": "~5.6.2",
|
"typescript": "~5.6.2",
|
||||||
"dotenv": "^16.0.0",
|
"dotenv": "^16.0.0",
|
||||||
"@azure/dev-tool": "^1.0.0",
|
"@azure/dev-tool": "^1.0.0",
|
||||||
|
@ -89,7 +90,8 @@
|
||||||
"unit-test:browser": "echo skipped",
|
"unit-test:browser": "echo skipped",
|
||||||
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
"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: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,
|
"sideEffects": false,
|
||||||
"//metadata": {
|
"//metadata": {
|
||||||
|
|
|
@ -49,6 +49,19 @@ export interface AgentUpgrade {
|
||||||
readonly lastAttemptTimestamp?: Date;
|
readonly lastAttemptTimestamp?: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @public
|
||||||
|
export interface AgentVersion {
|
||||||
|
agentVersion?: string;
|
||||||
|
downloadLink?: string;
|
||||||
|
osType?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
// @public
|
||||||
|
export interface AgentVersionsList {
|
||||||
|
nextLink?: string;
|
||||||
|
value?: AgentVersion[];
|
||||||
|
}
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
export type ArcKindEnum = string;
|
export type ArcKindEnum = string;
|
||||||
|
|
||||||
|
@ -91,6 +104,17 @@ export interface ConnectionDetail {
|
||||||
// @public
|
// @public
|
||||||
export type CreatedByType = string;
|
export type CreatedByType = string;
|
||||||
|
|
||||||
|
// @public
|
||||||
|
export interface Disk {
|
||||||
|
diskType?: string;
|
||||||
|
generatedId?: string;
|
||||||
|
id?: string;
|
||||||
|
maxSizeInBytes?: number;
|
||||||
|
name?: string;
|
||||||
|
path?: string;
|
||||||
|
usedSpaceInBytes?: number;
|
||||||
|
}
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
export interface ErrorAdditionalInfo {
|
export interface ErrorAdditionalInfo {
|
||||||
readonly info?: Record<string, unknown>;
|
readonly info?: Record<string, unknown>;
|
||||||
|
@ -106,11 +130,25 @@ export interface ErrorDetail {
|
||||||
readonly target?: string;
|
readonly target?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @public
|
||||||
|
export interface ErrorDetailAutoGenerated {
|
||||||
|
readonly additionalInfo?: ErrorAdditionalInfo[];
|
||||||
|
readonly code?: string;
|
||||||
|
readonly details?: ErrorDetailAutoGenerated[];
|
||||||
|
readonly message?: string;
|
||||||
|
readonly target?: string;
|
||||||
|
}
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
export interface ErrorResponse {
|
export interface ErrorResponse {
|
||||||
error?: ErrorDetail;
|
error?: ErrorDetail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @public
|
||||||
|
export interface ErrorResponseAutoGenerated {
|
||||||
|
error?: ErrorDetailAutoGenerated;
|
||||||
|
}
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
export type EsuEligibility = string;
|
export type EsuEligibility = string;
|
||||||
|
|
||||||
|
@ -126,6 +164,9 @@ export type EsuKeyState = string;
|
||||||
// @public
|
// @public
|
||||||
export type EsuServerType = string;
|
export type EsuServerType = string;
|
||||||
|
|
||||||
|
// @public
|
||||||
|
export type ExecutionState = string;
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
export interface ExtensionMetadata {
|
export interface ExtensionMetadata {
|
||||||
get(location: string, publisher: string, extensionType: string, version: string, options?: ExtensionMetadataGetOptionalParams): Promise<ExtensionMetadataGetResponse>;
|
get(location: string, publisher: string, extensionType: string, version: string, options?: ExtensionMetadataGetOptionalParams): Promise<ExtensionMetadataGetResponse>;
|
||||||
|
@ -175,9 +216,131 @@ export interface ExtensionValueListResult {
|
||||||
readonly value?: ExtensionValue[];
|
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
|
// @public
|
||||||
export function getContinuationToken(page: unknown): string | undefined;
|
export function getContinuationToken(page: unknown): string | undefined;
|
||||||
|
|
||||||
|
// @public
|
||||||
|
export interface HardwareProfile {
|
||||||
|
readonly numberOfCpuSockets?: number;
|
||||||
|
readonly processors?: Processor[];
|
||||||
|
readonly totalPhysicalMemoryInBytes?: number;
|
||||||
|
}
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
export type HotpatchEnablementStatus = string;
|
export type HotpatchEnablementStatus = string;
|
||||||
|
|
||||||
|
@ -193,12 +356,16 @@ export class HybridComputeManagementClient extends coreClient.ServiceClient {
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
extensionMetadata: ExtensionMetadata;
|
extensionMetadata: ExtensionMetadata;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
|
gateways: Gateways;
|
||||||
|
// (undocumented)
|
||||||
licenseProfiles: LicenseProfiles;
|
licenseProfiles: LicenseProfiles;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
licenses: Licenses;
|
licenses: Licenses;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
machineExtensions: MachineExtensions;
|
machineExtensions: MachineExtensions;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
|
machineRunCommands: MachineRunCommands;
|
||||||
|
// (undocumented)
|
||||||
machines: Machines;
|
machines: Machines;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
networkProfileOperations: NetworkProfileOperations;
|
networkProfileOperations: NetworkProfileOperations;
|
||||||
|
@ -213,6 +380,8 @@ export class HybridComputeManagementClient extends coreClient.ServiceClient {
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
privateLinkScopes: PrivateLinkScopes;
|
privateLinkScopes: PrivateLinkScopes;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
|
settingsOperations: SettingsOperations;
|
||||||
|
// (undocumented)
|
||||||
subscriptionId: string;
|
subscriptionId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -250,6 +419,19 @@ export interface HybridComputePrivateLinkScopeProperties {
|
||||||
publicNetworkAccess?: PublicNetworkAccessType;
|
publicNetworkAccess?: PublicNetworkAccessType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @public
|
||||||
|
export interface HybridIdentityMetadata extends ProxyResourceAutoGenerated {
|
||||||
|
readonly identity?: Identity;
|
||||||
|
publicKey?: string;
|
||||||
|
vmId?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
// @public
|
||||||
|
export interface HybridIdentityMetadataList {
|
||||||
|
nextLink?: string;
|
||||||
|
value: HybridIdentityMetadata[];
|
||||||
|
}
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
export interface Identity {
|
export interface Identity {
|
||||||
readonly principalId?: string;
|
readonly principalId?: string;
|
||||||
|
@ -343,6 +525,22 @@ export enum KnownEsuServerType {
|
||||||
Standard = "Standard"
|
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
|
// @public
|
||||||
export enum KnownHotpatchEnablementStatus {
|
export enum KnownHotpatchEnablementStatus {
|
||||||
ActionRequired = "ActionRequired",
|
ActionRequired = "ActionRequired",
|
||||||
|
@ -899,6 +1097,8 @@ export interface Machine extends TrackedResource {
|
||||||
readonly domainName?: string;
|
readonly domainName?: string;
|
||||||
readonly errorDetails?: ErrorDetail[];
|
readonly errorDetails?: ErrorDetail[];
|
||||||
extensions?: MachineExtensionInstanceView[];
|
extensions?: MachineExtensionInstanceView[];
|
||||||
|
readonly firmwareProfile?: FirmwareProfile;
|
||||||
|
readonly hardwareProfile?: HardwareProfile;
|
||||||
identity?: Identity;
|
identity?: Identity;
|
||||||
kind?: ArcKindEnum;
|
kind?: ArcKindEnum;
|
||||||
readonly lastStatusChange?: Date;
|
readonly lastStatusChange?: Date;
|
||||||
|
@ -919,6 +1119,7 @@ export interface Machine extends TrackedResource {
|
||||||
readonly resources?: MachineExtension[];
|
readonly resources?: MachineExtension[];
|
||||||
serviceStatuses?: ServiceStatuses;
|
serviceStatuses?: ServiceStatuses;
|
||||||
readonly status?: StatusTypes;
|
readonly status?: StatusTypes;
|
||||||
|
readonly storageProfile?: StorageProfile;
|
||||||
vmId?: string;
|
vmId?: string;
|
||||||
readonly vmUuid?: string;
|
readonly vmUuid?: string;
|
||||||
}
|
}
|
||||||
|
@ -1111,6 +1312,117 @@ export interface MachineListResult {
|
||||||
value: Machine[];
|
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
|
// @public
|
||||||
export interface Machines {
|
export interface Machines {
|
||||||
beginAssessPatches(resourceGroupName: string, name: string, options?: MachinesAssessPatchesOptionalParams): Promise<SimplePollerLike<OperationState<MachinesAssessPatchesResponse>, MachinesAssessPatchesResponse>>;
|
beginAssessPatches(resourceGroupName: string, name: string, options?: MachinesAssessPatchesOptionalParams): Promise<SimplePollerLike<OperationState<MachinesAssessPatchesResponse>, MachinesAssessPatchesResponse>>;
|
||||||
|
@ -1204,9 +1516,21 @@ export interface MachineUpdate extends ResourceUpdate {
|
||||||
privateLinkScopeResourceId?: string;
|
privateLinkScopeResourceId?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @public (undocumented)
|
||||||
|
export interface NetworkConfiguration extends ProxyResourceAutoGenerated {
|
||||||
|
readonly keyProperties?: KeyProperties;
|
||||||
|
location?: string;
|
||||||
|
networkConfigurationScopeId?: string;
|
||||||
|
networkConfigurationScopeResourceId?: string;
|
||||||
|
readonly tenantId?: string;
|
||||||
|
}
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
export interface NetworkInterface {
|
export interface NetworkInterface {
|
||||||
|
id?: string;
|
||||||
ipAddresses?: IpAddress[];
|
ipAddresses?: IpAddress[];
|
||||||
|
macAddress?: string;
|
||||||
|
name?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
|
@ -1631,6 +1955,12 @@ export interface PrivateLinkServiceConnectionStateProperty {
|
||||||
status: string;
|
status: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @public
|
||||||
|
export interface Processor {
|
||||||
|
readonly name?: string;
|
||||||
|
readonly numberOfCores?: number;
|
||||||
|
}
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
export interface ProductFeature {
|
export interface ProductFeature {
|
||||||
readonly billingEndDate?: Date;
|
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
|
// @public
|
||||||
export interface ServiceStatus {
|
export interface ServiceStatus {
|
||||||
startupType?: string;
|
startupType?: string;
|
||||||
|
@ -1722,12 +2064,51 @@ export interface ServiceStatuses {
|
||||||
guestConfigurationService?: ServiceStatus;
|
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
|
// @public
|
||||||
export type StatusLevelTypes = string;
|
export type StatusLevelTypes = string;
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
export type StatusTypes = string;
|
export type StatusTypes = string;
|
||||||
|
|
||||||
|
// @public
|
||||||
|
export interface StorageProfile {
|
||||||
|
disks?: Disk[];
|
||||||
|
}
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
export interface Subnet {
|
export interface Subnet {
|
||||||
addressPrefix?: string;
|
addressPrefix?: string;
|
||||||
|
@ -1758,6 +2139,14 @@ export interface TrackedResource extends Resource {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @public
|
||||||
|
export interface TrackedResourceAutoGenerated extends ResourceAutoGenerated {
|
||||||
|
location: string;
|
||||||
|
tags?: {
|
||||||
|
[propertyName: string]: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
export interface UpgradeExtensionsOptionalParams extends coreClient.OperationOptions {
|
export interface UpgradeExtensionsOptionalParams extends coreClient.OperationOptions {
|
||||||
resumeFrom?: string;
|
resumeFrom?: string;
|
||||||
|
|
|
@ -1,4 +1 @@
|
||||||
# App registration secret for AAD authentication
|
# Feel free to add your own environment variables.
|
||||||
AZURE_CLIENT_SECRET=
|
|
||||||
AZURE_CLIENT_ID=
|
|
||||||
AZURE_TENANT_ID=
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Gets an Extension Metadata based on location, publisher, extensionType and version
|
* 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
|
* @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() {
|
async function getAnExtensionsMetadata() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Gets all Extension versions based on location, publisher, extensionType
|
* This sample demonstrates how to Gets all Extension versions based on location, publisher, extensionType
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function getAListOfExtensions() {
|
||||||
const subscriptionId =
|
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.
|
* This sample demonstrates how to The operation to create or update a license profile.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function createOrUpdateALicenseProfile() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to delete a license profile.
|
* This sample demonstrates how to The operation to delete a license profile.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function deleteALicenseProfile() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Retrieves information about the view of a license profile.
|
* This sample demonstrates how to Retrieves information about the view of a license profile.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function getLicenseProfile() {
|
||||||
const subscriptionId =
|
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
|
* 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
|
* @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() {
|
async function listAllLicenseProfiles() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to update a license profile.
|
* This sample demonstrates how to The operation to update a license profile.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function updateALicenseProfile() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to create or update a license.
|
* This sample demonstrates how to The operation to create or update a license.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function createOrUpdateALicense() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to delete a license.
|
* This sample demonstrates how to The operation to delete a license.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function deleteALicense() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Retrieves information about the view of a license.
|
* This sample demonstrates how to Retrieves information about the view of a license.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function getLicense() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to get all licenses of a non-Azure machine
|
* 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
|
* @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() {
|
async function getAllMachineExtensions() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to get all licenses of a non-Azure machine
|
* 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
|
* @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() {
|
async function listLicensesBySubscription() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to update a license.
|
* This sample demonstrates how to The operation to update a license.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function updateALicense() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to validate a license.
|
* This sample demonstrates how to The operation to validate a license.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function validateALicense() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to create or update the extension.
|
* This sample demonstrates how to The operation to create or update the extension.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function createOrUpdateAMachineExtension() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to delete the extension.
|
* This sample demonstrates how to The operation to delete the extension.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function deleteAMachineExtension() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to get the extension.
|
* This sample demonstrates how to The operation to get the extension.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function getMachineExtension() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to get all extensions of a non-Azure machine
|
* 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
|
* @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() {
|
async function getAllMachineExtensionsList() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,10 +18,10 @@ import * as dotenv from "dotenv";
|
||||||
dotenv.config();
|
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.
|
* @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_Update.json
|
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Update.json
|
||||||
*/
|
*/
|
||||||
async function createOrUpdateAMachineExtension() {
|
async function createOrUpdateAMachineExtension() {
|
||||||
const subscriptionId =
|
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.
|
* 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.
|
* @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() {
|
async function assessPatchStateOfAMachine() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to delete a hybrid machine.
|
* This sample demonstrates how to The operation to delete a hybrid machine.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function deleteAMachine() {
|
||||||
const subscriptionId =
|
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.
|
* 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.
|
* @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() {
|
async function getMachine() {
|
||||||
const subscriptionId =
|
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.
|
* 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.
|
* @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() {
|
async function getMachineWithLicenseProfileInstanceView() {
|
||||||
const subscriptionId =
|
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.
|
* 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.
|
* @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() {
|
async function installPatchStateOfAMachine() {
|
||||||
const subscriptionId =
|
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.
|
* 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.
|
* @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() {
|
async function listMachinesByResourceGroup() {
|
||||||
const subscriptionId =
|
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.
|
* 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.
|
* @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() {
|
async function listMachinesByResourceGroup() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to The operation to get network information of hybrid machine
|
* This sample demonstrates how to The operation to get network information of hybrid machine
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function getNetworkProfile() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Gets the network security perimeter configuration for a private link scope.
|
* 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.
|
* @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() {
|
async function getsTheNetworkSecurityPerimeterConfigurationOfThePrivateLinkScope() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Lists the network security perimeter configurations for a private link scope.
|
* 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.
|
* @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() {
|
async function getsTheListOfNetworkSecurityPerimeterConfigurationsOfThePrivateLinkScope() {
|
||||||
const subscriptionId =
|
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.
|
* 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.
|
* @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() {
|
async function reconcilesTheNetworkSecurityPerimeterConfigurationOfThePrivateLinkScope() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Gets a list of hybrid compute operations.
|
* This sample demonstrates how to Gets a list of hybrid compute operations.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function listHybridComputeProviderOperations() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -21,7 +21,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Approve or reject a private endpoint connection with a given name.
|
* 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.
|
* @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() {
|
async function approveOrRejectAPrivateEndpointConnectionWithAGivenName() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Deletes a private endpoint connection with a given name.
|
* This sample demonstrates how to Deletes a private endpoint connection with a given name.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function deletesAPrivateEndpointConnectionWithAGivenName() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Gets a private endpoint connection.
|
* This sample demonstrates how to Gets a private endpoint connection.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function getsPrivateEndpointConnection() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Gets all private endpoint connections on a private link scope.
|
* 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.
|
* @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() {
|
async function getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope() {
|
||||||
const subscriptionId =
|
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.
|
* 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.
|
* @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() {
|
async function getsPrivateEndpointConnection() {
|
||||||
const subscriptionId =
|
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.
|
* 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.
|
* @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() {
|
async function getsPrivateEndpointConnection() {
|
||||||
const subscriptionId =
|
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.
|
* 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.
|
* @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() {
|
async function privateLinkScopeCreate() {
|
||||||
const subscriptionId =
|
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.
|
* 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.
|
* @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() {
|
async function privateLinkScopeUpdate() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Deletes a Azure Arc PrivateLinkScope.
|
* This sample demonstrates how to Deletes a Azure Arc PrivateLinkScope.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function privateLinkScopesDelete() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Returns a Azure Arc PrivateLinkScope.
|
* This sample demonstrates how to Returns a Azure Arc PrivateLinkScope.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function privateLinkScopeGet() {
|
||||||
const subscriptionId =
|
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.
|
* 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.
|
* @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() {
|
async function privateLinkScopeGet() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Returns a Azure Arc PrivateLinkScope's validation details.
|
* This sample demonstrates how to Returns a Azure Arc PrivateLinkScope's validation details.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function privateLinkScopeGet() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Gets a list of Azure Arc PrivateLinkScopes within a resource group.
|
* 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.
|
* @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() {
|
async function privateLinkScopeListByResourceGroup() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
||||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
||||||
* This sample demonstrates how to Gets a list of all Azure Arc PrivateLinkScopes within a subscription.
|
* 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.
|
* @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() {
|
async function privateLinkScopesListJson() {
|
||||||
const subscriptionId =
|
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.
|
* 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.
|
* @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() {
|
async function privateLinkScopeUpdateTagsOnly() {
|
||||||
const subscriptionId =
|
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.
|
* This sample demonstrates how to The operation to Upgrade Machine Extensions.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function upgradeMachineExtensions() {
|
||||||
const subscriptionId =
|
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.
|
These sample programs show how to use the JavaScript client libraries for in some common scenarios.
|
||||||
|
|
||||||
| **File Name** | **Description** |
|
| **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 |
|
| [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/stable/2024-07-10/examples/extension/ExtensionMetadata_List.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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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 |
|
||||||
| [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 |
|
| [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
|
## 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.
|
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
|
[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/javascript/extensionMetadataListSample.js
|
[extensionmetadatalistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/extensionMetadataListSample.js
|
||||||
[licenseprofilescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesCreateOrUpdateSample.js
|
[gatewayscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysCreateOrUpdateSample.js
|
||||||
[licenseprofilesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesDeleteSample.js
|
[gatewaysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysDeleteSample.js
|
||||||
[licenseprofilesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesGetSample.js
|
[gatewaysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysGetSample.js
|
||||||
[licenseprofileslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesListSample.js
|
[gatewayslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysListByResourceGroupSample.js
|
||||||
[licenseprofilesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licenseProfilesUpdateSample.js
|
[gatewayslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysListBySubscriptionSample.js
|
||||||
[licensescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesCreateOrUpdateSample.js
|
[gatewaysupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/gatewaysUpdateSample.js
|
||||||
[licensesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesDeleteSample.js
|
[licenseprofilescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesCreateOrUpdateSample.js
|
||||||
[licensesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesGetSample.js
|
[licenseprofilesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesDeleteSample.js
|
||||||
[licenseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesListByResourceGroupSample.js
|
[licenseprofilesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesGetSample.js
|
||||||
[licenseslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesListBySubscriptionSample.js
|
[licenseprofileslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesListSample.js
|
||||||
[licensesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesUpdateSample.js
|
[licenseprofilesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licenseProfilesUpdateSample.js
|
||||||
[licensesvalidatelicensesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/licensesValidateLicenseSample.js
|
[licensescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesCreateOrUpdateSample.js
|
||||||
[machineextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsCreateOrUpdateSample.js
|
[licensesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesDeleteSample.js
|
||||||
[machineextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsDeleteSample.js
|
[licensesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesGetSample.js
|
||||||
[machineextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsGetSample.js
|
[licenseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesListByResourceGroupSample.js
|
||||||
[machineextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsListSample.js
|
[licenseslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesListBySubscriptionSample.js
|
||||||
[machineextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machineExtensionsUpdateSample.js
|
[licensesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesUpdateSample.js
|
||||||
[machinesassesspatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesAssessPatchesSample.js
|
[licensesvalidatelicensesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/licensesValidateLicenseSample.js
|
||||||
[machinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesDeleteSample.js
|
[machineextensionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsCreateOrUpdateSample.js
|
||||||
[machinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesGetSample.js
|
[machineextensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsDeleteSample.js
|
||||||
[machinesinstallpatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesInstallPatchesSample.js
|
[machineextensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsGetSample.js
|
||||||
[machineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesListByResourceGroupSample.js
|
[machineextensionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsListSample.js
|
||||||
[machineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/machinesListBySubscriptionSample.js
|
[machineextensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineExtensionsUpdateSample.js
|
||||||
[networkprofilegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkProfileGetSample.js
|
[machineruncommandscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsCreateOrUpdateSample.js
|
||||||
[networksecurityperimeterconfigurationsgetbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js
|
[machineruncommandsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsDeleteSample.js
|
||||||
[networksecurityperimeterconfigurationslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js
|
[machineruncommandsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsGetSample.js
|
||||||
[networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js
|
[machineruncommandslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machineRunCommandsListSample.js
|
||||||
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/operationsListSample.js
|
[machinesassesspatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesAssessPatchesSample.js
|
||||||
[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsCreateOrUpdateSample.js
|
[machinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesDeleteSample.js
|
||||||
[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsDeleteSample.js
|
[machinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesGetSample.js
|
||||||
[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsGetSample.js
|
[machinesinstallpatchessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesInstallPatchesSample.js
|
||||||
[privateendpointconnectionslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js
|
[machineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesListByResourceGroupSample.js
|
||||||
[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkResourcesGetSample.js
|
[machineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/machinesListBySubscriptionSample.js
|
||||||
[privatelinkresourceslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js
|
[networkprofilegetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkProfileGetSample.js
|
||||||
[privatelinkscopescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesCreateOrUpdateSample.js
|
[networksecurityperimeterconfigurationsgetbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSample.js
|
||||||
[privatelinkscopesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesDeleteSample.js
|
[networksecurityperimeterconfigurationslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsListByPrivateLinkScopeSample.js
|
||||||
[privatelinkscopesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetSample.js
|
[networksecurityperimeterconfigurationsreconcileforprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/networkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSample.js
|
||||||
[privatelinkscopesgetvalidationdetailsformachinesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetValidationDetailsForMachineSample.js
|
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/operationsListSample.js
|
||||||
[privatelinkscopesgetvalidationdetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesGetValidationDetailsSample.js
|
[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js
|
||||||
[privatelinkscopeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesListByResourceGroupSample.js
|
[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsDeleteSample.js
|
||||||
[privatelinkscopeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesListSample.js
|
[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsGetSample.js
|
||||||
[privatelinkscopesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/privateLinkScopesUpdateTagsSample.js
|
[privateendpointconnectionslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4-beta/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js
|
||||||
[upgradeextensionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/hybridcompute/arm-hybridcompute/samples/v4/javascript/upgradeExtensionsSample.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
|
[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-hybridcompute?view=azure-node-preview
|
||||||
[freesub]: https://azure.microsoft.com/free/
|
[freesub]: https://azure.microsoft.com/free/
|
||||||
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hybridcompute/arm-hybridcompute/README.md
|
[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
|
* 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
|
* @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() {
|
async function getAnExtensionsMetadata() {
|
||||||
const subscriptionId =
|
const subscriptionId =
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
||||||
* This sample demonstrates how to Gets all Extension versions based on location, publisher, extensionType
|
* This sample demonstrates how to Gets all Extension versions based on location, publisher, extensionType
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function getAListOfExtensions() {
|
||||||
const subscriptionId =
|
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.
|
* This sample demonstrates how to The operation to create or update a license profile.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function createOrUpdateALicenseProfile() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* This sample demonstrates how to The operation to delete a license profile.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function deleteALicenseProfile() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* This sample demonstrates how to Retrieves information about the view of a license profile.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function getLicenseProfile() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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
|
* 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
|
* @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() {
|
async function listAllLicenseProfiles() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* This sample demonstrates how to The operation to update a license profile.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function updateALicenseProfile() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* This sample demonstrates how to The operation to create or update a license.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function createOrUpdateALicense() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* This sample demonstrates how to The operation to delete a license.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function deleteALicense() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* This sample demonstrates how to Retrieves information about the view of a license.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function getLicense() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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
|
* 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
|
* @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() {
|
async function getAllMachineExtensions() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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
|
* 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
|
* @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() {
|
async function listLicensesBySubscription() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* This sample demonstrates how to The operation to update a license.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function updateALicense() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* This sample demonstrates how to The operation to validate a license.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function validateALicense() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* This sample demonstrates how to The operation to create or update the extension.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function createOrUpdateAMachineExtension() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* This sample demonstrates how to The operation to delete the extension.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function deleteAMachineExtension() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* This sample demonstrates how to The operation to get the extension.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function getMachineExtension() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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
|
* 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
|
* @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() {
|
async function getAllMachineExtensionsList() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
|
@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity");
|
||||||
require("dotenv").config();
|
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.
|
* @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_Update.json
|
* x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Update.json
|
||||||
*/
|
*/
|
||||||
async function createOrUpdateAMachineExtension() {
|
async function createOrUpdateAMachineExtension() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* 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.
|
* @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() {
|
async function assessPatchStateOfAMachine() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
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.
|
* This sample demonstrates how to The operation to delete a hybrid machine.
|
||||||
*
|
*
|
||||||
* @summary 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() {
|
async function deleteAMachine() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* 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.
|
* @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() {
|
async function getMachine() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* 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.
|
* @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() {
|
async function getMachineWithLicenseProfileInstanceView() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscriptionId}";
|
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.
|
* 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.
|
* @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() {
|
async function installPatchStateOfAMachine() {
|
||||||
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
const subscriptionId = process.env["HYBRIDCOMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче