[mgmt] appconfiguration release (#31714)
https://github.com/Azure/sdk-release-request/issues/5631
This commit is contained in:
Родитель
4c2d84d9d7
Коммит
e6de8eef88
|
@ -12927,7 +12927,7 @@ packages:
|
|||
dev: false
|
||||
|
||||
file:projects/arm-appconfiguration.tgz:
|
||||
resolution: {integrity: sha512-EOuGlK//o9Q6ZTfGkNQX+S9NfNafcPyPbkIYHh+oX87R0Y9SX9QEhomS3R5QmMdJkSat/H6MdHbjuUxgmwFzUA==, tarball: file:projects/arm-appconfiguration.tgz}
|
||||
resolution: {integrity: sha512-5sEU/bwa68Xuicl7B/9ZrSURgbVEcWd2lQWO7Hq6rhxyn8z1VvORi3MOPmPVE+94JTYG6Du0fLQPdt3DuwQkuQ==, tarball: file:projects/arm-appconfiguration.tgz}
|
||||
name: '@rush-temp/arm-appconfiguration'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
|
@ -12935,15 +12935,21 @@ packages:
|
|||
'@azure-tools/test-recorder': 3.5.2
|
||||
'@azure/abort-controller': 1.1.0
|
||||
'@azure/core-lro': 2.7.2
|
||||
'@microsoft/api-extractor': 7.47.11(@types/node@18.19.64)
|
||||
'@types/chai': 4.3.20
|
||||
'@types/mocha': 10.0.9
|
||||
'@types/node': 18.19.64
|
||||
chai: 4.3.10
|
||||
cross-env: 7.0.3
|
||||
dotenv: 16.4.5
|
||||
mkdirp: 3.0.1
|
||||
mocha: 10.8.2
|
||||
ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3)
|
||||
rimraf: 5.0.10
|
||||
ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.5.4)
|
||||
tslib: 2.8.1
|
||||
typescript: 5.6.3
|
||||
tsx: 4.19.2
|
||||
typescript: 5.5.4
|
||||
uglify-js: 3.19.3
|
||||
transitivePeerDependencies:
|
||||
- '@swc/core'
|
||||
- '@swc/wasm'
|
||||
|
|
|
@ -1,14 +1,30 @@
|
|||
# Release History
|
||||
|
||||
## 4.0.1 (Unreleased)
|
||||
## 4.1.0 (2024-11-11)
|
||||
|
||||
### Features Added
|
||||
|
||||
### Breaking Changes
|
||||
- Added operation group Snapshots
|
||||
- Added Interface DataPlaneProxyProperties
|
||||
- Added Interface ErrorDetail
|
||||
- Added Interface ErrorResponseAutoGenerated
|
||||
- Added Interface KeyValueFilter
|
||||
- Added Interface Snapshot
|
||||
- Added Interface SnapshotsCreateOptionalParams
|
||||
- Added Interface SnapshotsGetOptionalParams
|
||||
- Added Type Alias AuthenticationMode
|
||||
- Added Type Alias CompositionType
|
||||
- Added Type Alias PrivateLinkDelegation
|
||||
- Added Type Alias SnapshotsCreateResponse
|
||||
- Added Type Alias SnapshotsGetResponse
|
||||
- Added Type Alias SnapshotStatus
|
||||
- Interface ConfigurationStore has a new optional parameter dataPlaneProxy
|
||||
- Interface ConfigurationStoreUpdateParameters has a new optional parameter dataPlaneProxy
|
||||
- Added Enum KnownAuthenticationMode
|
||||
- Added Enum KnownCompositionType
|
||||
- Added Enum KnownPrivateLinkDelegation
|
||||
- Added Enum KnownSnapshotStatus
|
||||
|
||||
### Bugs Fixed
|
||||
|
||||
### Other Changes
|
||||
|
||||
## 4.0.0 (2023-04-06)
|
||||
|
||||
|
@ -66,4 +82,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.
|
|||
|
||||
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
|
||||
|
||||
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
|
||||
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2023 Microsoft
|
||||
Copyright (c) 2024 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"commit": "8725e0700974d2c8cba436b5696728ebc5a80f1b",
|
||||
"commit": "2d4992bd73955a93f972ba6c476e980e7e16a992",
|
||||
"readme": "specification/appconfiguration/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --version=3.9.3 --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\\appconfiguration\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --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\\appconfiguration\\resource-manager\\readme.md --use=@autorest/typescript@6.0.27 --generate-sample=true",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
|
||||
"use": "@autorest/typescript@6.0.0-rc.10"
|
||||
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.15",
|
||||
"use": "@autorest/typescript@6.0.27"
|
||||
}
|
|
@ -2,5 +2,5 @@
|
|||
"AssetsRepo": "Azure/azure-sdk-assets",
|
||||
"AssetsRepoPrefixPath": "js",
|
||||
"TagPrefix": "js/appconfiguration/arm-appconfiguration",
|
||||
"Tag": "js/appconfiguration/arm-appconfiguration_1babe9e8b6"
|
||||
"Tag": "js/appconfiguration/arm-appconfiguration_d393624d99"
|
||||
}
|
||||
|
|
|
@ -3,17 +3,17 @@
|
|||
"sdk-type": "mgmt",
|
||||
"author": "Microsoft Corporation",
|
||||
"description": "A generated SDK for AppConfigurationManagementClient.",
|
||||
"version": "4.0.1",
|
||||
"version": "4.1.0",
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@azure/abort-controller": "^1.0.0",
|
||||
"@azure/core-auth": "^1.3.0",
|
||||
"@azure/core-client": "^1.7.0",
|
||||
"@azure/core-lro": "^2.5.0",
|
||||
"@azure/core-lro": "^2.5.4",
|
||||
"@azure/abort-controller": "^2.1.2",
|
||||
"@azure/core-paging": "^1.2.0",
|
||||
"@azure/core-rest-pipeline": "^1.8.0",
|
||||
"@azure/core-client": "^1.7.0",
|
||||
"@azure/core-auth": "^1.6.0",
|
||||
"@azure/core-rest-pipeline": "^1.14.0",
|
||||
"tslib": "^2.2.0"
|
||||
},
|
||||
"keywords": [
|
||||
|
@ -28,18 +28,24 @@
|
|||
"module": "./dist-esm/src/index.js",
|
||||
"types": "./types/arm-appconfiguration.d.ts",
|
||||
"devDependencies": {
|
||||
"@azure-tools/test-credential": "^1.0.0",
|
||||
"@azure-tools/test-recorder": "^3.0.0",
|
||||
"@azure/dev-tool": "^1.0.0",
|
||||
"@azure/identity": "^4.0.1",
|
||||
"@types/chai": "^4.2.8",
|
||||
"@types/mocha": "^10.0.0",
|
||||
"@types/node": "^18.0.0",
|
||||
"chai": "^4.2.0",
|
||||
"@microsoft/api-extractor": "^7.31.1",
|
||||
"mkdirp": "^3.0.1",
|
||||
"typescript": "~5.5.3",
|
||||
"uglify-js": "^3.4.9",
|
||||
"rimraf": "^5.0.0",
|
||||
"dotenv": "^16.0.0",
|
||||
"@azure/dev-tool": "^1.0.0",
|
||||
"@azure/identity": "^4.2.1",
|
||||
"@azure-tools/test-recorder": "^3.0.0",
|
||||
"@azure-tools/test-credential": "^1.1.0",
|
||||
"mocha": "^10.0.0",
|
||||
"ts-node": "^10.0.0",
|
||||
"typescript": "~5.6.2"
|
||||
"@types/mocha": "^10.0.0",
|
||||
"tsx": "^4.7.1",
|
||||
"@types/chai": "^4.2.8",
|
||||
"chai": "^4.2.0",
|
||||
"cross-env": "^7.0.2",
|
||||
"@types/node": "^18.0.0",
|
||||
"ts-node": "^10.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -67,29 +73,28 @@
|
|||
],
|
||||
"scripts": {
|
||||
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
|
||||
"build:browser": "echo skipped",
|
||||
"build:node": "echo skipped",
|
||||
"build:samples": "echo skipped.",
|
||||
"build:test": "echo skipped",
|
||||
"check-format": "echo skipped",
|
||||
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
||||
"execute:samples": "echo skipped",
|
||||
"extract-api": "dev-tool run extract-api",
|
||||
"format": "echo skipped",
|
||||
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
||||
"lint": "echo skipped",
|
||||
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
||||
"pack": "npm pack 2>&1",
|
||||
"prepack": "npm run build",
|
||||
"pack": "npm pack 2>&1",
|
||||
"extract-api": "dev-tool run extract-api",
|
||||
"lint": "echo skipped",
|
||||
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
||||
"build:node": "echo skipped",
|
||||
"build:browser": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"build:samples": "echo skipped.",
|
||||
"check-format": "echo skipped",
|
||||
"execute:samples": "echo skipped",
|
||||
"format": "echo skipped",
|
||||
"test": "npm run integration-test",
|
||||
"test:browser": "echo skipped",
|
||||
"test:node": "echo skipped",
|
||||
"test:browser": "echo skipped",
|
||||
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
||||
"unit-test:browser": "echo skipped",
|
||||
"unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
|
||||
"update-snippets": "echo skipped"
|
||||
"unit-test:browser": "echo skipped",
|
||||
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
||||
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
||||
"integration-test:browser": "echo skipped"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"//metadata": {
|
||||
|
|
|
@ -49,6 +49,8 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
|
|||
// (undocumented)
|
||||
replicas: Replicas;
|
||||
// (undocumented)
|
||||
snapshots: Snapshots;
|
||||
// (undocumented)
|
||||
subscriptionId: string;
|
||||
}
|
||||
|
||||
|
@ -59,12 +61,18 @@ export interface AppConfigurationManagementClientOptionalParams extends coreClie
|
|||
endpoint?: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export type AuthenticationMode = string;
|
||||
|
||||
// @public
|
||||
export interface CheckNameAvailabilityParameters {
|
||||
name: string;
|
||||
type: ConfigurationResourceType;
|
||||
}
|
||||
|
||||
// @public
|
||||
export type CompositionType = string;
|
||||
|
||||
// @public
|
||||
export type ConfigurationResourceType = string;
|
||||
|
||||
|
@ -72,6 +80,7 @@ export type ConfigurationResourceType = string;
|
|||
export interface ConfigurationStore extends TrackedResource {
|
||||
createMode?: CreateMode;
|
||||
readonly creationDate?: Date;
|
||||
dataPlaneProxy?: DataPlaneProxyProperties;
|
||||
disableLocalAuth?: boolean;
|
||||
enablePurgeProtection?: boolean;
|
||||
encryption?: EncryptionProperties;
|
||||
|
@ -222,6 +231,7 @@ export type ConfigurationStoresUpdateResponse = ConfigurationStore;
|
|||
|
||||
// @public
|
||||
export interface ConfigurationStoreUpdateParameters {
|
||||
dataPlaneProxy?: DataPlaneProxyProperties;
|
||||
disableLocalAuth?: boolean;
|
||||
enablePurgeProtection?: boolean;
|
||||
encryption?: EncryptionProperties;
|
||||
|
@ -242,6 +252,12 @@ export type CreatedByType = string;
|
|||
// @public
|
||||
export type CreateMode = "Recover" | "Default";
|
||||
|
||||
// @public
|
||||
export interface DataPlaneProxyProperties {
|
||||
authenticationMode?: AuthenticationMode;
|
||||
privateLinkDelegation?: PrivateLinkDelegation;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface DeletedConfigurationStore {
|
||||
readonly configurationStoreId?: string;
|
||||
|
@ -274,6 +290,15 @@ export interface ErrorAdditionalInfo {
|
|||
readonly type?: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ErrorDetail {
|
||||
readonly additionalInfo?: ErrorAdditionalInfo[];
|
||||
readonly code?: string;
|
||||
readonly details?: ErrorDetail[];
|
||||
readonly message?: string;
|
||||
readonly target?: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ErrorDetails {
|
||||
readonly additionalInfo?: ErrorAdditionalInfo[];
|
||||
|
@ -286,6 +311,11 @@ export interface ErrorResponse {
|
|||
error?: ErrorDetails;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ErrorResponseAutoGenerated {
|
||||
error?: ErrorDetail;
|
||||
}
|
||||
|
||||
// @public
|
||||
export function getContinuationToken(page: unknown): string | undefined;
|
||||
|
||||
|
@ -309,6 +339,12 @@ export interface KeyValue {
|
|||
value?: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface KeyValueFilter {
|
||||
key: string;
|
||||
label?: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface KeyValueListResult {
|
||||
nextLink?: string;
|
||||
|
@ -356,6 +392,18 @@ export enum KnownActionsRequired {
|
|||
Recreate = "Recreate"
|
||||
}
|
||||
|
||||
// @public
|
||||
export enum KnownAuthenticationMode {
|
||||
Local = "Local",
|
||||
PassThrough = "Pass-through"
|
||||
}
|
||||
|
||||
// @public
|
||||
export enum KnownCompositionType {
|
||||
Key = "Key",
|
||||
KeyLabel = "Key_Label"
|
||||
}
|
||||
|
||||
// @public
|
||||
export enum KnownConfigurationResourceType {
|
||||
MicrosoftAppConfigurationConfigurationStores = "Microsoft.AppConfiguration/configurationStores"
|
||||
|
@ -385,6 +433,12 @@ export enum KnownIdentityType {
|
|||
UserAssigned = "UserAssigned"
|
||||
}
|
||||
|
||||
// @public
|
||||
export enum KnownPrivateLinkDelegation {
|
||||
Disabled = "Disabled",
|
||||
Enabled = "Enabled"
|
||||
}
|
||||
|
||||
// @public
|
||||
export enum KnownProvisioningState {
|
||||
Canceled = "Canceled",
|
||||
|
@ -410,6 +464,14 @@ export enum KnownReplicaProvisioningState {
|
|||
Succeeded = "Succeeded"
|
||||
}
|
||||
|
||||
// @public
|
||||
export enum KnownSnapshotStatus {
|
||||
Archived = "Archived",
|
||||
Failed = "Failed",
|
||||
Provisioning = "Provisioning",
|
||||
Ready = "Ready"
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface LogSpecification {
|
||||
blobDuration?: string;
|
||||
|
@ -584,6 +646,9 @@ export interface PrivateEndpointConnectionsListByConfigurationStoreOptionalParam
|
|||
// @public
|
||||
export type PrivateEndpointConnectionsListByConfigurationStoreResponse = PrivateEndpointConnectionListResult;
|
||||
|
||||
// @public
|
||||
export type PrivateLinkDelegation = string;
|
||||
|
||||
// @public
|
||||
export interface PrivateLinkResource {
|
||||
readonly groupId?: string;
|
||||
|
@ -745,6 +810,52 @@ export interface Sku {
|
|||
name: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface Snapshot {
|
||||
compositionType?: CompositionType;
|
||||
readonly created?: Date;
|
||||
readonly etag?: string;
|
||||
readonly expires?: Date;
|
||||
filters?: KeyValueFilter[];
|
||||
readonly id?: string;
|
||||
readonly itemsCount?: number;
|
||||
readonly name?: string;
|
||||
readonly provisioningState?: ProvisioningState;
|
||||
retentionPeriod?: number;
|
||||
readonly size?: number;
|
||||
readonly status?: SnapshotStatus;
|
||||
tags?: {
|
||||
[propertyName: string]: string;
|
||||
};
|
||||
readonly type?: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface Snapshots {
|
||||
beginCreate(resourceGroupName: string, configStoreName: string, snapshotName: string, body: Snapshot, options?: SnapshotsCreateOptionalParams): Promise<SimplePollerLike<OperationState<SnapshotsCreateResponse>, SnapshotsCreateResponse>>;
|
||||
beginCreateAndWait(resourceGroupName: string, configStoreName: string, snapshotName: string, body: Snapshot, options?: SnapshotsCreateOptionalParams): Promise<SnapshotsCreateResponse>;
|
||||
get(resourceGroupName: string, configStoreName: string, snapshotName: string, options?: SnapshotsGetOptionalParams): Promise<SnapshotsGetResponse>;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface SnapshotsCreateOptionalParams extends coreClient.OperationOptions {
|
||||
resumeFrom?: string;
|
||||
updateIntervalInMs?: number;
|
||||
}
|
||||
|
||||
// @public
|
||||
export type SnapshotsCreateResponse = Snapshot;
|
||||
|
||||
// @public
|
||||
export interface SnapshotsGetOptionalParams extends coreClient.OperationOptions {
|
||||
}
|
||||
|
||||
// @public
|
||||
export type SnapshotsGetResponse = Snapshot;
|
||||
|
||||
// @public
|
||||
export type SnapshotStatus = string;
|
||||
|
||||
// @public
|
||||
export interface SystemData {
|
||||
createdAt?: Date;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
ConfigurationStore,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Creates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Creates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreate.json
|
||||
*/
|
||||
async function configurationStoresCreate() {
|
||||
const subscriptionId =
|
||||
|
@ -33,17 +33,17 @@ async function configurationStoresCreate() {
|
|||
const configStoreCreationParameters: ConfigurationStore = {
|
||||
location: "westus",
|
||||
sku: { name: "Standard" },
|
||||
tags: { myTag: "myTagValue" }
|
||||
tags: { myTag: "myTagValue" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreCreationParameters
|
||||
configStoreCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -52,7 +52,41 @@ async function configurationStoresCreate() {
|
|||
* This sample demonstrates how to Creates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Creates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithIdentity.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithDataPlaneProxy.json
|
||||
*/
|
||||
async function configurationStoresCreateWithDataPlaneProxy() {
|
||||
const subscriptionId =
|
||||
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] ||
|
||||
"c80fb759-c965-4c6a-9110-9b2b2d038882";
|
||||
const resourceGroupName =
|
||||
process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
|
||||
const configStoreName = "contoso";
|
||||
const configStoreCreationParameters: ConfigurationStore = {
|
||||
dataPlaneProxy: {
|
||||
authenticationMode: "Pass-through",
|
||||
privateLinkDelegation: "Enabled",
|
||||
},
|
||||
location: "westus",
|
||||
sku: { name: "Standard" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Creates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithIdentity.json
|
||||
*/
|
||||
async function configurationStoresCreateWithIdentity() {
|
||||
const subscriptionId =
|
||||
|
@ -65,22 +99,23 @@ async function configurationStoresCreateWithIdentity() {
|
|||
identity: {
|
||||
type: "SystemAssigned, UserAssigned",
|
||||
userAssignedIdentities: {
|
||||
"/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2": {}
|
||||
}
|
||||
"/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2":
|
||||
{},
|
||||
},
|
||||
},
|
||||
location: "westus",
|
||||
sku: { name: "Standard" },
|
||||
tags: { myTag: "myTagValue" }
|
||||
tags: { myTag: "myTagValue" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreCreationParameters
|
||||
configStoreCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -89,7 +124,7 @@ async function configurationStoresCreateWithIdentity() {
|
|||
* This sample demonstrates how to Creates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Creates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json
|
||||
*/
|
||||
async function configurationStoresCreateWithLocalAuthDisabled() {
|
||||
const subscriptionId =
|
||||
|
@ -101,23 +136,24 @@ async function configurationStoresCreateWithLocalAuthDisabled() {
|
|||
const configStoreCreationParameters: ConfigurationStore = {
|
||||
disableLocalAuth: true,
|
||||
location: "westus",
|
||||
sku: { name: "Standard" }
|
||||
sku: { name: "Standard" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreCreationParameters
|
||||
configStoreCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
configurationStoresCreate();
|
||||
configurationStoresCreateWithDataPlaneProxy();
|
||||
configurationStoresCreateWithIdentity();
|
||||
configurationStoresCreateWithLocalAuthDisabled();
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Deletes a configuration store.
|
||||
*
|
||||
* @summary Deletes a configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDelete.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDelete.json
|
||||
*/
|
||||
async function configurationStoresDelete() {
|
||||
const subscriptionId =
|
||||
|
@ -30,11 +30,11 @@ async function configurationStoresDelete() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets a deleted Azure app configuration store.
|
||||
*
|
||||
* @summary Gets a deleted Azure app configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresGet.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresGet.json
|
||||
*/
|
||||
async function deletedConfigurationStoresGet() {
|
||||
const subscriptionId =
|
||||
|
@ -29,11 +29,11 @@ async function deletedConfigurationStoresGet() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.getDeleted(
|
||||
location,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the properties of the specified configuration store.
|
||||
*
|
||||
* @summary Gets the properties of the specified configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGet.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGet.json
|
||||
*/
|
||||
async function configurationStoresGet() {
|
||||
const subscriptionId =
|
||||
|
@ -30,11 +30,11 @@ async function configurationStoresGet() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.get(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists the configuration stores for a given resource group.
|
||||
*
|
||||
* @summary Lists the configuration stores for a given resource group.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListByResourceGroup.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListByResourceGroup.json
|
||||
*/
|
||||
async function configurationStoresListByResourceGroup() {
|
||||
const subscriptionId =
|
||||
|
@ -29,11 +29,11 @@ async function configurationStoresListByResourceGroup() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.configurationStores.listByResourceGroup(
|
||||
resourceGroupName
|
||||
resourceGroupName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets information about the deleted configuration stores in a subscription.
|
||||
*
|
||||
* @summary Gets information about the deleted configuration stores in a subscription.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresList.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresList.json
|
||||
*/
|
||||
async function deletedConfigurationStoresList() {
|
||||
const subscriptionId =
|
||||
|
@ -27,7 +27,7 @@ async function deletedConfigurationStoresList() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.configurationStores.listDeleted()) {
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists the access key for the specified configuration store.
|
||||
*
|
||||
* @summary Lists the access key for the specified configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListKeys.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListKeys.json
|
||||
*/
|
||||
async function configurationStoresListKeys() {
|
||||
const subscriptionId =
|
||||
|
@ -30,12 +30,12 @@ async function configurationStoresListKeys() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.configurationStores.listKeys(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists the configuration stores for a given subscription.
|
||||
*
|
||||
* @summary Lists the configuration stores for a given subscription.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresList.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresList.json
|
||||
*/
|
||||
async function configurationStoresList() {
|
||||
const subscriptionId =
|
||||
|
@ -27,7 +27,7 @@ async function configurationStoresList() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.configurationStores.list()) {
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Permanently deletes the specified configuration store.
|
||||
*
|
||||
* @summary Permanently deletes the specified configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresPurge.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresPurge.json
|
||||
*/
|
||||
async function purgeADeletedConfigurationStore() {
|
||||
const subscriptionId =
|
||||
|
@ -29,11 +29,11 @@ async function purgeADeletedConfigurationStore() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginPurgeDeletedAndWait(
|
||||
location,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
RegenerateKeyParameters,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Regenerates an access key for the specified configuration store.
|
||||
*
|
||||
* @summary Regenerates an access key for the specified configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresRegenerateKey.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresRegenerateKey.json
|
||||
*/
|
||||
async function configurationStoresRegenerateKey() {
|
||||
const subscriptionId =
|
||||
|
@ -31,17 +31,17 @@ async function configurationStoresRegenerateKey() {
|
|||
process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
|
||||
const configStoreName = "contoso";
|
||||
const regenerateKeyParameters: RegenerateKeyParameters = {
|
||||
id: "439AD01B4BE67DB1"
|
||||
id: "439AD01B4BE67DB1",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.regenerateKey(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
regenerateKeyParameters
|
||||
regenerateKeyParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
ConfigurationStoreUpdateParameters,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Updates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Updates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdate.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdate.json
|
||||
*/
|
||||
async function configurationStoresUpdate() {
|
||||
const subscriptionId =
|
||||
|
@ -32,17 +32,17 @@ async function configurationStoresUpdate() {
|
|||
const configStoreName = "contoso";
|
||||
const configStoreUpdateParameters: ConfigurationStoreUpdateParameters = {
|
||||
sku: { name: "Standard" },
|
||||
tags: { category: "Marketing" }
|
||||
tags: { category: "Marketing" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreUpdateParameters
|
||||
configStoreUpdateParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ async function configurationStoresUpdate() {
|
|||
* This sample demonstrates how to Updates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Updates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json
|
||||
*/
|
||||
async function configurationStoresUpdateDisableLocalAuth() {
|
||||
const subscriptionId =
|
||||
|
@ -62,17 +62,17 @@ async function configurationStoresUpdateDisableLocalAuth() {
|
|||
const configStoreName = "contoso";
|
||||
const configStoreUpdateParameters: ConfigurationStoreUpdateParameters = {
|
||||
disableLocalAuth: true,
|
||||
sku: { name: "Standard" }
|
||||
sku: { name: "Standard" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreUpdateParameters
|
||||
configStoreUpdateParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ async function configurationStoresUpdateDisableLocalAuth() {
|
|||
* This sample demonstrates how to Updates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Updates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateWithIdentity.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdateWithIdentity.json
|
||||
*/
|
||||
async function configurationStoresUpdateWithIdentity() {
|
||||
const subscriptionId =
|
||||
|
@ -94,21 +94,22 @@ async function configurationStoresUpdateWithIdentity() {
|
|||
identity: {
|
||||
type: "SystemAssigned, UserAssigned",
|
||||
userAssignedIdentities: {
|
||||
"/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2": {}
|
||||
}
|
||||
"/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2":
|
||||
{},
|
||||
},
|
||||
},
|
||||
sku: { name: "Standard" },
|
||||
tags: { category: "Marketing" }
|
||||
tags: { category: "Marketing" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreUpdateParameters
|
||||
configStoreUpdateParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
import {
|
||||
KeyValue,
|
||||
KeyValuesCreateOrUpdateOptionalParams,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -19,10 +19,10 @@ import * as dotenv from "dotenv";
|
|||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates a key-value.
|
||||
* This sample demonstrates how to Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
*
|
||||
* @summary Creates a key-value.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateKeyValue.json
|
||||
* @summary Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateKeyValue.json
|
||||
*/
|
||||
async function keyValuesCreateOrUpdate() {
|
||||
const subscriptionId =
|
||||
|
@ -34,19 +34,19 @@ async function keyValuesCreateOrUpdate() {
|
|||
const keyValueName = "myKey$myLabel";
|
||||
const keyValueParameters: KeyValue = {
|
||||
tags: { tag1: "tagValue1", tag2: "tagValue2" },
|
||||
value: "myValue"
|
||||
value: "myValue",
|
||||
};
|
||||
const options: KeyValuesCreateOrUpdateOptionalParams = { keyValueParameters };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.keyValues.createOrUpdate(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
keyValueName,
|
||||
options
|
||||
options,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -15,10 +15,10 @@ import * as dotenv from "dotenv";
|
|||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes a key-value.
|
||||
* This sample demonstrates how to Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
*
|
||||
* @summary Deletes a key-value.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteKeyValue.json
|
||||
* @summary Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteKeyValue.json
|
||||
*/
|
||||
async function keyValuesDelete() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function keyValuesDelete() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.keyValues.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
keyValueName
|
||||
keyValueName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -15,10 +15,10 @@ import * as dotenv from "dotenv";
|
|||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets the properties of the specified key-value.
|
||||
* This sample demonstrates how to Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
*
|
||||
* @summary Gets the properties of the specified key-value.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetKeyValue.json
|
||||
* @summary Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetKeyValue.json
|
||||
*/
|
||||
async function keyValuesGet() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function keyValuesGet() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.keyValues.get(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
keyValueName
|
||||
keyValueName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
CheckNameAvailabilityParameters,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Checks whether the configuration store name is available for use.
|
||||
*
|
||||
* @summary Checks whether the configuration store name is available for use.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameAvailable.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameAvailable.json
|
||||
*/
|
||||
async function configurationStoresCheckNameAvailable() {
|
||||
const subscriptionId =
|
||||
|
@ -29,15 +29,15 @@ async function configurationStoresCheckNameAvailable() {
|
|||
"c80fb759-c965-4c6a-9110-9b2b2d038882";
|
||||
const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = {
|
||||
name: "contoso",
|
||||
type: "Microsoft.AppConfiguration/configurationStores"
|
||||
type: "Microsoft.AppConfiguration/configurationStores",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.operations.checkNameAvailability(
|
||||
checkNameAvailabilityParameters
|
||||
checkNameAvailabilityParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ async function configurationStoresCheckNameAvailable() {
|
|||
* This sample demonstrates how to Checks whether the configuration store name is available for use.
|
||||
*
|
||||
* @summary Checks whether the configuration store name is available for use.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameNotAvailable.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameNotAvailable.json
|
||||
*/
|
||||
async function configurationStoresCheckNameNotAvailable() {
|
||||
const subscriptionId =
|
||||
|
@ -54,15 +54,15 @@ async function configurationStoresCheckNameNotAvailable() {
|
|||
"c80fb759-c965-4c6a-9110-9b2b2d038882";
|
||||
const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = {
|
||||
name: "contoso",
|
||||
type: "Microsoft.AppConfiguration/configurationStores"
|
||||
type: "Microsoft.AppConfiguration/configurationStores",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.operations.checkNameAvailability(
|
||||
checkNameAvailabilityParameters
|
||||
checkNameAvailabilityParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists the operations available from this provider.
|
||||
*
|
||||
* @summary Lists the operations available from this provider.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/OperationsList.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/OperationsList.json
|
||||
*/
|
||||
async function operationsList() {
|
||||
const subscriptionId =
|
||||
|
@ -27,7 +27,7 @@ async function operationsList() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
CheckNameAvailabilityParameters,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Checks whether the configuration store name is available for use.
|
||||
*
|
||||
* @summary Checks whether the configuration store name is available for use.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameAvailable.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameAvailable.json
|
||||
*/
|
||||
async function configurationStoresCheckNameAvailable() {
|
||||
const subscriptionId =
|
||||
|
@ -30,16 +30,16 @@ async function configurationStoresCheckNameAvailable() {
|
|||
const location = "westus";
|
||||
const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = {
|
||||
name: "contoso",
|
||||
type: "Microsoft.AppConfiguration/configurationStores"
|
||||
type: "Microsoft.AppConfiguration/configurationStores",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.operations.regionalCheckNameAvailability(
|
||||
location,
|
||||
checkNameAvailabilityParameters
|
||||
checkNameAvailabilityParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ async function configurationStoresCheckNameAvailable() {
|
|||
* This sample demonstrates how to Checks whether the configuration store name is available for use.
|
||||
*
|
||||
* @summary Checks whether the configuration store name is available for use.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameNotAvailable.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameNotAvailable.json
|
||||
*/
|
||||
async function configurationStoresCheckNameNotAvailable() {
|
||||
const subscriptionId =
|
||||
|
@ -57,16 +57,16 @@ async function configurationStoresCheckNameNotAvailable() {
|
|||
const location = "westus";
|
||||
const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = {
|
||||
name: "contoso",
|
||||
type: "Microsoft.AppConfiguration/configurationStores"
|
||||
type: "Microsoft.AppConfiguration/configurationStores",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.operations.regionalCheckNameAvailability(
|
||||
location,
|
||||
checkNameAvailabilityParameters
|
||||
checkNameAvailabilityParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
PrivateEndpointConnection,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider.
|
||||
*
|
||||
* @summary Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json
|
||||
*/
|
||||
async function privateEndpointConnectionUpdate() {
|
||||
const subscriptionId =
|
||||
|
@ -34,20 +34,21 @@ async function privateEndpointConnectionUpdate() {
|
|||
const privateEndpointConnection: PrivateEndpointConnection = {
|
||||
privateLinkServiceConnectionState: {
|
||||
description: "Auto-Approved",
|
||||
status: "Approved"
|
||||
}
|
||||
status: "Approved",
|
||||
},
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.privateEndpointConnections.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
privateEndpointConnectionName,
|
||||
privateEndpointConnection
|
||||
subscriptionId,
|
||||
);
|
||||
const result =
|
||||
await client.privateEndpointConnections.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
privateEndpointConnectionName,
|
||||
privateEndpointConnection,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Deletes a private endpoint connection.
|
||||
*
|
||||
* @summary Deletes a private endpoint connection.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json
|
||||
*/
|
||||
async function privateEndpointConnectionsDelete() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function privateEndpointConnectionsDelete() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.privateEndpointConnections.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
privateEndpointConnectionName
|
||||
privateEndpointConnectionName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the specified private endpoint connection associated with the configuration store.
|
||||
*
|
||||
* @summary Gets the specified private endpoint connection associated with the configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json
|
||||
*/
|
||||
async function privateEndpointConnectionGetConnection() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function privateEndpointConnectionGetConnection() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.privateEndpointConnections.get(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
privateEndpointConnectionName
|
||||
privateEndpointConnectionName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists all private endpoint connections for a configuration store.
|
||||
*
|
||||
* @summary Lists all private endpoint connections for a configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListPrivateEndpointConnections.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListPrivateEndpointConnections.json
|
||||
*/
|
||||
async function privateEndpointConnectionList() {
|
||||
const subscriptionId =
|
||||
|
@ -30,12 +30,12 @@ async function privateEndpointConnectionList() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.privateEndpointConnections.listByConfigurationStore(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets a private link resource that need to be created for a configuration store.
|
||||
*
|
||||
* @summary Gets a private link resource that need to be created for a configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourceGet.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourceGet.json
|
||||
*/
|
||||
async function privateLinkResourcesGet() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function privateLinkResourcesGet() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.privateLinkResources.get(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
groupName
|
||||
groupName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the private link resources that need to be created for a configuration store.
|
||||
*
|
||||
* @summary Gets the private link resources that need to be created for a configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourcesListByConfigurationStore.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourcesListByConfigurationStore.json
|
||||
*/
|
||||
async function privateLinkResourcesListGroupIds() {
|
||||
const subscriptionId =
|
||||
|
@ -30,12 +30,12 @@ async function privateLinkResourcesListGroupIds() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.privateLinkResources.listByConfigurationStore(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
Replica,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Creates a replica with the specified parameters.
|
||||
*
|
||||
* @summary Creates a replica with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateReplica.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateReplica.json
|
||||
*/
|
||||
async function replicasCreate() {
|
||||
const subscriptionId =
|
||||
|
@ -35,13 +35,13 @@ async function replicasCreate() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.replicas.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
replicaName,
|
||||
replicaCreationParameters
|
||||
replicaCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Deletes a replica.
|
||||
*
|
||||
* @summary Deletes a replica.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteReplica.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteReplica.json
|
||||
*/
|
||||
async function replicasDelete() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function replicasDelete() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.replicas.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
replicaName
|
||||
replicaName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the properties of the specified replica.
|
||||
*
|
||||
* @summary Gets the properties of the specified replica.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetReplica.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetReplica.json
|
||||
*/
|
||||
async function replicasGet() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function replicasGet() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.replicas.get(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
replicaName
|
||||
replicaName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists the replicas for a given configuration store.
|
||||
*
|
||||
* @summary Lists the replicas for a given configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListReplicas.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListReplicas.json
|
||||
*/
|
||||
async function replicasListByConfigurationStore() {
|
||||
const subscriptionId =
|
||||
|
@ -30,12 +30,12 @@ async function replicasListByConfigurationStore() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.replicas.listByConfigurationStore(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
import {
|
||||
Snapshot,
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
|
||||
*
|
||||
* @summary Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateSnapshot.json
|
||||
*/
|
||||
async function snapshotsCreate() {
|
||||
const subscriptionId =
|
||||
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] ||
|
||||
"c80fb759-c965-4c6a-9110-9b2b2d038882";
|
||||
const resourceGroupName =
|
||||
process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
|
||||
const configStoreName = "contoso";
|
||||
const snapshotName = "mySnapshot";
|
||||
const body: Snapshot = {
|
||||
filters: [{ key: "app1/*", label: "Production" }],
|
||||
retentionPeriod: 3600,
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.snapshots.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
snapshotName,
|
||||
body,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
snapshotsCreate();
|
||||
}
|
||||
|
||||
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 { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
|
||||
*
|
||||
* @summary Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetSnapshot.json
|
||||
*/
|
||||
async function snapshotsGet() {
|
||||
const subscriptionId =
|
||||
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] ||
|
||||
"c80fb759-c965-4c6a-9110-9b2b2d038882";
|
||||
const resourceGroupName =
|
||||
process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
|
||||
const configStoreName = "contoso";
|
||||
const snapshotName = "mySnapshot";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.snapshots.get(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
snapshotName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
snapshotsGet();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -4,33 +4,35 @@ These sample programs show how to use the JavaScript client libraries for in som
|
|||
|
||||
| **File Name** | **Description** |
|
||||
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| [configurationStoresCreateSample.js][configurationstorescreatesample] | Creates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json |
|
||||
| [configurationStoresDeleteSample.js][configurationstoresdeletesample] | Deletes a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDelete.json |
|
||||
| [configurationStoresGetDeletedSample.js][configurationstoresgetdeletedsample] | Gets a deleted Azure app configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresGet.json |
|
||||
| [configurationStoresGetSample.js][configurationstoresgetsample] | Gets the properties of the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGet.json |
|
||||
| [configurationStoresListByResourceGroupSample.js][configurationstoreslistbyresourcegroupsample] | Lists the configuration stores for a given resource group. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListByResourceGroup.json |
|
||||
| [configurationStoresListDeletedSample.js][configurationstoreslistdeletedsample] | Gets information about the deleted configuration stores in a subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresList.json |
|
||||
| [configurationStoresListKeysSample.js][configurationstoreslistkeyssample] | Lists the access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListKeys.json |
|
||||
| [configurationStoresListSample.js][configurationstoreslistsample] | Lists the configuration stores for a given subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresList.json |
|
||||
| [configurationStoresPurgeDeletedSample.js][configurationstorespurgedeletedsample] | Permanently deletes the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresPurge.json |
|
||||
| [configurationStoresRegenerateKeySample.js][configurationstoresregeneratekeysample] | Regenerates an access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresRegenerateKey.json |
|
||||
| [configurationStoresUpdateSample.js][configurationstoresupdatesample] | Updates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdate.json |
|
||||
| [keyValuesCreateOrUpdateSample.js][keyvaluescreateorupdatesample] | Creates a key-value. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateKeyValue.json |
|
||||
| [keyValuesDeleteSample.js][keyvaluesdeletesample] | Deletes a key-value. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteKeyValue.json |
|
||||
| [keyValuesGetSample.js][keyvaluesgetsample] | Gets the properties of the specified key-value. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetKeyValue.json |
|
||||
| [operationsCheckNameAvailabilitySample.js][operationschecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameAvailable.json |
|
||||
| [operationsListSample.js][operationslistsample] | Lists the operations available from this provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/OperationsList.json |
|
||||
| [operationsRegionalCheckNameAvailabilitySample.js][operationsregionalchecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameAvailable.json |
|
||||
| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json |
|
||||
| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json |
|
||||
| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets the specified private endpoint connection associated with the configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json |
|
||||
| [privateEndpointConnectionsListByConfigurationStoreSample.js][privateendpointconnectionslistbyconfigurationstoresample] | Lists all private endpoint connections for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListPrivateEndpointConnections.json |
|
||||
| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets a private link resource that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourceGet.json |
|
||||
| [privateLinkResourcesListByConfigurationStoreSample.js][privatelinkresourceslistbyconfigurationstoresample] | Gets the private link resources that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourcesListByConfigurationStore.json |
|
||||
| [replicasCreateSample.js][replicascreatesample] | Creates a replica with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateReplica.json |
|
||||
| [replicasDeleteSample.js][replicasdeletesample] | Deletes a replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteReplica.json |
|
||||
| [replicasGetSample.js][replicasgetsample] | Gets the properties of the specified replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetReplica.json |
|
||||
| [replicasListByConfigurationStoreSample.js][replicaslistbyconfigurationstoresample] | Lists the replicas for a given configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListReplicas.json |
|
||||
| [configurationStoresCreateSample.js][configurationstorescreatesample] | Creates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreate.json |
|
||||
| [configurationStoresDeleteSample.js][configurationstoresdeletesample] | Deletes a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDelete.json |
|
||||
| [configurationStoresGetDeletedSample.js][configurationstoresgetdeletedsample] | Gets a deleted Azure app configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresGet.json |
|
||||
| [configurationStoresGetSample.js][configurationstoresgetsample] | Gets the properties of the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGet.json |
|
||||
| [configurationStoresListByResourceGroupSample.js][configurationstoreslistbyresourcegroupsample] | Lists the configuration stores for a given resource group. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListByResourceGroup.json |
|
||||
| [configurationStoresListDeletedSample.js][configurationstoreslistdeletedsample] | Gets information about the deleted configuration stores in a subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresList.json |
|
||||
| [configurationStoresListKeysSample.js][configurationstoreslistkeyssample] | Lists the access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListKeys.json |
|
||||
| [configurationStoresListSample.js][configurationstoreslistsample] | Lists the configuration stores for a given subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresList.json |
|
||||
| [configurationStoresPurgeDeletedSample.js][configurationstorespurgedeletedsample] | Permanently deletes the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresPurge.json |
|
||||
| [configurationStoresRegenerateKeySample.js][configurationstoresregeneratekeysample] | Regenerates an access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresRegenerateKey.json |
|
||||
| [configurationStoresUpdateSample.js][configurationstoresupdatesample] | Updates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdate.json |
|
||||
| [keyValuesCreateOrUpdateSample.js][keyvaluescreateorupdatesample] | Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateKeyValue.json |
|
||||
| [keyValuesDeleteSample.js][keyvaluesdeletesample] | Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteKeyValue.json |
|
||||
| [keyValuesGetSample.js][keyvaluesgetsample] | Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetKeyValue.json |
|
||||
| [operationsCheckNameAvailabilitySample.js][operationschecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameAvailable.json |
|
||||
| [operationsListSample.js][operationslistsample] | Lists the operations available from this provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/OperationsList.json |
|
||||
| [operationsRegionalCheckNameAvailabilitySample.js][operationsregionalchecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameAvailable.json |
|
||||
| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json |
|
||||
| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json |
|
||||
| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets the specified private endpoint connection associated with the configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json |
|
||||
| [privateEndpointConnectionsListByConfigurationStoreSample.js][privateendpointconnectionslistbyconfigurationstoresample] | Lists all private endpoint connections for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListPrivateEndpointConnections.json |
|
||||
| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets a private link resource that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourceGet.json |
|
||||
| [privateLinkResourcesListByConfigurationStoreSample.js][privatelinkresourceslistbyconfigurationstoresample] | Gets the private link resources that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourcesListByConfigurationStore.json |
|
||||
| [replicasCreateSample.js][replicascreatesample] | Creates a replica with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateReplica.json |
|
||||
| [replicasDeleteSample.js][replicasdeletesample] | Deletes a replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteReplica.json |
|
||||
| [replicasGetSample.js][replicasgetsample] | Gets the properties of the specified replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetReplica.json |
|
||||
| [replicasListByConfigurationStoreSample.js][replicaslistbyconfigurationstoresample] | Lists the replicas for a given configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListReplicas.json |
|
||||
| [snapshotsCreateSample.js][snapshotscreatesample] | Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateSnapshot.json |
|
||||
| [snapshotsGetSample.js][snapshotsgetsample] | Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetSnapshot.json |
|
||||
|
||||
## Prerequisites
|
||||
|
||||
|
@ -97,6 +99,8 @@ Take a look at our [API Documentation][apiref] for more information about the AP
|
|||
[replicasdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasDeleteSample.js
|
||||
[replicasgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasGetSample.js
|
||||
[replicaslistbyconfigurationstoresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/replicasListByConfigurationStoreSample.js
|
||||
[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/snapshotsCreateSample.js
|
||||
[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/javascript/snapshotsGetSample.js
|
||||
[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-appconfiguration?view=azure-node-preview
|
||||
[freesub]: https://azure.microsoft.com/free/
|
||||
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appconfiguration/arm-appconfiguration/README.md
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Creates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Creates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreate.json
|
||||
*/
|
||||
async function configurationStoresCreate() {
|
||||
const subscriptionId =
|
||||
|
@ -33,7 +33,7 @@ async function configurationStoresCreate() {
|
|||
const result = await client.configurationStores.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreCreationParameters
|
||||
configStoreCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -42,7 +42,36 @@ async function configurationStoresCreate() {
|
|||
* This sample demonstrates how to Creates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Creates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithIdentity.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithDataPlaneProxy.json
|
||||
*/
|
||||
async function configurationStoresCreateWithDataPlaneProxy() {
|
||||
const subscriptionId =
|
||||
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
|
||||
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
|
||||
const configStoreName = "contoso";
|
||||
const configStoreCreationParameters = {
|
||||
dataPlaneProxy: {
|
||||
authenticationMode: "Pass-through",
|
||||
privateLinkDelegation: "Enabled",
|
||||
},
|
||||
location: "westus",
|
||||
sku: { name: "Standard" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(credential, subscriptionId);
|
||||
const result = await client.configurationStores.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Creates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithIdentity.json
|
||||
*/
|
||||
async function configurationStoresCreateWithIdentity() {
|
||||
const subscriptionId =
|
||||
|
@ -66,7 +95,7 @@ async function configurationStoresCreateWithIdentity() {
|
|||
const result = await client.configurationStores.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreCreationParameters
|
||||
configStoreCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -75,7 +104,7 @@ async function configurationStoresCreateWithIdentity() {
|
|||
* This sample demonstrates how to Creates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Creates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json
|
||||
*/
|
||||
async function configurationStoresCreateWithLocalAuthDisabled() {
|
||||
const subscriptionId =
|
||||
|
@ -92,13 +121,14 @@ async function configurationStoresCreateWithLocalAuthDisabled() {
|
|||
const result = await client.configurationStores.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreCreationParameters
|
||||
configStoreCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
configurationStoresCreate();
|
||||
configurationStoresCreateWithDataPlaneProxy();
|
||||
configurationStoresCreateWithIdentity();
|
||||
configurationStoresCreateWithLocalAuthDisabled();
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Deletes a configuration store.
|
||||
*
|
||||
* @summary Deletes a configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDelete.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDelete.json
|
||||
*/
|
||||
async function configurationStoresDelete() {
|
||||
const subscriptionId =
|
||||
|
@ -27,7 +27,7 @@ async function configurationStoresDelete() {
|
|||
const client = new AppConfigurationManagementClient(credential, subscriptionId);
|
||||
const result = await client.configurationStores.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Gets a deleted Azure app configuration store.
|
||||
*
|
||||
* @summary Gets a deleted Azure app configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresGet.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresGet.json
|
||||
*/
|
||||
async function deletedConfigurationStoresGet() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Gets the properties of the specified configuration store.
|
||||
*
|
||||
* @summary Gets the properties of the specified configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGet.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGet.json
|
||||
*/
|
||||
async function configurationStoresGet() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Lists the configuration stores for a given resource group.
|
||||
*
|
||||
* @summary Lists the configuration stores for a given resource group.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListByResourceGroup.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListByResourceGroup.json
|
||||
*/
|
||||
async function configurationStoresListByResourceGroup() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Gets information about the deleted configuration stores in a subscription.
|
||||
*
|
||||
* @summary Gets information about the deleted configuration stores in a subscription.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresList.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresList.json
|
||||
*/
|
||||
async function deletedConfigurationStoresList() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Lists the access key for the specified configuration store.
|
||||
*
|
||||
* @summary Lists the access key for the specified configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListKeys.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListKeys.json
|
||||
*/
|
||||
async function configurationStoresListKeys() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Lists the configuration stores for a given subscription.
|
||||
*
|
||||
* @summary Lists the configuration stores for a given subscription.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresList.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresList.json
|
||||
*/
|
||||
async function configurationStoresList() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Permanently deletes the specified configuration store.
|
||||
*
|
||||
* @summary Permanently deletes the specified configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresPurge.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresPurge.json
|
||||
*/
|
||||
async function purgeADeletedConfigurationStore() {
|
||||
const subscriptionId =
|
||||
|
@ -27,7 +27,7 @@ async function purgeADeletedConfigurationStore() {
|
|||
const client = new AppConfigurationManagementClient(credential, subscriptionId);
|
||||
const result = await client.configurationStores.beginPurgeDeletedAndWait(
|
||||
location,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Regenerates an access key for the specified configuration store.
|
||||
*
|
||||
* @summary Regenerates an access key for the specified configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresRegenerateKey.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresRegenerateKey.json
|
||||
*/
|
||||
async function configurationStoresRegenerateKey() {
|
||||
const subscriptionId =
|
||||
|
@ -31,7 +31,7 @@ async function configurationStoresRegenerateKey() {
|
|||
const result = await client.configurationStores.regenerateKey(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
regenerateKeyParameters
|
||||
regenerateKeyParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Updates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Updates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdate.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdate.json
|
||||
*/
|
||||
async function configurationStoresUpdate() {
|
||||
const subscriptionId =
|
||||
|
@ -32,7 +32,7 @@ async function configurationStoresUpdate() {
|
|||
const result = await client.configurationStores.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreUpdateParameters
|
||||
configStoreUpdateParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ async function configurationStoresUpdate() {
|
|||
* This sample demonstrates how to Updates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Updates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json
|
||||
*/
|
||||
async function configurationStoresUpdateDisableLocalAuth() {
|
||||
const subscriptionId =
|
||||
|
@ -57,7 +57,7 @@ async function configurationStoresUpdateDisableLocalAuth() {
|
|||
const result = await client.configurationStores.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreUpdateParameters
|
||||
configStoreUpdateParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ async function configurationStoresUpdateDisableLocalAuth() {
|
|||
* This sample demonstrates how to Updates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Updates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateWithIdentity.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdateWithIdentity.json
|
||||
*/
|
||||
async function configurationStoresUpdateWithIdentity() {
|
||||
const subscriptionId =
|
||||
|
@ -89,7 +89,7 @@ async function configurationStoresUpdateWithIdentity() {
|
|||
const result = await client.configurationStores.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreUpdateParameters
|
||||
configStoreUpdateParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity");
|
|||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates a key-value.
|
||||
* This sample demonstrates how to Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
*
|
||||
* @summary Creates a key-value.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateKeyValue.json
|
||||
* @summary Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateKeyValue.json
|
||||
*/
|
||||
async function keyValuesCreateOrUpdate() {
|
||||
const subscriptionId =
|
||||
|
@ -35,7 +35,7 @@ async function keyValuesCreateOrUpdate() {
|
|||
resourceGroupName,
|
||||
configStoreName,
|
||||
keyValueName,
|
||||
options
|
||||
options,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity");
|
|||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes a key-value.
|
||||
* This sample demonstrates how to Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
*
|
||||
* @summary Deletes a key-value.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteKeyValue.json
|
||||
* @summary Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteKeyValue.json
|
||||
*/
|
||||
async function keyValuesDelete() {
|
||||
const subscriptionId =
|
||||
|
@ -29,7 +29,7 @@ async function keyValuesDelete() {
|
|||
const result = await client.keyValues.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
keyValueName
|
||||
keyValueName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -13,10 +13,10 @@ const { DefaultAzureCredential } = require("@azure/identity");
|
|||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets the properties of the specified key-value.
|
||||
* This sample demonstrates how to Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
*
|
||||
* @summary Gets the properties of the specified key-value.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetKeyValue.json
|
||||
* @summary Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetKeyValue.json
|
||||
*/
|
||||
async function keyValuesGet() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Checks whether the configuration store name is available for use.
|
||||
*
|
||||
* @summary Checks whether the configuration store name is available for use.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameAvailable.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameAvailable.json
|
||||
*/
|
||||
async function configurationStoresCheckNameAvailable() {
|
||||
const subscriptionId =
|
||||
|
@ -35,7 +35,7 @@ async function configurationStoresCheckNameAvailable() {
|
|||
* This sample demonstrates how to Checks whether the configuration store name is available for use.
|
||||
*
|
||||
* @summary Checks whether the configuration store name is available for use.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameNotAvailable.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameNotAvailable.json
|
||||
*/
|
||||
async function configurationStoresCheckNameNotAvailable() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Lists the operations available from this provider.
|
||||
*
|
||||
* @summary Lists the operations available from this provider.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/OperationsList.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/OperationsList.json
|
||||
*/
|
||||
async function operationsList() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Checks whether the configuration store name is available for use.
|
||||
*
|
||||
* @summary Checks whether the configuration store name is available for use.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameAvailable.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameAvailable.json
|
||||
*/
|
||||
async function configurationStoresCheckNameAvailable() {
|
||||
const subscriptionId =
|
||||
|
@ -30,7 +30,7 @@ async function configurationStoresCheckNameAvailable() {
|
|||
const client = new AppConfigurationManagementClient(credential, subscriptionId);
|
||||
const result = await client.operations.regionalCheckNameAvailability(
|
||||
location,
|
||||
checkNameAvailabilityParameters
|
||||
checkNameAvailabilityParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ async function configurationStoresCheckNameAvailable() {
|
|||
* This sample demonstrates how to Checks whether the configuration store name is available for use.
|
||||
*
|
||||
* @summary Checks whether the configuration store name is available for use.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameNotAvailable.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameNotAvailable.json
|
||||
*/
|
||||
async function configurationStoresCheckNameNotAvailable() {
|
||||
const subscriptionId =
|
||||
|
@ -53,7 +53,7 @@ async function configurationStoresCheckNameNotAvailable() {
|
|||
const client = new AppConfigurationManagementClient(credential, subscriptionId);
|
||||
const result = await client.operations.regionalCheckNameAvailability(
|
||||
location,
|
||||
checkNameAvailabilityParameters
|
||||
checkNameAvailabilityParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider.
|
||||
*
|
||||
* @summary Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json
|
||||
*/
|
||||
async function privateEndpointConnectionUpdate() {
|
||||
const subscriptionId =
|
||||
|
@ -36,7 +36,7 @@ async function privateEndpointConnectionUpdate() {
|
|||
resourceGroupName,
|
||||
configStoreName,
|
||||
privateEndpointConnectionName,
|
||||
privateEndpointConnection
|
||||
privateEndpointConnection,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Deletes a private endpoint connection.
|
||||
*
|
||||
* @summary Deletes a private endpoint connection.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json
|
||||
*/
|
||||
async function privateEndpointConnectionsDelete() {
|
||||
const subscriptionId =
|
||||
|
@ -29,7 +29,7 @@ async function privateEndpointConnectionsDelete() {
|
|||
const result = await client.privateEndpointConnections.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
privateEndpointConnectionName
|
||||
privateEndpointConnectionName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Gets the specified private endpoint connection associated with the configuration store.
|
||||
*
|
||||
* @summary Gets the specified private endpoint connection associated with the configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json
|
||||
*/
|
||||
async function privateEndpointConnectionGetConnection() {
|
||||
const subscriptionId =
|
||||
|
@ -29,7 +29,7 @@ async function privateEndpointConnectionGetConnection() {
|
|||
const result = await client.privateEndpointConnections.get(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
privateEndpointConnectionName
|
||||
privateEndpointConnectionName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Lists all private endpoint connections for a configuration store.
|
||||
*
|
||||
* @summary Lists all private endpoint connections for a configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListPrivateEndpointConnections.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListPrivateEndpointConnections.json
|
||||
*/
|
||||
async function privateEndpointConnectionList() {
|
||||
const subscriptionId =
|
||||
|
@ -28,7 +28,7 @@ async function privateEndpointConnectionList() {
|
|||
const resArray = new Array();
|
||||
for await (let item of client.privateEndpointConnections.listByConfigurationStore(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Gets a private link resource that need to be created for a configuration store.
|
||||
*
|
||||
* @summary Gets a private link resource that need to be created for a configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourceGet.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourceGet.json
|
||||
*/
|
||||
async function privateLinkResourcesGet() {
|
||||
const subscriptionId =
|
||||
|
@ -29,7 +29,7 @@ async function privateLinkResourcesGet() {
|
|||
const result = await client.privateLinkResources.get(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
groupName
|
||||
groupName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Gets the private link resources that need to be created for a configuration store.
|
||||
*
|
||||
* @summary Gets the private link resources that need to be created for a configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourcesListByConfigurationStore.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourcesListByConfigurationStore.json
|
||||
*/
|
||||
async function privateLinkResourcesListGroupIds() {
|
||||
const subscriptionId =
|
||||
|
@ -28,7 +28,7 @@ async function privateLinkResourcesListGroupIds() {
|
|||
const resArray = new Array();
|
||||
for await (let item of client.privateLinkResources.listByConfigurationStore(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Creates a replica with the specified parameters.
|
||||
*
|
||||
* @summary Creates a replica with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateReplica.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateReplica.json
|
||||
*/
|
||||
async function replicasCreate() {
|
||||
const subscriptionId =
|
||||
|
@ -31,7 +31,7 @@ async function replicasCreate() {
|
|||
resourceGroupName,
|
||||
configStoreName,
|
||||
replicaName,
|
||||
replicaCreationParameters
|
||||
replicaCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Deletes a replica.
|
||||
*
|
||||
* @summary Deletes a replica.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteReplica.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteReplica.json
|
||||
*/
|
||||
async function replicasDelete() {
|
||||
const subscriptionId =
|
||||
|
@ -29,7 +29,7 @@ async function replicasDelete() {
|
|||
const result = await client.replicas.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
replicaName
|
||||
replicaName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Gets the properties of the specified replica.
|
||||
*
|
||||
* @summary Gets the properties of the specified replica.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetReplica.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetReplica.json
|
||||
*/
|
||||
async function replicasGet() {
|
||||
const subscriptionId =
|
||||
|
|
|
@ -16,7 +16,7 @@ require("dotenv").config();
|
|||
* This sample demonstrates how to Lists the replicas for a given configuration store.
|
||||
*
|
||||
* @summary Lists the replicas for a given configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListReplicas.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListReplicas.json
|
||||
*/
|
||||
async function replicasListByConfigurationStore() {
|
||||
const subscriptionId =
|
||||
|
@ -28,7 +28,7 @@ async function replicasListByConfigurationStore() {
|
|||
const resArray = new Array();
|
||||
for await (let item of client.replicas.listByConfigurationStore(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* 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 { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
|
||||
*
|
||||
* @summary Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateSnapshot.json
|
||||
*/
|
||||
async function snapshotsCreate() {
|
||||
const subscriptionId =
|
||||
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
|
||||
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
|
||||
const configStoreName = "contoso";
|
||||
const snapshotName = "mySnapshot";
|
||||
const body = {
|
||||
filters: [{ key: "app1/*", label: "Production" }],
|
||||
retentionPeriod: 3600,
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(credential, subscriptionId);
|
||||
const result = await client.snapshots.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
snapshotName,
|
||||
body,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
snapshotsCreate();
|
||||
}
|
||||
|
||||
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 { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
|
||||
*
|
||||
* @summary Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetSnapshot.json
|
||||
*/
|
||||
async function snapshotsGet() {
|
||||
const subscriptionId =
|
||||
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
|
||||
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
|
||||
const configStoreName = "contoso";
|
||||
const snapshotName = "mySnapshot";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(credential, subscriptionId);
|
||||
const result = await client.snapshots.get(resourceGroupName, configStoreName, snapshotName);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
snapshotsGet();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -4,33 +4,35 @@ These sample programs show how to use the TypeScript client libraries for in som
|
|||
|
||||
| **File Name** | **Description** |
|
||||
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| [configurationStoresCreateSample.ts][configurationstorescreatesample] | Creates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json |
|
||||
| [configurationStoresDeleteSample.ts][configurationstoresdeletesample] | Deletes a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDelete.json |
|
||||
| [configurationStoresGetDeletedSample.ts][configurationstoresgetdeletedsample] | Gets a deleted Azure app configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresGet.json |
|
||||
| [configurationStoresGetSample.ts][configurationstoresgetsample] | Gets the properties of the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGet.json |
|
||||
| [configurationStoresListByResourceGroupSample.ts][configurationstoreslistbyresourcegroupsample] | Lists the configuration stores for a given resource group. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListByResourceGroup.json |
|
||||
| [configurationStoresListDeletedSample.ts][configurationstoreslistdeletedsample] | Gets information about the deleted configuration stores in a subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresList.json |
|
||||
| [configurationStoresListKeysSample.ts][configurationstoreslistkeyssample] | Lists the access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListKeys.json |
|
||||
| [configurationStoresListSample.ts][configurationstoreslistsample] | Lists the configuration stores for a given subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresList.json |
|
||||
| [configurationStoresPurgeDeletedSample.ts][configurationstorespurgedeletedsample] | Permanently deletes the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresPurge.json |
|
||||
| [configurationStoresRegenerateKeySample.ts][configurationstoresregeneratekeysample] | Regenerates an access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresRegenerateKey.json |
|
||||
| [configurationStoresUpdateSample.ts][configurationstoresupdatesample] | Updates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdate.json |
|
||||
| [keyValuesCreateOrUpdateSample.ts][keyvaluescreateorupdatesample] | Creates a key-value. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateKeyValue.json |
|
||||
| [keyValuesDeleteSample.ts][keyvaluesdeletesample] | Deletes a key-value. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteKeyValue.json |
|
||||
| [keyValuesGetSample.ts][keyvaluesgetsample] | Gets the properties of the specified key-value. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetKeyValue.json |
|
||||
| [operationsCheckNameAvailabilitySample.ts][operationschecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameAvailable.json |
|
||||
| [operationsListSample.ts][operationslistsample] | Lists the operations available from this provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/OperationsList.json |
|
||||
| [operationsRegionalCheckNameAvailabilitySample.ts][operationsregionalchecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameAvailable.json |
|
||||
| [privateEndpointConnectionsCreateOrUpdateSample.ts][privateendpointconnectionscreateorupdatesample] | Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json |
|
||||
| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json |
|
||||
| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Gets the specified private endpoint connection associated with the configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json |
|
||||
| [privateEndpointConnectionsListByConfigurationStoreSample.ts][privateendpointconnectionslistbyconfigurationstoresample] | Lists all private endpoint connections for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListPrivateEndpointConnections.json |
|
||||
| [privateLinkResourcesGetSample.ts][privatelinkresourcesgetsample] | Gets a private link resource that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourceGet.json |
|
||||
| [privateLinkResourcesListByConfigurationStoreSample.ts][privatelinkresourceslistbyconfigurationstoresample] | Gets the private link resources that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourcesListByConfigurationStore.json |
|
||||
| [replicasCreateSample.ts][replicascreatesample] | Creates a replica with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateReplica.json |
|
||||
| [replicasDeleteSample.ts][replicasdeletesample] | Deletes a replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteReplica.json |
|
||||
| [replicasGetSample.ts][replicasgetsample] | Gets the properties of the specified replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetReplica.json |
|
||||
| [replicasListByConfigurationStoreSample.ts][replicaslistbyconfigurationstoresample] | Lists the replicas for a given configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListReplicas.json |
|
||||
| [configurationStoresCreateSample.ts][configurationstorescreatesample] | Creates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreate.json |
|
||||
| [configurationStoresDeleteSample.ts][configurationstoresdeletesample] | Deletes a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDelete.json |
|
||||
| [configurationStoresGetDeletedSample.ts][configurationstoresgetdeletedsample] | Gets a deleted Azure app configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresGet.json |
|
||||
| [configurationStoresGetSample.ts][configurationstoresgetsample] | Gets the properties of the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGet.json |
|
||||
| [configurationStoresListByResourceGroupSample.ts][configurationstoreslistbyresourcegroupsample] | Lists the configuration stores for a given resource group. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListByResourceGroup.json |
|
||||
| [configurationStoresListDeletedSample.ts][configurationstoreslistdeletedsample] | Gets information about the deleted configuration stores in a subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresList.json |
|
||||
| [configurationStoresListKeysSample.ts][configurationstoreslistkeyssample] | Lists the access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListKeys.json |
|
||||
| [configurationStoresListSample.ts][configurationstoreslistsample] | Lists the configuration stores for a given subscription. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresList.json |
|
||||
| [configurationStoresPurgeDeletedSample.ts][configurationstorespurgedeletedsample] | Permanently deletes the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresPurge.json |
|
||||
| [configurationStoresRegenerateKeySample.ts][configurationstoresregeneratekeysample] | Regenerates an access key for the specified configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresRegenerateKey.json |
|
||||
| [configurationStoresUpdateSample.ts][configurationstoresupdatesample] | Updates a configuration store with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdate.json |
|
||||
| [keyValuesCreateOrUpdateSample.ts][keyvaluescreateorupdatesample] | Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateKeyValue.json |
|
||||
| [keyValuesDeleteSample.ts][keyvaluesdeletesample] | Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteKeyValue.json |
|
||||
| [keyValuesGetSample.ts][keyvaluesgetsample] | Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetKeyValue.json |
|
||||
| [operationsCheckNameAvailabilitySample.ts][operationschecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameAvailable.json |
|
||||
| [operationsListSample.ts][operationslistsample] | Lists the operations available from this provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/OperationsList.json |
|
||||
| [operationsRegionalCheckNameAvailabilitySample.ts][operationsregionalchecknameavailabilitysample] | Checks whether the configuration store name is available for use. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameAvailable.json |
|
||||
| [privateEndpointConnectionsCreateOrUpdateSample.ts][privateendpointconnectionscreateorupdatesample] | Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json |
|
||||
| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json |
|
||||
| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Gets the specified private endpoint connection associated with the configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json |
|
||||
| [privateEndpointConnectionsListByConfigurationStoreSample.ts][privateendpointconnectionslistbyconfigurationstoresample] | Lists all private endpoint connections for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListPrivateEndpointConnections.json |
|
||||
| [privateLinkResourcesGetSample.ts][privatelinkresourcesgetsample] | Gets a private link resource that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourceGet.json |
|
||||
| [privateLinkResourcesListByConfigurationStoreSample.ts][privatelinkresourceslistbyconfigurationstoresample] | Gets the private link resources that need to be created for a configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourcesListByConfigurationStore.json |
|
||||
| [replicasCreateSample.ts][replicascreatesample] | Creates a replica with the specified parameters. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateReplica.json |
|
||||
| [replicasDeleteSample.ts][replicasdeletesample] | Deletes a replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteReplica.json |
|
||||
| [replicasGetSample.ts][replicasgetsample] | Gets the properties of the specified replica. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetReplica.json |
|
||||
| [replicasListByConfigurationStoreSample.ts][replicaslistbyconfigurationstoresample] | Lists the replicas for a given configuration store. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListReplicas.json |
|
||||
| [snapshotsCreateSample.ts][snapshotscreatesample] | Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateSnapshot.json |
|
||||
| [snapshotsGetSample.ts][snapshotsgetsample] | Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead. x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetSnapshot.json |
|
||||
|
||||
## Prerequisites
|
||||
|
||||
|
@ -109,6 +111,8 @@ Take a look at our [API Documentation][apiref] for more information about the AP
|
|||
[replicasdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasDeleteSample.ts
|
||||
[replicasgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasGetSample.ts
|
||||
[replicaslistbyconfigurationstoresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasListByConfigurationStoreSample.ts
|
||||
[snapshotscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsCreateSample.ts
|
||||
[snapshotsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsGetSample.ts
|
||||
[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-appconfiguration?view=azure-node-preview
|
||||
[freesub]: https://azure.microsoft.com/free/
|
||||
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appconfiguration/arm-appconfiguration/README.md
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
ConfigurationStore,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Creates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Creates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreate.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreate.json
|
||||
*/
|
||||
async function configurationStoresCreate() {
|
||||
const subscriptionId =
|
||||
|
@ -33,17 +33,17 @@ async function configurationStoresCreate() {
|
|||
const configStoreCreationParameters: ConfigurationStore = {
|
||||
location: "westus",
|
||||
sku: { name: "Standard" },
|
||||
tags: { myTag: "myTagValue" }
|
||||
tags: { myTag: "myTagValue" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreCreationParameters
|
||||
configStoreCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -52,7 +52,41 @@ async function configurationStoresCreate() {
|
|||
* This sample demonstrates how to Creates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Creates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithIdentity.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithDataPlaneProxy.json
|
||||
*/
|
||||
async function configurationStoresCreateWithDataPlaneProxy() {
|
||||
const subscriptionId =
|
||||
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] ||
|
||||
"c80fb759-c965-4c6a-9110-9b2b2d038882";
|
||||
const resourceGroupName =
|
||||
process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
|
||||
const configStoreName = "contoso";
|
||||
const configStoreCreationParameters: ConfigurationStore = {
|
||||
dataPlaneProxy: {
|
||||
authenticationMode: "Pass-through",
|
||||
privateLinkDelegation: "Enabled",
|
||||
},
|
||||
location: "westus",
|
||||
sku: { name: "Standard" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Creates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithIdentity.json
|
||||
*/
|
||||
async function configurationStoresCreateWithIdentity() {
|
||||
const subscriptionId =
|
||||
|
@ -65,22 +99,23 @@ async function configurationStoresCreateWithIdentity() {
|
|||
identity: {
|
||||
type: "SystemAssigned, UserAssigned",
|
||||
userAssignedIdentities: {
|
||||
"/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2": {}
|
||||
}
|
||||
"/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2":
|
||||
{},
|
||||
},
|
||||
},
|
||||
location: "westus",
|
||||
sku: { name: "Standard" },
|
||||
tags: { myTag: "myTagValue" }
|
||||
tags: { myTag: "myTagValue" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreCreationParameters
|
||||
configStoreCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -89,7 +124,7 @@ async function configurationStoresCreateWithIdentity() {
|
|||
* This sample demonstrates how to Creates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Creates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateWithLocalAuthDisabled.json
|
||||
*/
|
||||
async function configurationStoresCreateWithLocalAuthDisabled() {
|
||||
const subscriptionId =
|
||||
|
@ -101,23 +136,24 @@ async function configurationStoresCreateWithLocalAuthDisabled() {
|
|||
const configStoreCreationParameters: ConfigurationStore = {
|
||||
disableLocalAuth: true,
|
||||
location: "westus",
|
||||
sku: { name: "Standard" }
|
||||
sku: { name: "Standard" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreCreationParameters
|
||||
configStoreCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
configurationStoresCreate();
|
||||
configurationStoresCreateWithDataPlaneProxy();
|
||||
configurationStoresCreateWithIdentity();
|
||||
configurationStoresCreateWithLocalAuthDisabled();
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Deletes a configuration store.
|
||||
*
|
||||
* @summary Deletes a configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDelete.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDelete.json
|
||||
*/
|
||||
async function configurationStoresDelete() {
|
||||
const subscriptionId =
|
||||
|
@ -30,11 +30,11 @@ async function configurationStoresDelete() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets a deleted Azure app configuration store.
|
||||
*
|
||||
* @summary Gets a deleted Azure app configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresGet.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresGet.json
|
||||
*/
|
||||
async function deletedConfigurationStoresGet() {
|
||||
const subscriptionId =
|
||||
|
@ -29,11 +29,11 @@ async function deletedConfigurationStoresGet() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.getDeleted(
|
||||
location,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the properties of the specified configuration store.
|
||||
*
|
||||
* @summary Gets the properties of the specified configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGet.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGet.json
|
||||
*/
|
||||
async function configurationStoresGet() {
|
||||
const subscriptionId =
|
||||
|
@ -30,11 +30,11 @@ async function configurationStoresGet() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.get(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists the configuration stores for a given resource group.
|
||||
*
|
||||
* @summary Lists the configuration stores for a given resource group.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListByResourceGroup.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListByResourceGroup.json
|
||||
*/
|
||||
async function configurationStoresListByResourceGroup() {
|
||||
const subscriptionId =
|
||||
|
@ -29,11 +29,11 @@ async function configurationStoresListByResourceGroup() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.configurationStores.listByResourceGroup(
|
||||
resourceGroupName
|
||||
resourceGroupName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets information about the deleted configuration stores in a subscription.
|
||||
*
|
||||
* @summary Gets information about the deleted configuration stores in a subscription.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresList.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresList.json
|
||||
*/
|
||||
async function deletedConfigurationStoresList() {
|
||||
const subscriptionId =
|
||||
|
@ -27,7 +27,7 @@ async function deletedConfigurationStoresList() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.configurationStores.listDeleted()) {
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists the access key for the specified configuration store.
|
||||
*
|
||||
* @summary Lists the access key for the specified configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListKeys.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListKeys.json
|
||||
*/
|
||||
async function configurationStoresListKeys() {
|
||||
const subscriptionId =
|
||||
|
@ -30,12 +30,12 @@ async function configurationStoresListKeys() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.configurationStores.listKeys(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists the configuration stores for a given subscription.
|
||||
*
|
||||
* @summary Lists the configuration stores for a given subscription.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresList.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresList.json
|
||||
*/
|
||||
async function configurationStoresList() {
|
||||
const subscriptionId =
|
||||
|
@ -27,7 +27,7 @@ async function configurationStoresList() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.configurationStores.list()) {
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Permanently deletes the specified configuration store.
|
||||
*
|
||||
* @summary Permanently deletes the specified configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/DeletedConfigurationStoresPurge.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/DeletedConfigurationStoresPurge.json
|
||||
*/
|
||||
async function purgeADeletedConfigurationStore() {
|
||||
const subscriptionId =
|
||||
|
@ -29,11 +29,11 @@ async function purgeADeletedConfigurationStore() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginPurgeDeletedAndWait(
|
||||
location,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
RegenerateKeyParameters,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Regenerates an access key for the specified configuration store.
|
||||
*
|
||||
* @summary Regenerates an access key for the specified configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresRegenerateKey.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresRegenerateKey.json
|
||||
*/
|
||||
async function configurationStoresRegenerateKey() {
|
||||
const subscriptionId =
|
||||
|
@ -31,17 +31,17 @@ async function configurationStoresRegenerateKey() {
|
|||
process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
|
||||
const configStoreName = "contoso";
|
||||
const regenerateKeyParameters: RegenerateKeyParameters = {
|
||||
id: "439AD01B4BE67DB1"
|
||||
id: "439AD01B4BE67DB1",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.regenerateKey(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
regenerateKeyParameters
|
||||
regenerateKeyParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
ConfigurationStoreUpdateParameters,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Updates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Updates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdate.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdate.json
|
||||
*/
|
||||
async function configurationStoresUpdate() {
|
||||
const subscriptionId =
|
||||
|
@ -32,17 +32,17 @@ async function configurationStoresUpdate() {
|
|||
const configStoreName = "contoso";
|
||||
const configStoreUpdateParameters: ConfigurationStoreUpdateParameters = {
|
||||
sku: { name: "Standard" },
|
||||
tags: { category: "Marketing" }
|
||||
tags: { category: "Marketing" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreUpdateParameters
|
||||
configStoreUpdateParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ async function configurationStoresUpdate() {
|
|||
* This sample demonstrates how to Updates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Updates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json
|
||||
*/
|
||||
async function configurationStoresUpdateDisableLocalAuth() {
|
||||
const subscriptionId =
|
||||
|
@ -62,17 +62,17 @@ async function configurationStoresUpdateDisableLocalAuth() {
|
|||
const configStoreName = "contoso";
|
||||
const configStoreUpdateParameters: ConfigurationStoreUpdateParameters = {
|
||||
disableLocalAuth: true,
|
||||
sku: { name: "Standard" }
|
||||
sku: { name: "Standard" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreUpdateParameters
|
||||
configStoreUpdateParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ async function configurationStoresUpdateDisableLocalAuth() {
|
|||
* This sample demonstrates how to Updates a configuration store with the specified parameters.
|
||||
*
|
||||
* @summary Updates a configuration store with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdateWithIdentity.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdateWithIdentity.json
|
||||
*/
|
||||
async function configurationStoresUpdateWithIdentity() {
|
||||
const subscriptionId =
|
||||
|
@ -94,21 +94,22 @@ async function configurationStoresUpdateWithIdentity() {
|
|||
identity: {
|
||||
type: "SystemAssigned, UserAssigned",
|
||||
userAssignedIdentities: {
|
||||
"/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2": {}
|
||||
}
|
||||
"/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2":
|
||||
{},
|
||||
},
|
||||
},
|
||||
sku: { name: "Standard" },
|
||||
tags: { category: "Marketing" }
|
||||
tags: { category: "Marketing" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.configurationStores.beginUpdateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
configStoreUpdateParameters
|
||||
configStoreUpdateParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
import {
|
||||
KeyValue,
|
||||
KeyValuesCreateOrUpdateOptionalParams,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -19,10 +19,10 @@ import * as dotenv from "dotenv";
|
|||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates a key-value.
|
||||
* This sample demonstrates how to Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
*
|
||||
* @summary Creates a key-value.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateKeyValue.json
|
||||
* @summary Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateKeyValue.json
|
||||
*/
|
||||
async function keyValuesCreateOrUpdate() {
|
||||
const subscriptionId =
|
||||
|
@ -34,19 +34,19 @@ async function keyValuesCreateOrUpdate() {
|
|||
const keyValueName = "myKey$myLabel";
|
||||
const keyValueParameters: KeyValue = {
|
||||
tags: { tag1: "tagValue1", tag2: "tagValue2" },
|
||||
value: "myValue"
|
||||
value: "myValue",
|
||||
};
|
||||
const options: KeyValuesCreateOrUpdateOptionalParams = { keyValueParameters };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.keyValues.createOrUpdate(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
keyValueName,
|
||||
options
|
||||
options,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -15,10 +15,10 @@ import * as dotenv from "dotenv";
|
|||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes a key-value.
|
||||
* This sample demonstrates how to Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
*
|
||||
* @summary Deletes a key-value.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteKeyValue.json
|
||||
* @summary Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteKeyValue.json
|
||||
*/
|
||||
async function keyValuesDelete() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function keyValuesDelete() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.keyValues.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
keyValueName
|
||||
keyValueName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -15,10 +15,10 @@ import * as dotenv from "dotenv";
|
|||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets the properties of the specified key-value.
|
||||
* This sample demonstrates how to Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
*
|
||||
* @summary Gets the properties of the specified key-value.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetKeyValue.json
|
||||
* @summary Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetKeyValue.json
|
||||
*/
|
||||
async function keyValuesGet() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function keyValuesGet() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.keyValues.get(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
keyValueName
|
||||
keyValueName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
CheckNameAvailabilityParameters,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Checks whether the configuration store name is available for use.
|
||||
*
|
||||
* @summary Checks whether the configuration store name is available for use.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameAvailable.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameAvailable.json
|
||||
*/
|
||||
async function configurationStoresCheckNameAvailable() {
|
||||
const subscriptionId =
|
||||
|
@ -29,15 +29,15 @@ async function configurationStoresCheckNameAvailable() {
|
|||
"c80fb759-c965-4c6a-9110-9b2b2d038882";
|
||||
const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = {
|
||||
name: "contoso",
|
||||
type: "Microsoft.AppConfiguration/configurationStores"
|
||||
type: "Microsoft.AppConfiguration/configurationStores",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.operations.checkNameAvailability(
|
||||
checkNameAvailabilityParameters
|
||||
checkNameAvailabilityParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ async function configurationStoresCheckNameAvailable() {
|
|||
* This sample demonstrates how to Checks whether the configuration store name is available for use.
|
||||
*
|
||||
* @summary Checks whether the configuration store name is available for use.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/CheckNameNotAvailable.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/CheckNameNotAvailable.json
|
||||
*/
|
||||
async function configurationStoresCheckNameNotAvailable() {
|
||||
const subscriptionId =
|
||||
|
@ -54,15 +54,15 @@ async function configurationStoresCheckNameNotAvailable() {
|
|||
"c80fb759-c965-4c6a-9110-9b2b2d038882";
|
||||
const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = {
|
||||
name: "contoso",
|
||||
type: "Microsoft.AppConfiguration/configurationStores"
|
||||
type: "Microsoft.AppConfiguration/configurationStores",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.operations.checkNameAvailability(
|
||||
checkNameAvailabilityParameters
|
||||
checkNameAvailabilityParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists the operations available from this provider.
|
||||
*
|
||||
* @summary Lists the operations available from this provider.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/OperationsList.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/OperationsList.json
|
||||
*/
|
||||
async function operationsList() {
|
||||
const subscriptionId =
|
||||
|
@ -27,7 +27,7 @@ async function operationsList() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
CheckNameAvailabilityParameters,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Checks whether the configuration store name is available for use.
|
||||
*
|
||||
* @summary Checks whether the configuration store name is available for use.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameAvailable.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameAvailable.json
|
||||
*/
|
||||
async function configurationStoresCheckNameAvailable() {
|
||||
const subscriptionId =
|
||||
|
@ -30,16 +30,16 @@ async function configurationStoresCheckNameAvailable() {
|
|||
const location = "westus";
|
||||
const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = {
|
||||
name: "contoso",
|
||||
type: "Microsoft.AppConfiguration/configurationStores"
|
||||
type: "Microsoft.AppConfiguration/configurationStores",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.operations.regionalCheckNameAvailability(
|
||||
location,
|
||||
checkNameAvailabilityParameters
|
||||
checkNameAvailabilityParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ async function configurationStoresCheckNameAvailable() {
|
|||
* This sample demonstrates how to Checks whether the configuration store name is available for use.
|
||||
*
|
||||
* @summary Checks whether the configuration store name is available for use.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/RegionalCheckNameNotAvailable.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/RegionalCheckNameNotAvailable.json
|
||||
*/
|
||||
async function configurationStoresCheckNameNotAvailable() {
|
||||
const subscriptionId =
|
||||
|
@ -57,16 +57,16 @@ async function configurationStoresCheckNameNotAvailable() {
|
|||
const location = "westus";
|
||||
const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = {
|
||||
name: "contoso",
|
||||
type: "Microsoft.AppConfiguration/configurationStores"
|
||||
type: "Microsoft.AppConfiguration/configurationStores",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.operations.regionalCheckNameAvailability(
|
||||
location,
|
||||
checkNameAvailabilityParameters
|
||||
checkNameAvailabilityParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
PrivateEndpointConnection,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider.
|
||||
*
|
||||
* @summary Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json
|
||||
*/
|
||||
async function privateEndpointConnectionUpdate() {
|
||||
const subscriptionId =
|
||||
|
@ -34,20 +34,21 @@ async function privateEndpointConnectionUpdate() {
|
|||
const privateEndpointConnection: PrivateEndpointConnection = {
|
||||
privateLinkServiceConnectionState: {
|
||||
description: "Auto-Approved",
|
||||
status: "Approved"
|
||||
}
|
||||
status: "Approved",
|
||||
},
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
);
|
||||
const result = await client.privateEndpointConnections.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
privateEndpointConnectionName,
|
||||
privateEndpointConnection
|
||||
subscriptionId,
|
||||
);
|
||||
const result =
|
||||
await client.privateEndpointConnections.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
privateEndpointConnectionName,
|
||||
privateEndpointConnection,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Deletes a private endpoint connection.
|
||||
*
|
||||
* @summary Deletes a private endpoint connection.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json
|
||||
*/
|
||||
async function privateEndpointConnectionsDelete() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function privateEndpointConnectionsDelete() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.privateEndpointConnections.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
privateEndpointConnectionName
|
||||
privateEndpointConnectionName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the specified private endpoint connection associated with the configuration store.
|
||||
*
|
||||
* @summary Gets the specified private endpoint connection associated with the configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json
|
||||
*/
|
||||
async function privateEndpointConnectionGetConnection() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function privateEndpointConnectionGetConnection() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.privateEndpointConnections.get(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
privateEndpointConnectionName
|
||||
privateEndpointConnectionName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists all private endpoint connections for a configuration store.
|
||||
*
|
||||
* @summary Lists all private endpoint connections for a configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListPrivateEndpointConnections.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListPrivateEndpointConnections.json
|
||||
*/
|
||||
async function privateEndpointConnectionList() {
|
||||
const subscriptionId =
|
||||
|
@ -30,12 +30,12 @@ async function privateEndpointConnectionList() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.privateEndpointConnections.listByConfigurationStore(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets a private link resource that need to be created for a configuration store.
|
||||
*
|
||||
* @summary Gets a private link resource that need to be created for a configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourceGet.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourceGet.json
|
||||
*/
|
||||
async function privateLinkResourcesGet() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function privateLinkResourcesGet() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.privateLinkResources.get(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
groupName
|
||||
groupName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the private link resources that need to be created for a configuration store.
|
||||
*
|
||||
* @summary Gets the private link resources that need to be created for a configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/PrivateLinkResourcesListByConfigurationStore.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/PrivateLinkResourcesListByConfigurationStore.json
|
||||
*/
|
||||
async function privateLinkResourcesListGroupIds() {
|
||||
const subscriptionId =
|
||||
|
@ -30,12 +30,12 @@ async function privateLinkResourcesListGroupIds() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.privateLinkResources.listByConfigurationStore(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
// Licensed under the MIT License.
|
||||
import {
|
||||
Replica,
|
||||
AppConfigurationManagementClient
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
@ -21,7 +21,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Creates a replica with the specified parameters.
|
||||
*
|
||||
* @summary Creates a replica with the specified parameters.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresCreateReplica.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateReplica.json
|
||||
*/
|
||||
async function replicasCreate() {
|
||||
const subscriptionId =
|
||||
|
@ -35,13 +35,13 @@ async function replicasCreate() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.replicas.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
replicaName,
|
||||
replicaCreationParameters
|
||||
replicaCreationParameters,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Deletes a replica.
|
||||
*
|
||||
* @summary Deletes a replica.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresDeleteReplica.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteReplica.json
|
||||
*/
|
||||
async function replicasDelete() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function replicasDelete() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.replicas.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
replicaName
|
||||
replicaName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Gets the properties of the specified replica.
|
||||
*
|
||||
* @summary Gets the properties of the specified replica.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresGetReplica.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetReplica.json
|
||||
*/
|
||||
async function replicasGet() {
|
||||
const subscriptionId =
|
||||
|
@ -31,12 +31,12 @@ async function replicasGet() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.replicas.get(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
replicaName
|
||||
replicaName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ dotenv.config();
|
|||
* This sample demonstrates how to Lists the replicas for a given configuration store.
|
||||
*
|
||||
* @summary Lists the replicas for a given configuration store.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2023-03-01/examples/ConfigurationStoresListReplicas.json
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresListReplicas.json
|
||||
*/
|
||||
async function replicasListByConfigurationStore() {
|
||||
const subscriptionId =
|
||||
|
@ -30,12 +30,12 @@ async function replicasListByConfigurationStore() {
|
|||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId
|
||||
subscriptionId,
|
||||
);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.replicas.listByConfigurationStore(
|
||||
resourceGroupName,
|
||||
configStoreName
|
||||
configStoreName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
import {
|
||||
Snapshot,
|
||||
AppConfigurationManagementClient,
|
||||
} from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
|
||||
*
|
||||
* @summary Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresCreateSnapshot.json
|
||||
*/
|
||||
async function snapshotsCreate() {
|
||||
const subscriptionId =
|
||||
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] ||
|
||||
"c80fb759-c965-4c6a-9110-9b2b2d038882";
|
||||
const resourceGroupName =
|
||||
process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
|
||||
const configStoreName = "contoso";
|
||||
const snapshotName = "mySnapshot";
|
||||
const body: Snapshot = {
|
||||
filters: [{ key: "app1/*", label: "Production" }],
|
||||
retentionPeriod: 3600,
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.snapshots.beginCreateAndWait(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
snapshotName,
|
||||
body,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
snapshotsCreate();
|
||||
}
|
||||
|
||||
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 { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
|
||||
*
|
||||
* @summary Gets the properties of the specified snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
|
||||
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresGetSnapshot.json
|
||||
*/
|
||||
async function snapshotsGet() {
|
||||
const subscriptionId =
|
||||
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] ||
|
||||
"c80fb759-c965-4c6a-9110-9b2b2d038882";
|
||||
const resourceGroupName =
|
||||
process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
|
||||
const configStoreName = "contoso";
|
||||
const snapshotName = "mySnapshot";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new AppConfigurationManagementClient(
|
||||
credential,
|
||||
subscriptionId,
|
||||
);
|
||||
const result = await client.snapshots.get(
|
||||
resourceGroupName,
|
||||
configStoreName,
|
||||
snapshotName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
snapshotsGet();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|||
import {
|
||||
PipelineRequest,
|
||||
PipelineResponse,
|
||||
SendRequest
|
||||
SendRequest,
|
||||
} from "@azure/core-rest-pipeline";
|
||||
import * as coreAuth from "@azure/core-auth";
|
||||
import {
|
||||
|
@ -20,7 +20,8 @@ import {
|
|||
PrivateEndpointConnectionsImpl,
|
||||
PrivateLinkResourcesImpl,
|
||||
KeyValuesImpl,
|
||||
ReplicasImpl
|
||||
ReplicasImpl,
|
||||
SnapshotsImpl,
|
||||
} from "./operations";
|
||||
import {
|
||||
ConfigurationStores,
|
||||
|
@ -28,7 +29,8 @@ import {
|
|||
PrivateEndpointConnections,
|
||||
PrivateLinkResources,
|
||||
KeyValues,
|
||||
Replicas
|
||||
Replicas,
|
||||
Snapshots,
|
||||
} from "./operationsInterfaces";
|
||||
import { AppConfigurationManagementClientOptionalParams } from "./models";
|
||||
|
||||
|
@ -46,7 +48,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
|
|||
constructor(
|
||||
credentials: coreAuth.TokenCredential,
|
||||
subscriptionId: string,
|
||||
options?: AppConfigurationManagementClientOptionalParams
|
||||
options?: AppConfigurationManagementClientOptionalParams,
|
||||
) {
|
||||
if (credentials === undefined) {
|
||||
throw new Error("'credentials' cannot be null");
|
||||
|
@ -61,10 +63,10 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
|
|||
}
|
||||
const defaults: AppConfigurationManagementClientOptionalParams = {
|
||||
requestContentType: "application/json; charset=utf-8",
|
||||
credential: credentials
|
||||
credential: credentials,
|
||||
};
|
||||
|
||||
const packageDetails = `azsdk-js-arm-appconfiguration/4.0.1`;
|
||||
const packageDetails = `azsdk-js-arm-appconfiguration/4.1.0`;
|
||||
const userAgentPrefix =
|
||||
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
||||
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
||||
|
@ -74,20 +76,21 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
|
|||
...defaults,
|
||||
...options,
|
||||
userAgentOptions: {
|
||||
userAgentPrefix
|
||||
userAgentPrefix,
|
||||
},
|
||||
endpoint:
|
||||
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
||||
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
||||
};
|
||||
super(optionsWithDefaults);
|
||||
|
||||
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
||||
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
||||
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
||||
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
||||
options.pipeline.getOrderedPolicies();
|
||||
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
||||
(pipelinePolicy) =>
|
||||
pipelinePolicy.name ===
|
||||
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
||||
coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
||||
);
|
||||
}
|
||||
if (
|
||||
|
@ -97,7 +100,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
|
|||
!bearerTokenAuthenticationPolicyFound
|
||||
) {
|
||||
this.pipeline.removePolicy({
|
||||
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
||||
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
||||
});
|
||||
this.pipeline.addPolicy(
|
||||
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
||||
|
@ -107,9 +110,9 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
|
|||
`${optionsWithDefaults.endpoint}/.default`,
|
||||
challengeCallbacks: {
|
||||
authorizeRequestOnChallenge:
|
||||
coreClient.authorizeRequestOnClaimChallenge
|
||||
}
|
||||
})
|
||||
coreClient.authorizeRequestOnClaimChallenge,
|
||||
},
|
||||
}),
|
||||
);
|
||||
}
|
||||
// Parameter assignments
|
||||
|
@ -117,13 +120,14 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
|
|||
|
||||
// Assigning values to Constant parameters
|
||||
this.$host = options.$host || "https://management.azure.com";
|
||||
this.apiVersion = options.apiVersion || "2023-03-01";
|
||||
this.apiVersion = options.apiVersion || "2024-05-01";
|
||||
this.configurationStores = new ConfigurationStoresImpl(this);
|
||||
this.operations = new OperationsImpl(this);
|
||||
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
||||
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
||||
this.keyValues = new KeyValuesImpl(this);
|
||||
this.replicas = new ReplicasImpl(this);
|
||||
this.snapshots = new SnapshotsImpl(this);
|
||||
this.addCustomApiVersionPolicy(options.apiVersion);
|
||||
}
|
||||
|
||||
|
@ -136,7 +140,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
|
|||
name: "CustomApiVersionPolicy",
|
||||
async sendRequest(
|
||||
request: PipelineRequest,
|
||||
next: SendRequest
|
||||
next: SendRequest,
|
||||
): Promise<PipelineResponse> {
|
||||
const param = request.url.split("?");
|
||||
if (param.length > 1) {
|
||||
|
@ -150,7 +154,7 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
|
|||
request.url = param[0] + "?" + newParams.join("&");
|
||||
}
|
||||
return next(request);
|
||||
}
|
||||
},
|
||||
};
|
||||
this.pipeline.addPolicy(apiVersionPolicy);
|
||||
}
|
||||
|
@ -161,4 +165,5 @@ export class AppConfigurationManagementClient extends coreClient.ServiceClient {
|
|||
privateLinkResources: PrivateLinkResources;
|
||||
keyValues: KeyValues;
|
||||
replicas: Replicas;
|
||||
snapshots: Snapshots;
|
||||
}
|
||||
|
|
|
@ -28,15 +28,15 @@ export function createLroSpec<T>(inputs: {
|
|||
sendInitialRequest: () => sendOperationFn(args, spec),
|
||||
sendPollRequest: (
|
||||
path: string,
|
||||
options?: { abortSignal?: AbortSignalLike }
|
||||
options?: { abortSignal?: AbortSignalLike },
|
||||
) => {
|
||||
const { requestBody, ...restSpec } = spec;
|
||||
return sendOperationFn(args, {
|
||||
...restSpec,
|
||||
httpMethod: "GET",
|
||||
path,
|
||||
abortSignal: options?.abortSignal
|
||||
abortSignal: options?.abortSignal,
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
@ -109,6 +109,14 @@ export interface PrivateLinkServiceConnectionState {
|
|||
readonly actionsRequired?: ActionsRequired;
|
||||
}
|
||||
|
||||
/** The data plane proxy settings for a configuration store. */
|
||||
export interface DataPlaneProxyProperties {
|
||||
/** The data plane proxy authentication mode. This property manages the authentication mode of request to the data plane resources. */
|
||||
authenticationMode?: AuthenticationMode;
|
||||
/** The data plane proxy private link delegation. This property manages if a request from delegated Azure Resource Manager (ARM) private link is allowed when the data plane resource requires private link. */
|
||||
privateLinkDelegation?: PrivateLinkDelegation;
|
||||
}
|
||||
|
||||
/** Describes a configuration store SKU. */
|
||||
export interface Sku {
|
||||
/** The SKU name of the configuration store. */
|
||||
|
@ -205,6 +213,8 @@ export interface ConfigurationStoreUpdateParameters {
|
|||
publicNetworkAccess?: PublicNetworkAccess;
|
||||
/** Property specifying whether protection against purge is enabled for this configuration store. */
|
||||
enablePurgeProtection?: boolean;
|
||||
/** Property specifying the configuration of data plane proxy for Azure Resource Manager (ARM). */
|
||||
dataPlaneProxy?: DataPlaneProxyProperties;
|
||||
}
|
||||
|
||||
/** Parameters used for checking whether a resource name is available. */
|
||||
|
@ -608,6 +618,111 @@ export interface Replica {
|
|||
readonly provisioningState?: ReplicaProvisioningState;
|
||||
}
|
||||
|
||||
/** The snapshot resource. */
|
||||
export interface Snapshot {
|
||||
/**
|
||||
* The resource ID.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly id?: string;
|
||||
/**
|
||||
* The name of the snapshot.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly name?: string;
|
||||
/**
|
||||
* The type of the resource.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly type?: string;
|
||||
/**
|
||||
* The provisioning state of the snapshot.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly provisioningState?: ProvisioningState;
|
||||
/**
|
||||
* The current status of the snapshot.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly status?: SnapshotStatus;
|
||||
/** A list of filters used to filter the key-values included in the snapshot. */
|
||||
filters?: KeyValueFilter[];
|
||||
/** The composition type describes how the key-values within the snapshot are composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' composition type ensures there are no two key-values containing the same key and label. */
|
||||
compositionType?: CompositionType;
|
||||
/**
|
||||
* The time that the snapshot was created.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly created?: Date;
|
||||
/**
|
||||
* The time that the snapshot will expire.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly expires?: Date;
|
||||
/** The amount of time, in seconds, that a snapshot will remain in the archived state before expiring. This property is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions will be used. */
|
||||
retentionPeriod?: number;
|
||||
/**
|
||||
* The size in bytes of the snapshot.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly size?: number;
|
||||
/**
|
||||
* The amount of key-values in the snapshot.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly itemsCount?: number;
|
||||
/** The tags of the snapshot. NOTE: These are data plane tags, not Azure Resource Manager (ARM) tags. */
|
||||
tags?: { [propertyName: string]: string };
|
||||
/**
|
||||
* A value representing the current state of the snapshot.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly etag?: string;
|
||||
}
|
||||
|
||||
/** Enables filtering of key-values. */
|
||||
export interface KeyValueFilter {
|
||||
/** Filters key-values by their key field. */
|
||||
key: string;
|
||||
/** Filters key-values by their label field. */
|
||||
label?: string;
|
||||
}
|
||||
|
||||
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
||||
export interface ErrorResponseAutoGenerated {
|
||||
/** The error object. */
|
||||
error?: ErrorDetail;
|
||||
}
|
||||
|
||||
/** The error detail. */
|
||||
export interface ErrorDetail {
|
||||
/**
|
||||
* The error code.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly code?: string;
|
||||
/**
|
||||
* The error message.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly message?: string;
|
||||
/**
|
||||
* The error target.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly target?: string;
|
||||
/**
|
||||
* The error details.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly details?: ErrorDetail[];
|
||||
/**
|
||||
* The error additional info.
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly additionalInfo?: ErrorAdditionalInfo[];
|
||||
}
|
||||
|
||||
/** The result of a request to list key-values. */
|
||||
export interface KeyValueListResult {
|
||||
/** The collection value. */
|
||||
|
@ -665,6 +780,8 @@ export interface ConfigurationStore extends TrackedResource {
|
|||
softDeleteRetentionInDays?: number;
|
||||
/** Property specifying whether protection against purge is enabled for this configuration store. */
|
||||
enablePurgeProtection?: boolean;
|
||||
/** Property specifying the configuration of data plane proxy for Azure Resource Manager (ARM). */
|
||||
dataPlaneProxy?: DataPlaneProxyProperties;
|
||||
/** Indicates whether the configuration store need to be recovered. */
|
||||
createMode?: CreateMode;
|
||||
}
|
||||
|
@ -684,7 +801,7 @@ export enum KnownIdentityType {
|
|||
/** UserAssigned */
|
||||
UserAssigned = "UserAssigned",
|
||||
/** SystemAssignedUserAssigned */
|
||||
SystemAssignedUserAssigned = "SystemAssigned, UserAssigned"
|
||||
SystemAssignedUserAssigned = "SystemAssigned, UserAssigned",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -712,7 +829,7 @@ export enum KnownProvisioningState {
|
|||
/** Failed */
|
||||
Failed = "Failed",
|
||||
/** Canceled */
|
||||
Canceled = "Canceled"
|
||||
Canceled = "Canceled",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -738,7 +855,7 @@ export enum KnownConnectionStatus {
|
|||
/** Rejected */
|
||||
Rejected = "Rejected",
|
||||
/** Disconnected */
|
||||
Disconnected = "Disconnected"
|
||||
Disconnected = "Disconnected",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -758,7 +875,7 @@ export enum KnownActionsRequired {
|
|||
/** None */
|
||||
None = "None",
|
||||
/** Recreate */
|
||||
Recreate = "Recreate"
|
||||
Recreate = "Recreate",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -776,7 +893,7 @@ export enum KnownPublicNetworkAccess {
|
|||
/** Enabled */
|
||||
Enabled = "Enabled",
|
||||
/** Disabled */
|
||||
Disabled = "Disabled"
|
||||
Disabled = "Disabled",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -789,6 +906,42 @@ export enum KnownPublicNetworkAccess {
|
|||
*/
|
||||
export type PublicNetworkAccess = string;
|
||||
|
||||
/** Known values of {@link AuthenticationMode} that the service accepts. */
|
||||
export enum KnownAuthenticationMode {
|
||||
/** The local authentication mode. Users are not required to have data plane permissions if local authentication is not disabled. */
|
||||
Local = "Local",
|
||||
/** The pass-through authentication mode. User identity will be passed through from Azure Resource Manager (ARM), requiring user to have data plane action permissions (Available via App Configuration Data Owner\/ App Configuration Data Reader). */
|
||||
PassThrough = "Pass-through",
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines values for AuthenticationMode. \
|
||||
* {@link KnownAuthenticationMode} can be used interchangeably with AuthenticationMode,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **Local**: The local authentication mode. Users are not required to have data plane permissions if local authentication is not disabled. \
|
||||
* **Pass-through**: The pass-through authentication mode. User identity will be passed through from Azure Resource Manager (ARM), requiring user to have data plane action permissions (Available via App Configuration Data Owner\/ App Configuration Data Reader).
|
||||
*/
|
||||
export type AuthenticationMode = string;
|
||||
|
||||
/** Known values of {@link PrivateLinkDelegation} that the service accepts. */
|
||||
export enum KnownPrivateLinkDelegation {
|
||||
/** Azure Resource Manager (ARM) private endpoint is required if the resource requires private link. */
|
||||
Enabled = "Enabled",
|
||||
/** Request is denied if the resource requires private link. */
|
||||
Disabled = "Disabled",
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines values for PrivateLinkDelegation. \
|
||||
* {@link KnownPrivateLinkDelegation} can be used interchangeably with PrivateLinkDelegation,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **Enabled**: Azure Resource Manager (ARM) private endpoint is required if the resource requires private link. \
|
||||
* **Disabled**: Request is denied if the resource requires private link.
|
||||
*/
|
||||
export type PrivateLinkDelegation = string;
|
||||
|
||||
/** Known values of {@link CreatedByType} that the service accepts. */
|
||||
export enum KnownCreatedByType {
|
||||
/** User */
|
||||
|
@ -798,7 +951,7 @@ export enum KnownCreatedByType {
|
|||
/** ManagedIdentity */
|
||||
ManagedIdentity = "ManagedIdentity",
|
||||
/** Key */
|
||||
Key = "Key"
|
||||
Key = "Key",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -816,7 +969,7 @@ export type CreatedByType = string;
|
|||
/** Known values of {@link ConfigurationResourceType} that the service accepts. */
|
||||
export enum KnownConfigurationResourceType {
|
||||
/** MicrosoftAppConfigurationConfigurationStores */
|
||||
MicrosoftAppConfigurationConfigurationStores = "Microsoft.AppConfiguration/configurationStores"
|
||||
MicrosoftAppConfigurationConfigurationStores = "Microsoft.AppConfiguration/configurationStores",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -839,7 +992,7 @@ export enum KnownReplicaProvisioningState {
|
|||
/** Failed */
|
||||
Failed = "Failed",
|
||||
/** Canceled */
|
||||
Canceled = "Canceled"
|
||||
Canceled = "Canceled",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -854,6 +1007,48 @@ export enum KnownReplicaProvisioningState {
|
|||
* **Canceled**
|
||||
*/
|
||||
export type ReplicaProvisioningState = string;
|
||||
|
||||
/** Known values of {@link SnapshotStatus} that the service accepts. */
|
||||
export enum KnownSnapshotStatus {
|
||||
/** Provisioning */
|
||||
Provisioning = "Provisioning",
|
||||
/** Ready */
|
||||
Ready = "Ready",
|
||||
/** Archived */
|
||||
Archived = "Archived",
|
||||
/** Failed */
|
||||
Failed = "Failed",
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines values for SnapshotStatus. \
|
||||
* {@link KnownSnapshotStatus} can be used interchangeably with SnapshotStatus,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **Provisioning** \
|
||||
* **Ready** \
|
||||
* **Archived** \
|
||||
* **Failed**
|
||||
*/
|
||||
export type SnapshotStatus = string;
|
||||
|
||||
/** Known values of {@link CompositionType} that the service accepts. */
|
||||
export enum KnownCompositionType {
|
||||
/** Key */
|
||||
Key = "Key",
|
||||
/** KeyLabel */
|
||||
KeyLabel = "Key_Label",
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines values for CompositionType. \
|
||||
* {@link KnownCompositionType} can be used interchangeably with CompositionType,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **Key** \
|
||||
* **Key_Label**
|
||||
*/
|
||||
export type CompositionType = string;
|
||||
/** Defines values for CreateMode. */
|
||||
export type CreateMode = "Recover" | "Default";
|
||||
|
||||
|
@ -875,7 +1070,8 @@ export interface ConfigurationStoresListByResourceGroupOptionalParams
|
|||
}
|
||||
|
||||
/** Contains response data for the listByResourceGroup operation. */
|
||||
export type ConfigurationStoresListByResourceGroupResponse = ConfigurationStoreListResult;
|
||||
export type ConfigurationStoresListByResourceGroupResponse =
|
||||
ConfigurationStoreListResult;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface ConfigurationStoresGetOptionalParams
|
||||
|
@ -939,7 +1135,8 @@ export interface ConfigurationStoresListDeletedOptionalParams
|
|||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listDeleted operation. */
|
||||
export type ConfigurationStoresListDeletedResponse = DeletedConfigurationStoreListResult;
|
||||
export type ConfigurationStoresListDeletedResponse =
|
||||
DeletedConfigurationStoreListResult;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface ConfigurationStoresGetDeletedOptionalParams
|
||||
|
@ -969,7 +1166,8 @@ export interface ConfigurationStoresListByResourceGroupNextOptionalParams
|
|||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listByResourceGroupNext operation. */
|
||||
export type ConfigurationStoresListByResourceGroupNextResponse = ConfigurationStoreListResult;
|
||||
export type ConfigurationStoresListByResourceGroupNextResponse =
|
||||
ConfigurationStoreListResult;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface ConfigurationStoresListKeysNextOptionalParams
|
||||
|
@ -983,7 +1181,8 @@ export interface ConfigurationStoresListDeletedNextOptionalParams
|
|||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listDeletedNext operation. */
|
||||
export type ConfigurationStoresListDeletedNextResponse = DeletedConfigurationStoreListResult;
|
||||
export type ConfigurationStoresListDeletedNextResponse =
|
||||
DeletedConfigurationStoreListResult;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface OperationsCheckNameAvailabilityOptionalParams
|
||||
|
@ -1007,7 +1206,8 @@ export interface OperationsRegionalCheckNameAvailabilityOptionalParams
|
|||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the regionalCheckNameAvailability operation. */
|
||||
export type OperationsRegionalCheckNameAvailabilityResponse = NameAvailabilityStatus;
|
||||
export type OperationsRegionalCheckNameAvailabilityResponse =
|
||||
NameAvailabilityStatus;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface OperationsListNextOptionalParams
|
||||
|
@ -1021,7 +1221,8 @@ export interface PrivateEndpointConnectionsListByConfigurationStoreOptionalParam
|
|||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listByConfigurationStore operation. */
|
||||
export type PrivateEndpointConnectionsListByConfigurationStoreResponse = PrivateEndpointConnectionListResult;
|
||||
export type PrivateEndpointConnectionsListByConfigurationStoreResponse =
|
||||
PrivateEndpointConnectionListResult;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface PrivateEndpointConnectionsGetOptionalParams
|
||||
|
@ -1040,7 +1241,8 @@ export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|||
}
|
||||
|
||||
/** Contains response data for the createOrUpdate operation. */
|
||||
export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection;
|
||||
export type PrivateEndpointConnectionsCreateOrUpdateResponse =
|
||||
PrivateEndpointConnection;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface PrivateEndpointConnectionsDeleteOptionalParams
|
||||
|
@ -1056,14 +1258,16 @@ export interface PrivateEndpointConnectionsListByConfigurationStoreNextOptionalP
|
|||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listByConfigurationStoreNext operation. */
|
||||
export type PrivateEndpointConnectionsListByConfigurationStoreNextResponse = PrivateEndpointConnectionListResult;
|
||||
export type PrivateEndpointConnectionsListByConfigurationStoreNextResponse =
|
||||
PrivateEndpointConnectionListResult;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface PrivateLinkResourcesListByConfigurationStoreOptionalParams
|
||||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listByConfigurationStore operation. */
|
||||
export type PrivateLinkResourcesListByConfigurationStoreResponse = PrivateLinkResourceListResult;
|
||||
export type PrivateLinkResourcesListByConfigurationStoreResponse =
|
||||
PrivateLinkResourceListResult;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface PrivateLinkResourcesGetOptionalParams
|
||||
|
@ -1077,7 +1281,8 @@ export interface PrivateLinkResourcesListByConfigurationStoreNextOptionalParams
|
|||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listByConfigurationStoreNext operation. */
|
||||
export type PrivateLinkResourcesListByConfigurationStoreNextResponse = PrivateLinkResourceListResult;
|
||||
export type PrivateLinkResourcesListByConfigurationStoreNextResponse =
|
||||
PrivateLinkResourceListResult;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface KeyValuesGetOptionalParams
|
||||
|
@ -1150,6 +1355,25 @@ export interface ReplicasListByConfigurationStoreNextOptionalParams
|
|||
/** Contains response data for the listByConfigurationStoreNext operation. */
|
||||
export type ReplicasListByConfigurationStoreNextResponse = ReplicaListResult;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface SnapshotsGetOptionalParams
|
||||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the get operation. */
|
||||
export type SnapshotsGetResponse = Snapshot;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface SnapshotsCreateOptionalParams
|
||||
extends coreClient.OperationOptions {
|
||||
/** Delay to wait until next poll, in milliseconds. */
|
||||
updateIntervalInMs?: number;
|
||||
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
||||
resumeFrom?: string;
|
||||
}
|
||||
|
||||
/** Contains response data for the create operation. */
|
||||
export type SnapshotsCreateResponse = Snapshot;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface AppConfigurationManagementClientOptionalParams
|
||||
extends coreClient.ServiceClientOptions {
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче