Configurations: 'specification/programenrollment/resource-manager/Microsoft.ProgramEnrollment/ProgramEnrollment/tspconfig.yaml', SDK Release Type: beta, and CommitSHA: '2fa6d6ec33428702d1ee869d63e79687cf183fc4' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6420494 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan information is not available. Create a release plan and link SDK pull request to the release plan. Refer aka.ms/azsdk/releaseplan-dashboard for more info. ## Release Plan Details - Release Plan: https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releaseplan=34938 - Work Item Link: https://dev.azure.com/azure-sdk/fe81d705-3c06-41e5-bf7c-5ebea18efe89/_workitems/edit/34938 - Spec Pull Request: https://github.com/Azure/azure-rest-api-specs/pull/43694 - Spec API version:
5.2 KiB
@azure/arm-programenrollment client library samples for JavaScript (Beta)
These sample programs show how to use the JavaScript client libraries for @azure/arm-programenrollment in some common scenarios.
| File Name | Description |
|---|---|
| eduEnrollmentsCreateOrUpdateSample.js | creates or updates the specified edu enrollment. x-ms-original-file: 2026-03-01-preview/EduEnrollments_CreateOrUpdate.json |
| eduEnrollmentsDeleteSample.js | deletes the specified edu enrollment. x-ms-original-file: 2026-03-01-preview/EduEnrollments_Delete.json |
| eduEnrollmentsGetSample.js | gets the specified edu enrollment. x-ms-original-file: 2026-03-01-preview/EduEnrollments_Get.json |
| eduEnrollmentsListByResourceGroupSample.js | lists the edu enrollments in a resource group. x-ms-original-file: 2026-03-01-preview/EduEnrollments_ListByResourceGroup.json |
| eduEnrollmentsListBySubscriptionSample.js | lists the edu enrollments in a subscription. x-ms-original-file: 2026-03-01-preview/EduEnrollments_ListBySubscription.json |
| eduEnrollmentsUpdateSample.js | updates the specified edu enrollment. x-ms-original-file: 2026-03-01-preview/EduEnrollments_Update.json |
| operationsListSample.js | list the operations for the provider x-ms-original-file: 2026-03-01-preview/Operations_List.json |
Prerequisites
The sample programs are compatible with LTS versions of Node.js.
You need an Azure subscription to run these sample programs.
Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
Adapting the samples to run in the browser may require some additional consideration. For details, please see the package README.
Setup
To run the samples using the published version of the package:
- Install the dependencies using
npm:
npm install
-
Edit the file
sample.env, adding the correct credentials to access the Azure service and run the samples. Then rename the file fromsample.envto just.env. The sample programs will read this file automatically. -
Run whichever samples you like (note that some samples may require additional setup, see the table above):
node eduEnrollmentsCreateOrUpdateSample.js
Alternatively, run a single sample with the required environment variables set (setting up the .env file is not required if you do this), for example (cross-platform):
node eduEnrollmentsCreateOrUpdateSample.js
Next Steps
Take a look at our API Documentation for more information about the APIs that are available in the clients.