[Automation] Collect examples from azure-sdk-for-js#@azure/arm-appconfiguration_4.1.0

This commit is contained in:
Azure SDK Bot 2024-11-22 04:02:58 -08:00 коммит произвёл GitHub
Родитель 61531d8d0b
Коммит 7095164a85
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
72 изменённых файлов: 920 добавлений и 0 удалений

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

@ -0,0 +1,21 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/CheckNameAvailable.json
*/
async function configurationStoresCheckNameAvailable() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const checkNameAvailabilityParameters = {
name: "contoso",
type: "Microsoft.AppConfiguration/configurationStores",
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.operations.checkNameAvailability(checkNameAvailabilityParameters);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,21 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/CheckNameNotAvailable.json
*/
async function configurationStoresCheckNameNotAvailable() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const checkNameAvailabilityParameters = {
name: "contoso",
type: "Microsoft.AppConfiguration/configurationStores",
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.operations.checkNameAvailability(checkNameAvailabilityParameters);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,28 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/ConfigurationStoresCreate.json
*/
async function configurationStoresCreate() {
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 = {
location: "westus",
sku: { name: "Standard" },
tags: { myTag: "myTagValue" },
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginCreateAndWait(
resourceGroupName,
configStoreName,
configStoreCreationParameters,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,30 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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. 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 =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const keyValueName = "myKey$myLabel";
const keyValueParameters = {
tags: { tag1: "tagValue1", tag2: "tagValue2" },
value: "myValue",
};
const options = { keyValueParameters };
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.keyValues.createOrUpdate(
resourceGroupName,
configStoreName,
keyValueName,
options,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,26 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresCreateReplica.json
*/
async function replicasCreate() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const replicaName = "myReplicaEus";
const replicaCreationParameters = { location: "eastus" };
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.replicas.beginCreateAndWait(
resourceGroupName,
configStoreName,
replicaName,
replicaCreationParameters,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,29 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,31 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/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);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,35 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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 =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const configStoreCreationParameters = {
identity: {
type: "SystemAssigned, UserAssigned",
userAssignedIdentities: {
"/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2":
{},
},
},
location: "westus",
sku: { name: "Standard" },
tags: { myTag: "myTagValue" },
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginCreateAndWait(
resourceGroupName,
configStoreName,
configStoreCreationParameters,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,28 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/ConfigurationStoresCreateWithLocalAuthDisabled.json
*/
async function configurationStoresCreateWithLocalAuthDisabled() {
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 = {
disableLocalAuth: true,
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);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,22 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresDelete.json
*/
async function configurationStoresDelete() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginDeleteAndWait(
resourceGroupName,
configStoreName,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,24 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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. 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 =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const keyValueName = "myKey$myLabel";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.keyValues.beginDeleteAndWait(
resourceGroupName,
configStoreName,
keyValueName,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,24 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresDeletePrivateEndpointConnection.json
*/
async function privateEndpointConnectionsDelete() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const privateEndpointConnectionName = "myConnection";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.privateEndpointConnections.beginDeleteAndWait(
resourceGroupName,
configStoreName,
privateEndpointConnectionName,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,24 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Deletes a replica.
*
* @summary Deletes a replica.
* x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2024-05-01/examples/ConfigurationStoresDeleteReplica.json
*/
async function replicasDelete() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const replicaName = "myReplicaEus";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.replicas.beginDeleteAndWait(
resourceGroupName,
configStoreName,
replicaName,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,19 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresGet.json
*/
async function configurationStoresGet() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.get(resourceGroupName, configStoreName);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,20 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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. 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 =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const keyValueName = "myKey$myLabel";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.keyValues.get(resourceGroupName, configStoreName, keyValueName);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,24 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresGetPrivateEndpointConnection.json
*/
async function privateEndpointConnectionGetConnection() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const privateEndpointConnectionName = "myConnection";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.privateEndpointConnections.get(
resourceGroupName,
configStoreName,
privateEndpointConnectionName,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,20 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresGetReplica.json
*/
async function replicasGet() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const replicaName = "myReplicaEus";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.replicas.get(resourceGroupName, configStoreName, replicaName);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,20 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,20 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresList.json
*/
async function configurationStoresList() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.configurationStores.list()) {
resArray.push(item);
}
console.log(resArray);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,21 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresListByResourceGroup.json
*/
async function configurationStoresListByResourceGroup() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.configurationStores.listByResourceGroup(resourceGroupName)) {
resArray.push(item);
}
console.log(resArray);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,22 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresListKeys.json
*/
async function configurationStoresListKeys() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.configurationStores.listKeys(resourceGroupName, configStoreName)) {
resArray.push(item);
}
console.log(resArray);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,25 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresListPrivateEndpointConnections.json
*/
async function privateEndpointConnectionList() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.privateEndpointConnections.listByConfigurationStore(
resourceGroupName,
configStoreName,
)) {
resArray.push(item);
}
console.log(resArray);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,25 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresListReplicas.json
*/
async function replicasListByConfigurationStore() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.replicas.listByConfigurationStore(
resourceGroupName,
configStoreName,
)) {
resArray.push(item);
}
console.log(resArray);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,26 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresRegenerateKey.json
*/
async function configurationStoresRegenerateKey() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const regenerateKeyParameters = {
id: "439AD01B4BE67DB1",
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.regenerateKey(
resourceGroupName,
configStoreName,
regenerateKeyParameters,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,27 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresUpdate.json
*/
async function configurationStoresUpdate() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const configStoreUpdateParameters = {
sku: { name: "Standard" },
tags: { category: "Marketing" },
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginUpdateAndWait(
resourceGroupName,
configStoreName,
configStoreUpdateParameters,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,27 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresUpdateDisableLocalAuth.json
*/
async function configurationStoresUpdateDisableLocalAuth() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const configStoreUpdateParameters = {
disableLocalAuth: true,
sku: { name: "Standard" },
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginUpdateAndWait(
resourceGroupName,
configStoreName,
configStoreUpdateParameters,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,31 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json
*/
async function privateEndpointConnectionUpdate() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const privateEndpointConnectionName = "myConnection";
const privateEndpointConnection = {
privateLinkServiceConnectionState: {
description: "Auto-Approved",
status: "Approved",
},
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.privateEndpointConnections.beginCreateOrUpdateAndWait(
resourceGroupName,
configStoreName,
privateEndpointConnectionName,
privateEndpointConnection,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,34 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/ConfigurationStoresUpdateWithIdentity.json
*/
async function configurationStoresUpdateWithIdentity() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const configStoreUpdateParameters = {
identity: {
type: "SystemAssigned, UserAssigned",
userAssignedIdentities: {
"/subscriptions/c80fb759C9654c6a91109b2b2d038882/resourcegroups/myResourceGroup1/providers/MicrosoftManagedIdentity/userAssignedIdentities/identity2":
{},
},
},
sku: { name: "Standard" },
tags: { category: "Marketing" },
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginUpdateAndWait(
resourceGroupName,
configStoreName,
configStoreUpdateParameters,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,19 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/DeletedConfigurationStoresGet.json
*/
async function deletedConfigurationStoresGet() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const location = "westus";
const configStoreName = "contoso";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.getDeleted(location, configStoreName);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,20 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/DeletedConfigurationStoresList.json
*/
async function deletedConfigurationStoresList() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.configurationStores.listDeleted()) {
resArray.push(item);
}
console.log(resArray);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,22 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/DeletedConfigurationStoresPurge.json
*/
async function purgeADeletedConfigurationStore() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const location = "westus";
const configStoreName = "contoso";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.configurationStores.beginPurgeDeletedAndWait(
location,
configStoreName,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,20 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/OperationsList.json
*/
async function operationsList() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.operations.list()) {
resArray.push(item);
}
console.log(resArray);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,24 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/PrivateLinkResourceGet.json
*/
async function privateLinkResourcesGet() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const groupName = "configurationStores";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.privateLinkResources.get(
resourceGroupName,
configStoreName,
groupName,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,25 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/PrivateLinkResourcesListByConfigurationStore.json
*/
async function privateLinkResourcesListGroupIds() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const resourceGroupName = process.env["APPCONFIGURATION_RESOURCE_GROUP"] || "myResourceGroup";
const configStoreName = "contoso";
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.privateLinkResources.listByConfigurationStore(
resourceGroupName,
configStoreName,
)) {
resArray.push(item);
}
console.log(resArray);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,25 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/RegionalCheckNameAvailable.json
*/
async function configurationStoresCheckNameAvailable() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const location = "westus";
const checkNameAvailabilityParameters = {
name: "contoso",
type: "Microsoft.AppConfiguration/configurationStores",
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.operations.regionalCheckNameAvailability(
location,
checkNameAvailabilityParameters,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}

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

@ -0,0 +1,25 @@
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* 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/2024-05-01/examples/RegionalCheckNameNotAvailable.json
*/
async function configurationStoresCheckNameNotAvailable() {
const subscriptionId =
process.env["APPCONFIGURATION_SUBSCRIPTION_ID"] || "c80fb759-c965-4c6a-9110-9b2b2d038882";
const location = "westus";
const checkNameAvailabilityParameters = {
name: "contoso",
type: "Microsoft.AppConfiguration/configurationStores",
};
const credential = new DefaultAzureCredential();
const client = new AppConfigurationManagementClient(credential, subscriptionId);
const result = await client.operations.regionalCheckNameAvailability(
location,
checkNameAvailabilityParameters,
);
console.log(result);
}

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

@ -0,0 +1 @@
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-appconfiguration_4.1.0/sdk/appconfiguration/arm-appconfiguration/README.md"}