Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@
# PRLabel: %Mgmt
/sdk/resourcemover/arm-resourcemover/ @qiaozha @MaryGao @JialinHuang803

# PRLabel: %Mgmt
# PRLabel: %Mgmt %mgmt-review-needed
/sdk/resources/arm-resources/ @qiaozha @MaryGao @JialinHuang803

# PRLabel: %Mgmt
Expand Down
43 changes: 42 additions & 1 deletion .scripts/automation_generate.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,43 @@
#!/usr/bin/env bash
npm --prefix eng/tools/js-sdk-release-tools exec --no -- code-gen-pipeline --inputJsonPath=$1 --outputJsonPath=$2 --use=@autorest/typescript@^6.0.73 --typespecEmitter=@azure-tools/typespec-ts

cd ..

file_path="azure-rest-api-specs/.js/branch.txt"
# Check if the file exists
if [ -f "$file_path" ]; then
# Load the content of the file into a variable
branch=$(cat "$file_path")
echo "get branch $branch"
else
echo "Branch file does not exist."
fi

if [ -d "azure-sdk-tools" ]; then
echo "Delete folder azure-sdk-tools"
rm -rf azure-sdk-tools
else
echo "azure-sdk-tools folder does not exist."
fi

echo 'clone azure-sdk-tools'
git clone https://github.com/Azure/azure-sdk-tools/

cd azure-sdk-tools
if [ -z "$branch" ]; then
echo 'branch is empty'
else
git checkout -b test $branch
echo git checkout -b test $branch
fi

echo '-------------- git status start'
git status
echo '-------------- git status end'

cd tools/js-sdk-release-tools
npm install
npm run build
cd ../../..

cd azure-sdk-for-js
node ../azure-sdk-tools/tools/js-sdk-release-tools/dist/autoGenerateInPipeline.js --inputJsonPath=$1 --outputJsonPath=$2 --use=@autorest/typescript@^6.0.73 --typespecEmitter=@azure-tools/typespec-ts
31 changes: 20 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 51 additions & 6 deletions sdk/resources/arm-resources/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,61 @@
# Release History

## 7.0.1 (Unreleased)
## 8.0.0-beta.1 (2026-05-28)
Compared with version 7.0.0

### Features Added
- Added operation ResourceGroupsOperations.delete
- Added operation ResourceGroupsOperations.exportTemplate
- Added operation ResourcesOperations.createOrUpdate
- Added operation ResourcesOperations.createOrUpdateById
- Added operation ResourcesOperations.delete
- Added operation ResourcesOperations.deleteById
- Added operation ResourcesOperations.moveResources
- Added operation ResourcesOperations.update
- Added operation ResourcesOperations.updateById
- Added operation ResourcesOperations.validateMoveResources
- Added operation TagsOperations.createOrUpdateAtScope
- Added operation TagsOperations.deleteAtScope
- Added operation TagsOperations.updateAtScope
- Added Interface ErrorDetail
- Added Interface ExtensionResource
- Added Interface PagedAsyncIterableIterator
- Added Interface PageSettings
- Added Interface RestorePollerOptions
- Added Interface SimplePollerLike
- Added Interface SystemData
- Added Interface TrackedResource
- Interface GenericResource has a new optional parameter systemData
- Interface GenericResourceExpanded has a new optional parameter systemData
- Interface Operation has a new optional parameter actionType
- Interface Operation has a new optional parameter isDataAction
- Interface Operation has a new optional parameter origin
- Interface Resource has a new optional parameter systemData
- Interface ResourceGroup has a new optional parameter systemData
- Interface TagsResource has a new optional parameter systemData
- Added Type Alias ActionType
- Added Type Alias AzureSupportedClouds
- Added Type Alias CreatedByType
- Added Type Alias Origin
- Added Enum AzureClouds
- Added Enum KnownActionType
- Added Enum KnownCreatedByType
- Added Enum KnownOrigin
- Added Enum KnownVersions

### Breaking Changes
- Class ResourceManagementClient no longer has parameter tagsOperations
- Removed Interface GenericResourceFilter
- Removed Interface ResourceGroupFilter
- Removed Interface ResourceProviderOperationDisplayProperties
- Removed Interface SubResource
- Interface Resource no longer has parameter extendedLocation
- Interface Resource no longer has parameter location
- Interface Resource no longer has parameter tags
- Parameter value of interface ProviderPermissionListResult is now required
- Parameter value of interface ProviderResourceTypeListResult is now required

### Bugs Fixed

### Other Changes



## 7.0.0 (2025-06-10)

