@pulumi/azure 6.40.0 → 6.40.1-alpha.1791911465

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.
@@ -8,7 +8,7 @@ import * as pulumi from "@pulumi/pulumi";
8
8
  * import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as azurerm from "@pulumi/azurerm";
10
10
  *
11
- * const example = azurerm.Attestation({
11
+ * const example = azurerm.attestation({
12
12
  * name: "example-attestationprovider",
13
13
  * resourceGroupName: "example-resource-group",
14
14
  * });
@@ -74,7 +74,7 @@ export interface GetProviderResult {
74
74
  * import * as pulumi from "@pulumi/pulumi";
75
75
  * import * as azurerm from "@pulumi/azurerm";
76
76
  *
77
- * const example = azurerm.Attestation({
77
+ * const example = azurerm.attestation({
78
78
  * name: "example-attestationprovider",
79
79
  * resourceGroupName: "example-resource-group",
80
80
  * });
@@ -37,7 +37,7 @@ const utilities = __importStar(require("../utilities"));
37
37
  * import * as pulumi from "@pulumi/pulumi";
38
38
  * import * as azurerm from "@pulumi/azurerm";
39
39
  *
40
- * const example = azurerm.Attestation({
40
+ * const example = azurerm.attestation({
41
41
  * name: "example-attestationprovider",
42
42
  * resourceGroupName: "example-resource-group",
43
43
  * });
@@ -68,7 +68,7 @@ exports.getProvider = getProvider;
68
68
  * import * as pulumi from "@pulumi/pulumi";
69
69
  * import * as azurerm from "@pulumi/azurerm";
70
70
  *
71
- * const example = azurerm.Attestation({
71
+ * const example = azurerm.attestation({
72
72
  * name: "example-attestationprovider",
73
73
  * resourceGroupName: "example-resource-group",
74
74
  * });
@@ -15,7 +15,7 @@ import * as pulumi from "@pulumi/pulumi";
15
15
  * const example = new azure.keyvault.ManagedHardwareSecurityModuleRoleAssignment("example", {
16
16
  * name: "a9dbe818-56e7-5878-c0ce-a1477692c1d6",
17
17
  * managedHsmId: exampleAzurermKeyVaultManagedHardwareSecurityModule.id,
18
- * scope: output(user.then(user => user.scope)).apply(x =>String(x)),
18
+ * scope: user.then(user => user.scope),
19
19
  * roleDefinitionId: user.then(user => user.resourceManagerId),
20
20
  * principalId: current.objectId,
21
21
  * });
@@ -44,7 +44,7 @@ const utilities = __importStar(require("../utilities"));
44
44
  * const example = new azure.keyvault.ManagedHardwareSecurityModuleRoleAssignment("example", {
45
45
  * name: "a9dbe818-56e7-5878-c0ce-a1477692c1d6",
46
46
  * managedHsmId: exampleAzurermKeyVaultManagedHardwareSecurityModule.id,
47
- * scope: output(user.then(user => user.scope)).apply(x =>String(x)),
47
+ * scope: user.then(user => user.scope),
48
48
  * roleDefinitionId: user.then(user => user.resourceManagerId),
49
49
  * principalId: current.objectId,
50
50
  * });
@@ -27,7 +27,7 @@ import * as pulumi from "@pulumi/pulumi";
27
27
  * resourceGroupName: example.name,
28
28
  * clusterName: exampleCluster.name,
29
29
  * tenantId: current.then(current => current.tenantId),
30
- * principalId: output(current.then(current => current.principalId)).apply(x =>String(x)),
30
+ * principalId: current.then(current => current.principalId),
31
31
  * principalType: "App",
32
32
  * role: "AllDatabasesAdmin",
33
33
  * });
@@ -56,7 +56,7 @@ const utilities = __importStar(require("../utilities"));
56
56
  * resourceGroupName: example.name,
57
57
  * clusterName: exampleCluster.name,
58
58
  * tenantId: current.then(current => current.tenantId),
59
- * principalId: output(current.then(current => current.principalId)).apply(x =>String(x)),
59
+ * principalId: current.then(current => current.principalId),
60
60
  * principalType: "App",
61
61
  * role: "AllDatabasesAdmin",
62
62
  * });
@@ -29,13 +29,13 @@ import * as outputs from "../types/output";
29
29
  * description: "Test Managed App Definition",
30
30
  * authorizations: [{
31
31
  * servicePrincipalId: current.then(current => current.objectId),
32
- * roleDefinitionId: pulumi.all([builtin.then(builtin => std.split({
32
+ * roleDefinitionId: Promise.all([builtin.then(builtin => std.split({
33
33
  * separator: "/",
34
34
  * text: builtin.id,
35
35
  * })), builtin.then(builtin => std.split({
36
36
  * separator: "/",
37
37
  * text: builtin.id,
38
- * })).then(invoke => invoke.result).length]).apply(([invoke, length]) => invoke.result[length - 1]),
38
+ * })).then(invoke => invoke.result.length)]).then(([invoke, length]) => invoke.result[length - 1]),
39
39
  * }],
40
40
  * });
41
41
  * const exampleApplication = new azure.managedapplication.Application("example", {
@@ -56,13 +56,13 @@ const utilities = __importStar(require("../utilities"));
56
56
  * description: "Test Managed App Definition",
57
57
  * authorizations: [{
58
58
  * servicePrincipalId: current.then(current => current.objectId),
59
- * roleDefinitionId: pulumi.all([builtin.then(builtin => std.split({
59
+ * roleDefinitionId: Promise.all([builtin.then(builtin => std.split({
60
60
  * separator: "/",
61
61
  * text: builtin.id,
62
62
  * })), builtin.then(builtin => std.split({
63
63
  * separator: "/",
64
64
  * text: builtin.id,
65
- * })).then(invoke => invoke.result).length]).apply(([invoke, length]) => invoke.result[length - 1]),
65
+ * })).then(invoke => invoke.result.length)]).then(([invoke, length]) => invoke.result[length - 1]),
66
66
  * }],
67
67
  * });
68
68
  * const exampleApplication = new azure.managedapplication.Application("example", {
@@ -19,7 +19,7 @@ import * as outputs from "../types/output";
19
19
  * name: "example-lb",
20
20
  * resourceGroupName: "example-resources",
21
21
  * });
22
- * const exampleGetVirtualMachine = (new Array(2)).map((_, i) => i).map(__index => (azure.compute.getVirtualMachine({
22
+ * const exampleGetVirtualMachine = Array.from({length: 2}, (_, i) => i).map(__index => (azure.compute.getVirtualMachine({
23
23
  * name: "example-vm",
24
24
  * resourceGroupName: "example-resources",
25
25
  * })));
@@ -46,7 +46,7 @@ const utilities = __importStar(require("../utilities"));
46
46
  * name: "example-lb",
47
47
  * resourceGroupName: "example-resources",
48
48
  * });
49
- * const exampleGetVirtualMachine = (new Array(2)).map((_, i) => i).map(__index => (azure.compute.getVirtualMachine({
49
+ * const exampleGetVirtualMachine = Array.from({length: 2}, (_, i) => i).map(__index => (azure.compute.getVirtualMachine({
50
50
  * name: "example-vm",
51
51
  * resourceGroupName: "example-resources",
52
52
  * })));
@@ -56,14 +56,14 @@ import * as pulumi from "@pulumi/pulumi";
56
56
  * "10.1.0.0/16",
57
57
  * ];
58
58
  * const example: azure.core.ResourceGroup[] = [];
59
- * for (let range = 0; range < location.length; range++) {
59
+ * for (let range = 0; range < Object.keys(location).length; range++) {
60
60
  * example.push(new azure.core.ResourceGroup(`example-${range}`, {
61
61
  * name: `rg-global-vnet-peering-${range}`,
62
62
  * location: location[range],
63
63
  * }));
64
64
  * }
65
65
  * const vnet: azure.network.VirtualNetwork[] = [];
66
- * for (let range = 0; range < location.length; range++) {
66
+ * for (let range = 0; range < Object.keys(location).length; range++) {
67
67
  * vnet.push(new azure.network.VirtualNetwork(`vnet-${range}`, {
68
68
  * name: `vnet-${range}`,
69
69
  * resourceGroupName: example.map(__item => __item.name)[range],
@@ -72,7 +72,7 @@ import * as pulumi from "@pulumi/pulumi";
72
72
  * }));
73
73
  * }
74
74
  * const nva: azure.network.Subnet[] = [];
75
- * for (let range = 0; range < location.length; range++) {
75
+ * for (let range = 0; range < Object.keys(location).length; range++) {
76
76
  * nva.push(new azure.network.Subnet(`nva-${range}`, {
77
77
  * name: "nva",
78
78
  * resourceGroupName: example.map(__item => __item.name)[range],
@@ -86,7 +86,7 @@ import * as pulumi from "@pulumi/pulumi";
86
86
  * }
87
87
  * // enable global peering between the two virtual network
88
88
  * const peering: azure.network.VirtualNetworkPeering[] = [];
89
- * for (let range = 0; range < location.length; range++) {
89
+ * for (let range = 0; range < Object.keys(location).length; range++) {
90
90
  * peering.push(new azure.network.VirtualNetworkPeering(`peering-${range}`, {
91
91
  * name: pulumi.interpolate`peering-to-${vnet.map(__item => __item.name)[1 - range]}`,
92
92
  * resourceGroupName: example.map(__item => __item.name)[range],
@@ -85,14 +85,14 @@ const utilities = __importStar(require("../utilities"));
85
85
  * "10.1.0.0/16",
86
86
  * ];
87
87
  * const example: azure.core.ResourceGroup[] = [];
88
- * for (let range = 0; range < location.length; range++) {
88
+ * for (let range = 0; range < Object.keys(location).length; range++) {
89
89
  * example.push(new azure.core.ResourceGroup(`example-${range}`, {
90
90
  * name: `rg-global-vnet-peering-${range}`,
91
91
  * location: location[range],
92
92
  * }));
93
93
  * }
94
94
  * const vnet: azure.network.VirtualNetwork[] = [];
95
- * for (let range = 0; range < location.length; range++) {
95
+ * for (let range = 0; range < Object.keys(location).length; range++) {
96
96
  * vnet.push(new azure.network.VirtualNetwork(`vnet-${range}`, {
97
97
  * name: `vnet-${range}`,
98
98
  * resourceGroupName: example.map(__item => __item.name)[range],
@@ -101,7 +101,7 @@ const utilities = __importStar(require("../utilities"));
101
101
  * }));
102
102
  * }
103
103
  * const nva: azure.network.Subnet[] = [];
104
- * for (let range = 0; range < location.length; range++) {
104
+ * for (let range = 0; range < Object.keys(location).length; range++) {
105
105
  * nva.push(new azure.network.Subnet(`nva-${range}`, {
106
106
  * name: "nva",
107
107
  * resourceGroupName: example.map(__item => __item.name)[range],
@@ -115,7 +115,7 @@ const utilities = __importStar(require("../utilities"));
115
115
  * }
116
116
  * // enable global peering between the two virtual network
117
117
  * const peering: azure.network.VirtualNetworkPeering[] = [];
118
- * for (let range = 0; range < location.length; range++) {
118
+ * for (let range = 0; range < Object.keys(location).length; range++) {
119
119
  * peering.push(new azure.network.VirtualNetworkPeering(`peering-${range}`, {
120
120
  * name: pulumi.interpolate`peering-to-${vnet.map(__item => __item.name)[1 - range]}`,
121
121
  * resourceGroupName: example.map(__item => __item.name)[range],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/azure",
3
- "version": "6.40.0",
3
+ "version": "6.40.1-alpha.1791911465",
4
4
  "description": "A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -30,6 +30,6 @@
30
30
  "pulumi": {
31
31
  "resource": true,
32
32
  "name": "azure",
33
- "version": "6.40.0"
33
+ "version": "6.40.1-alpha.1791911465"
34
34
  }
35
35
  }
package/types/input.d.ts CHANGED
@@ -21226,7 +21226,7 @@ export declare namespace compute {
21226
21226
  * sku: {
21227
21227
  * name: vmSku,
21228
21228
  * tier: "Standard",
21229
- * capacity: Number(instanceCount),
21229
+ * capacity: instanceCount,
21230
21230
  * },
21231
21231
  * identity: {
21232
21232
  * type: "SystemAssigned",
package/types/output.d.ts CHANGED
@@ -28514,7 +28514,7 @@ export declare namespace compute {
28514
28514
  * sku: {
28515
28515
  * name: vmSku,
28516
28516
  * tier: "Standard",
28517
- * capacity: Number(instanceCount),
28517
+ * capacity: instanceCount,
28518
28518
  * },
28519
28519
  * identity: {
28520
28520
  * type: "SystemAssigned",
@@ -18,7 +18,7 @@ import * as outputs from "../types/output";
18
18
  * algorithm: "RSA",
19
19
  * rsaBits: 4096,
20
20
  * });
21
- * const example = tls.PublicKey({
21
+ * const example = tls.publicKey({
22
22
  * privateKeyPem: examplePrivateKey.privateKeyPem,
23
23
  * });
24
24
  * const exampleResourceGroup = new azure.core.ResourceGroup("example", {
@@ -45,7 +45,7 @@ const utilities = __importStar(require("../utilities"));
45
45
  * algorithm: "RSA",
46
46
  * rsaBits: 4096,
47
47
  * });
48
- * const example = tls.PublicKey({
48
+ * const example = tls.publicKey({
49
49
  * privateKeyPem: examplePrivateKey.privateKeyPem,
50
50
  * });
51
51
  * const exampleResourceGroup = new azure.core.ResourceGroup("example", {
@@ -17,7 +17,7 @@ import * as outputs from "../types/output";
17
17
  * algorithm: "RSA",
18
18
  * rsaBits: 4096,
19
19
  * });
20
- * const example = tls.PublicKey({
20
+ * const example = tls.publicKey({
21
21
  * privateKeyPem: examplePrivateKey.privateKeyPem,
22
22
  * });
23
23
  * const current = azure.core.getSubscription({});
@@ -44,7 +44,7 @@ const utilities = __importStar(require("../utilities"));
44
44
  * algorithm: "RSA",
45
45
  * rsaBits: 4096,
46
46
  * });
47
- * const example = tls.PublicKey({
47
+ * const example = tls.publicKey({
48
48
  * privateKeyPem: examplePrivateKey.privateKeyPem,
49
49
  * });
50
50
  * const current = azure.core.getSubscription({});