@azure/arm-locks 2.1.1-alpha.20250417.1 → 2.1.1-alpha.20250418.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -51,13 +51,25 @@ For more information about how to create an Azure AD Application check out [this
|
|
51
51
|
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
52
52
|
|
53
53
|
```ts snippet:ReadmeSampleCreateClient_Node
|
54
|
+
import { ManagementLockClient } from "@azure/arm-locks";
|
55
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
54
56
|
|
57
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
58
|
+
const client = new ManagementLockClient(new DefaultAzureCredential(), subscriptionId);
|
55
59
|
```
|
56
60
|
|
57
61
|
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
58
62
|
|
59
63
|
```ts snippet:ReadmeSampleCreateClient_Browser
|
60
|
-
|
64
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
65
|
+
import { ManagementLockClient } from "@azure/arm-locks";
|
66
|
+
|
67
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
68
|
+
const credential = new InteractiveBrowserCredential({
|
69
|
+
tenantId: "<YOUR_TENANT_ID>",
|
70
|
+
clientId: "<YOUR_CLIENT_ID>",
|
71
|
+
});
|
72
|
+
const client = new ManagementLockClient(credential, subscriptionId);
|
61
73
|
```
|
62
74
|
|
63
75
|
### JavaScript Bundle
|
package/package.json
CHANGED