Skip to content

Commit 7b8740c

Browse files
azure-sdkv-jiaodi
andauthored
[AutoPR @azure-arm-resources-subscriptions]-generated-from-SDK Generation - JS-6331831 (#38619)
Configurations: 'specification/resources/resource-manager/Microsoft.Resources/subscriptions/tspconfig.yaml', API Version: 2022-12-01, SDK Release Type: beta, and CommitSHA: 'f34830624e2040e4777496c73aa7c6fe764f4bfc' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6331831 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --------- Co-authored-by: Jiao Di (MSFT) <v-jiaodi@microsoft.com>
1 parent 29f9901 commit 7b8740c

99 files changed

Lines changed: 2871 additions & 3679 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@
10241024
# PRLabel: %Mgmt
10251025
/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/ @qiaozha @MaryGao @JialinHuang803
10261026

1027-
# PRLabel: %Mgmt
1027+
# PRLabel: %Mgmt %mgmt-review-needed
10281028
/sdk/resources-subscriptions/arm-resources-subscriptions/ @qiaozha @MaryGao @JialinHuang803
10291029

10301030
# PRLabel: %Mgmt

pnpm-lock.yaml

Lines changed: 18 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/resources-subscriptions/arm-resources-subscriptions/CHANGELOG.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
# Release History
22

3-
## 2.1.2 (Unreleased)
3+
## 3.0.0-beta.1 (2026-05-26)
4+
Compared with version 2.1.0
45

56
### Features Added
7+
- Added Interface Location
8+
- Added Interface PagedAsyncIterableIterator
9+
- Added Interface PageSettings
10+
- Interface ErrorResponse has a new optional parameter error
11+
- Added Type Alias AzureSupportedClouds
12+
- Added Enum AzureClouds
13+
- Added Enum KnownVersions
614

715
### Breaking Changes
16+
- Removed Interface ErrorResponseAutoGenerated
17+
- Removed Interface OperationAutoGenerated
18+
- Removed Interface OperationDisplayAutoGenerated
19+
- Removed Interface OperationListResultAutoGenerated
20+
- Interface ErrorResponse no longer has parameter additionalInfo
21+
- Interface ErrorResponse no longer has parameter code
22+
- Interface ErrorResponse no longer has parameter details
23+
- Interface ErrorResponse no longer has parameter message
24+
- Interface ErrorResponse no longer has parameter target
825

9-
### Bugs Fixed
10-
11-
### Other Changes
12-
13-
## 2.1.1 (2025-08-22)
14-
15-
### Other Changes
16-
17-
- Other fixes
18-
26+
1927
## 2.1.0 (2023-05-24)
2028

2129
### Features Added
@@ -72,4 +80,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.
7280

7381
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
7482

75-
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
83+
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).

sdk/resources-subscriptions/arm-resources-subscriptions/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

sdk/resources-subscriptions/arm-resources-subscriptions/README.md

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Subscription client.
44

5-
All resource groups and resources exist within subscriptions. These operation enable you get information about your subscriptions and tenants. A tenant is a dedicated instance of Azure Active Directory (Azure AD) for your organization.
65

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

1214
## Getting started
1315

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

38-
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).
40+
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).
3941

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

@@ -44,7 +46,6 @@ npm install @azure/identity
4446
```
4547

4648
You will also need to **register a new AAD application and grant access to Azure Subscription** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
47-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
4849

4950
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
5051

@@ -54,8 +55,7 @@ Using Node.js and Node-like environments, you can use the `DefaultAzureCredentia
5455
import { SubscriptionClient } from "@azure/arm-resources-subscriptions";
5556
import { DefaultAzureCredential } from "@azure/identity";
5657

57-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
58-
const client = new SubscriptionClient(new DefaultAzureCredential(), subscriptionId);
58+
const client = new SubscriptionClient(new DefaultAzureCredential());
5959
```
6060

6161
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
@@ -64,16 +64,15 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
6464
import { InteractiveBrowserCredential } from "@azure/identity";
6565
import { SubscriptionClient } from "@azure/arm-resources-subscriptions";
6666

67-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6867
const credential = new InteractiveBrowserCredential({
6968
tenantId: "<YOUR_TENANT_ID>",
7069
clientId: "<YOUR_CLIENT_ID>",
7170
});
72-
const client = new SubscriptionClient(credential, subscriptionId);
71+
const client = new SubscriptionClient(credential);
7372
```
7473

75-
### JavaScript Bundle
7674

75+
### JavaScript Bundle
7776
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).
7877

7978
## Key concepts
@@ -98,7 +97,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
9897

9998
## Next steps
10099

101-
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.
100+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources-subscriptions/arm-resources-subscriptions/samples) directory for detailed examples on how to use this library.
102101

103102
## Contributing
104103

@@ -108,10 +107,6 @@ If you'd like to contribute to this library, please read the [contributing guide
108107

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

111-
112-
113-
[azure_cli]: https://learn.microsoft.com/cli/azure
114-
[azure_sub]: https://azure.microsoft.com/free/
115110
[azure_sub]: https://azure.microsoft.com/free/
116111
[azure_portal]: https://portal.azure.com
117112
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity

sdk/resources-subscriptions/arm-resources-subscriptions/_meta.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
{
2-
"extends": "../../../api-extractor-base.json"
3-
}
1+
{ "extends": "../../../api-extractor-base.json" }

sdk/resources-subscriptions/arm-resources-subscriptions/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/resources-subscriptions/arm-resources-subscriptions",
5-
"Tag": "js/resources-subscriptions/arm-resources-subscriptions_f36cdf7caa"
5+
"Tag": "js/resources-subscriptions/arm-resources-subscriptions_4d0f186a7a"
66
}

sdk/resources-subscriptions/arm-resources-subscriptions/config/tsconfig.samples.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"extends": "../../../../eng/tsconfigs/samples.json",
33
"compilerOptions": {
44
"paths": {
5-
"@azure/arm-resources-subscriptions": [
6-
"../dist/esm"
7-
]
5+
"@azure/arm-resources-subscriptions": ["../dist/esm"]
86
}
97
}
108
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"extends": "../../../../eng/tsconfigs/src.browser.json",
3-
"include": [
4-
"../src/index.ts"
5-
]
3+
"include": ["../src/index.ts"]
64
}

0 commit comments

Comments
 (0)