- operation groups `DeploymentOperations` and `Deployments` has been split into an independent library [`@azure/arm-resourcesdeployment`](https://www.npmjs.com/package/@azure/arm-resourcesdeployments/v/1.0.0-beta.1).
Expand Down
20 changes: 10 additions & 10 deletions sdk/resources/arm-resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f

Provides operations for working with resources and resource groups.

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources/arm-resources) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-resources) |
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-resources?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
Key links:

- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources/arm-resources)
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-resources)
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-resources?view=azure-node-preview)
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources/arm-resources/samples)

## Getting started

Expand Down Expand Up @@ -35,7 +37,7 @@ npm install @azure/arm-resources
To create a client object to access the Azure ResourceManagement API, you will need the `endpoint` of your Azure ResourceManagement resource and a `credential`. The Azure ResourceManagement client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure ResourceManagement resource in the [Azure Portal][azure_portal].

You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).

To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:

Expand Down Expand Up @@ -63,14 +65,15 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
import { InteractiveBrowserCredential } from "@azure/identity";
import { ResourceManagementClient } from "@azure/arm-resources";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new ResourceManagementClient(credential, subscriptionId);
```


### JavaScript Bundle
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).

Expand All @@ -96,7 +99,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur

## Next steps

Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources/arm-resources/samples) directory for detailed examples on how to use this library.

## Contributing

Expand All @@ -106,9 +109,6 @@ If you'd like to contribute to this library, please read the [contributing guide

- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)


[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
[azure_sub]: https://azure.microsoft.com/free/
[azure_portal]: https://portal.azure.com
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
Expand Down
8 changes: 0 additions & 8 deletions sdk/resources/arm-resources/_meta.json

This file was deleted.

4 changes: 1 addition & 3 deletions sdk/resources/arm-resources/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{
"extends": "../../../api-extractor-base.json"
}
{ "extends": "../../../api-extractor-base.json" }
7 changes: 0 additions & 7 deletions sdk/resources/arm-resources/config/tsconfig.lint.json

This file was deleted.

4 changes: 1 addition & 3 deletions sdk/resources/arm-resources/config/tsconfig.samples.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"extends": "../../../../eng/tsconfigs/samples.json",
"compilerOptions": {
"paths": {
"@azure/arm-resources": [
"../dist/esm"
]
"@azure/arm-resources": ["../dist/esm"]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"extends": "../../../../eng/tsconfigs/src.browser.json",
"include": [
"../src/index.ts"
]
"include": ["../src/index.ts"]
}
4 changes: 1 addition & 3 deletions sdk/resources/arm-resources/config/tsconfig.src.cjs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"extends": "../../../../eng/tsconfigs/src.cjs.json",
"include": [
"../src/index.ts"
]
"include": ["../src/index.ts"]
}
4 changes: 1 addition & 3 deletions sdk/resources/arm-resources/config/tsconfig.src.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"extends": "../../../../eng/tsconfigs/src.esm.json",
"include": [
"../src/index.ts"
]
"include": ["../src/index.ts"]
}
10 changes: 10 additions & 0 deletions sdk/resources/arm-resources/config/tsconfig.test.browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../../../eng/tsconfigs/test.browser.json",
"compilerOptions": {
"paths": {
"@azure/arm-resources": ["../src/index.ts"],
"@azure/arm-resources/*": ["../src/*"],
"$internal/*": ["../src/*"]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"extends": "../../../../eng/tsconfigs/test.node.json"
"extends": "../../../../eng/tsconfigs/test.node.json",
"compilerOptions": {
"paths": {
"@azure/arm-resources": ["../src/index.ts"],
"@azure/arm-resources/*": ["../src/*"],
"$internal/*": ["../src/*"]
}
}
}
29 changes: 9 additions & 20 deletions sdk/resources/arm-resources/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";

export default [
...azsdkEslint.config([
{
rules: {
"@azure/azure-sdk/ts-modules-only-named": "warn",
"@azure/azure-sdk/ts-package-json-types": "warn",
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
"@azure/azure-sdk/ts-package-json-files-required": "off",
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
"tsdoc/syntax": "warn"
}
}
]),
export default azsdkEslint.config([
{
files: ["src/**/*.ts", "src/**/*.mts", "test/**/*.ts"],
languageOptions: {
parserOptions: {
projectService: false,
project: "./config/tsconfig.lint.json",
},
rules: {
"@azure/azure-sdk/ts-modules-only-named": "warn",
"@azure/azure-sdk/ts-package-json-types": "warn",
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
"@azure/azure-sdk/ts-package-json-files-required": "off",
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
"tsdoc/syntax": "warn",
},
},
];
]);
Loading
Loading