Files
4201b08be2 [AutoPR @azure-arm-containerinstance]-generated-from-SDK Generation - JS-6410514 (#38853)
Configurations:
'specification/containerinstance/resource-manager/Microsoft.ContainerInstance/ContainerInstance/tspconfig.yaml',
API Version: 2026-06-01-preview, SDK Release Type: beta, and CommitSHA:
'1b4778de3e8c7709823e0f95bbd8c29bedeb5bdb' in SpecRepo:
'https://github.com/Azure/azure-rest-api-specs' Pipeline run:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6410514
Refer to
https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites
to prepare for SDK release.

### Packages impacted by this PR

`@azure/arm-containerinstance`

### Issues associated with this PR


### Describe the problem that is addressed by this PR

Auto-generated SDK update for `@azure/arm-containerinstance` from
TypeSpec/emitter, targeting API version `2026-06-01-preview` (beta
release). The branch has been updated with the latest changes from the
`main` branch.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?

Auto-generated via SDK generation pipeline (build ID: 6410514).

### Are there test cases added in this PR? _(If not, why?)_

No. This is an auto-generated SDK PR.

### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

Pipeline run:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6410514

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Jiao Di (MSFT) <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jeremymeng <[email protected]>
Co-authored-by: Jeremy Meng <[email protected]>
2026-06-24 13:55:12 +08:00

56 lines
3.4 KiB
JavaScript

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { ContainerInstanceManagementClient } = require("@azure/arm-containerinstance");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
*
* @summary gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
* x-ms-original-file: 2026-06-01-preview/ContainerGroupsGetPriority.json
*/
async function containerGroupsGetWithPriority() {
const credential = new DefaultAzureCredential();
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
const result = await client.containerGroups.get("demo", "demo1");
console.log(result);
}
/**
* This sample demonstrates how to gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
*
* @summary gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
* x-ms-original-file: 2026-06-01-preview/ContainerGroupsGet_Failed.json
*/
async function containerGroupsGetFailed() {
const credential = new DefaultAzureCredential();
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
const result = await client.containerGroups.get("demo", "demo1");
console.log(result);
}
/**
* This sample demonstrates how to gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
*
* @summary gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
* x-ms-original-file: 2026-06-01-preview/ContainerGroupsGet_Succeeded.json
*/
async function containerGroupsGetSucceeded() {
const credential = new DefaultAzureCredential();
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new ContainerInstanceManagementClient(credential, subscriptionId);
const result = await client.containerGroups.get("demo", "demo1");
console.log(result);
}
async function main() {
await containerGroupsGetWithPriority();
await containerGroupsGetFailed();
await containerGroupsGetSucceeded();
}
main().catch(console.error);