@pulumi/azure 5.76.0-alpha.1715338557 → 5.76.0-alpha.1715400990

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.
Files changed (62) hide show
  1. package/compute/automanageConfigurationAssignment.d.ts +134 -0
  2. package/compute/automanageConfigurationAssignment.js +131 -0
  3. package/compute/automanageConfigurationAssignment.js.map +1 -0
  4. package/compute/bastionHost.d.ts +18 -0
  5. package/compute/bastionHost.js +2 -0
  6. package/compute/bastionHost.js.map +1 -1
  7. package/compute/galleryApplicationAssignment.d.ts +174 -0
  8. package/compute/galleryApplicationAssignment.js +141 -0
  9. package/compute/galleryApplicationAssignment.js.map +1 -0
  10. package/compute/index.d.ts +6 -0
  11. package/compute/index.js +12 -2
  12. package/compute/index.js.map +1 -1
  13. package/compute/linuxVirtualMachine.d.ts +9 -3
  14. package/compute/linuxVirtualMachine.js.map +1 -1
  15. package/compute/windowsVirtualMachine.d.ts +6 -0
  16. package/compute/windowsVirtualMachine.js.map +1 -1
  17. package/containerapp/environment.d.ts +8 -0
  18. package/containerapp/environment.js +2 -0
  19. package/containerapp/environment.js.map +1 -1
  20. package/containerapp/environmentCustomDomain.d.ts +129 -0
  21. package/containerapp/environmentCustomDomain.js +114 -0
  22. package/containerapp/environmentCustomDomain.js.map +1 -0
  23. package/containerapp/getEnvironment.d.ts +4 -0
  24. package/containerapp/getEnvironment.js.map +1 -1
  25. package/containerapp/index.d.ts +6 -0
  26. package/containerapp/index.js +11 -1
  27. package/containerapp/index.js.map +1 -1
  28. package/containerapp/job.d.ts +323 -0
  29. package/containerapp/job.js +172 -0
  30. package/containerapp/job.js.map +1 -0
  31. package/datafactory/credentialServicePrincipal.d.ts +200 -0
  32. package/datafactory/credentialServicePrincipal.js +148 -0
  33. package/datafactory/credentialServicePrincipal.js.map +1 -0
  34. package/datafactory/index.d.ts +3 -0
  35. package/datafactory/index.js +7 -2
  36. package/datafactory/index.js.map +1 -1
  37. package/kusto/cluster.d.ts +1 -1
  38. package/maintenance/assignmentDynamicScope.d.ts +93 -0
  39. package/maintenance/assignmentDynamicScope.js +72 -0
  40. package/maintenance/assignmentDynamicScope.js.map +1 -0
  41. package/maintenance/index.d.ts +3 -0
  42. package/maintenance/index.js +6 -1
  43. package/maintenance/index.js.map +1 -1
  44. package/mssql/database.d.ts +6 -0
  45. package/mssql/database.js.map +1 -1
  46. package/network/getNetworkManagerConnectivityConfiguration.d.ts +97 -0
  47. package/network/getNetworkManagerConnectivityConfiguration.js +52 -0
  48. package/network/getNetworkManagerConnectivityConfiguration.js.map +1 -0
  49. package/network/getSubnet.d.ts +4 -0
  50. package/network/getSubnet.js.map +1 -1
  51. package/network/index.d.ts +3 -0
  52. package/network/index.js +7 -3
  53. package/network/index.js.map +1 -1
  54. package/network/profile.d.ts +3 -3
  55. package/network/subnet.d.ts +24 -12
  56. package/network/subnet.js +2 -0
  57. package/network/subnet.js.map +1 -1
  58. package/package.json +1 -1
  59. package/postgresql/flexibleServer.d.ts +9 -3
  60. package/postgresql/flexibleServer.js.map +1 -1
  61. package/types/input.d.ts +670 -16
  62. package/types/output.d.ts +753 -23
@@ -0,0 +1,134 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages a Virtual Machine Automanage Configuration Profile Assignment.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as azure from "@pulumi/azure";
10
+ *
11
+ * const example = new azure.core.ResourceGroup("example", {
12
+ * name: "example-rg",
13
+ * location: "westus",
14
+ * });
15
+ * const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
16
+ * name: "examplevnet",
17
+ * addressSpaces: ["10.0.0.0/16"],
18
+ * location: example.location,
19
+ * resourceGroupName: example.name,
20
+ * });
21
+ * const exampleSubnet = new azure.network.Subnet("example", {
22
+ * name: "internal",
23
+ * resourceGroupName: example.name,
24
+ * virtualNetworkName: exampleVirtualNetwork.name,
25
+ * addressPrefixes: ["10.0.2.0/24"],
26
+ * });
27
+ * const exampleNetworkInterface = new azure.network.NetworkInterface("example", {
28
+ * name: "exampleni",
29
+ * location: example.location,
30
+ * resourceGroupName: example.name,
31
+ * ipConfigurations: [{
32
+ * name: "internal",
33
+ * subnetId: exampleSubnet.id,
34
+ * privateIpAddressAllocation: "Dynamic",
35
+ * }],
36
+ * });
37
+ * const exampleLinuxVirtualMachine = new azure.compute.LinuxVirtualMachine("example", {
38
+ * name: "examplevm",
39
+ * resourceGroupName: example.name,
40
+ * location: example.location,
41
+ * size: "Standard_F2",
42
+ * adminUsername: "adminuser",
43
+ * adminPassword: "P@$$w0rd1234!",
44
+ * disablePasswordAuthentication: false,
45
+ * networkInterfaceIds: [exampleNetworkInterface.id],
46
+ * osDisk: {
47
+ * caching: "ReadWrite",
48
+ * storageAccountType: "Standard_LRS",
49
+ * },
50
+ * sourceImageReference: {
51
+ * publisher: "Canonical",
52
+ * offer: "0001-com-ubuntu-server-jammy",
53
+ * sku: "22_04-lts",
54
+ * version: "latest",
55
+ * },
56
+ * });
57
+ * const exampleConfiguration = new azure.automanage.Configuration("example", {
58
+ * name: "exampleconfig",
59
+ * resourceGroupName: example.name,
60
+ * location: example.location,
61
+ * });
62
+ * const exampleAutomanageConfigurationAssignment = new azure.compute.AutomanageConfigurationAssignment("example", {
63
+ * virtualMachineId: exampleLinuxVirtualMachine.id,
64
+ * configurationId: exampleConfiguration.id,
65
+ * });
66
+ * ```
67
+ *
68
+ * ## Import
69
+ *
70
+ * Virtual Machine Automanage Configuration Profile Assignment can be imported using the `resource id`, e.g.
71
+ *
72
+ * ```sh
73
+ * $ pulumi import azure:compute/automanageConfigurationAssignment:AutomanageConfigurationAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.AutoManage/configurationProfileAssignments/default
74
+ * ```
75
+ */
76
+ export declare class AutomanageConfigurationAssignment extends pulumi.CustomResource {
77
+ /**
78
+ * Get an existing AutomanageConfigurationAssignment resource's state with the given name, ID, and optional extra
79
+ * properties used to qualify the lookup.
80
+ *
81
+ * @param name The _unique_ name of the resulting resource.
82
+ * @param id The _unique_ provider ID of the resource to lookup.
83
+ * @param state Any extra arguments used during the lookup.
84
+ * @param opts Optional settings to control the behavior of the CustomResource.
85
+ */
86
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AutomanageConfigurationAssignmentState, opts?: pulumi.CustomResourceOptions): AutomanageConfigurationAssignment;
87
+ /**
88
+ * Returns true if the given object is an instance of AutomanageConfigurationAssignment. This is designed to work even
89
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
90
+ */
91
+ static isInstance(obj: any): obj is AutomanageConfigurationAssignment;
92
+ /**
93
+ * The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created.
94
+ */
95
+ readonly configurationId: pulumi.Output<string>;
96
+ /**
97
+ * The ARM resource ID of the Virtual Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created.
98
+ */
99
+ readonly virtualMachineId: pulumi.Output<string>;
100
+ /**
101
+ * Create a AutomanageConfigurationAssignment resource with the given unique name, arguments, and options.
102
+ *
103
+ * @param name The _unique_ name of the resource.
104
+ * @param args The arguments to use to populate this resource's properties.
105
+ * @param opts A bag of options that control this resource's behavior.
106
+ */
107
+ constructor(name: string, args: AutomanageConfigurationAssignmentArgs, opts?: pulumi.CustomResourceOptions);
108
+ }
109
+ /**
110
+ * Input properties used for looking up and filtering AutomanageConfigurationAssignment resources.
111
+ */
112
+ export interface AutomanageConfigurationAssignmentState {
113
+ /**
114
+ * The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created.
115
+ */
116
+ configurationId?: pulumi.Input<string>;
117
+ /**
118
+ * The ARM resource ID of the Virtual Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created.
119
+ */
120
+ virtualMachineId?: pulumi.Input<string>;
121
+ }
122
+ /**
123
+ * The set of arguments for constructing a AutomanageConfigurationAssignment resource.
124
+ */
125
+ export interface AutomanageConfigurationAssignmentArgs {
126
+ /**
127
+ * The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created.
128
+ */
129
+ configurationId: pulumi.Input<string>;
130
+ /**
131
+ * The ARM resource ID of the Virtual Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created.
132
+ */
133
+ virtualMachineId: pulumi.Input<string>;
134
+ }
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.AutomanageConfigurationAssignment = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Manages a Virtual Machine Automanage Configuration Profile Assignment.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as azure from "@pulumi/azure";
16
+ *
17
+ * const example = new azure.core.ResourceGroup("example", {
18
+ * name: "example-rg",
19
+ * location: "westus",
20
+ * });
21
+ * const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
22
+ * name: "examplevnet",
23
+ * addressSpaces: ["10.0.0.0/16"],
24
+ * location: example.location,
25
+ * resourceGroupName: example.name,
26
+ * });
27
+ * const exampleSubnet = new azure.network.Subnet("example", {
28
+ * name: "internal",
29
+ * resourceGroupName: example.name,
30
+ * virtualNetworkName: exampleVirtualNetwork.name,
31
+ * addressPrefixes: ["10.0.2.0/24"],
32
+ * });
33
+ * const exampleNetworkInterface = new azure.network.NetworkInterface("example", {
34
+ * name: "exampleni",
35
+ * location: example.location,
36
+ * resourceGroupName: example.name,
37
+ * ipConfigurations: [{
38
+ * name: "internal",
39
+ * subnetId: exampleSubnet.id,
40
+ * privateIpAddressAllocation: "Dynamic",
41
+ * }],
42
+ * });
43
+ * const exampleLinuxVirtualMachine = new azure.compute.LinuxVirtualMachine("example", {
44
+ * name: "examplevm",
45
+ * resourceGroupName: example.name,
46
+ * location: example.location,
47
+ * size: "Standard_F2",
48
+ * adminUsername: "adminuser",
49
+ * adminPassword: "P@$$w0rd1234!",
50
+ * disablePasswordAuthentication: false,
51
+ * networkInterfaceIds: [exampleNetworkInterface.id],
52
+ * osDisk: {
53
+ * caching: "ReadWrite",
54
+ * storageAccountType: "Standard_LRS",
55
+ * },
56
+ * sourceImageReference: {
57
+ * publisher: "Canonical",
58
+ * offer: "0001-com-ubuntu-server-jammy",
59
+ * sku: "22_04-lts",
60
+ * version: "latest",
61
+ * },
62
+ * });
63
+ * const exampleConfiguration = new azure.automanage.Configuration("example", {
64
+ * name: "exampleconfig",
65
+ * resourceGroupName: example.name,
66
+ * location: example.location,
67
+ * });
68
+ * const exampleAutomanageConfigurationAssignment = new azure.compute.AutomanageConfigurationAssignment("example", {
69
+ * virtualMachineId: exampleLinuxVirtualMachine.id,
70
+ * configurationId: exampleConfiguration.id,
71
+ * });
72
+ * ```
73
+ *
74
+ * ## Import
75
+ *
76
+ * Virtual Machine Automanage Configuration Profile Assignment can be imported using the `resource id`, e.g.
77
+ *
78
+ * ```sh
79
+ * $ pulumi import azure:compute/automanageConfigurationAssignment:AutomanageConfigurationAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.AutoManage/configurationProfileAssignments/default
80
+ * ```
81
+ */
82
+ class AutomanageConfigurationAssignment extends pulumi.CustomResource {
83
+ constructor(name, argsOrState, opts) {
84
+ let resourceInputs = {};
85
+ opts = opts || {};
86
+ if (opts.id) {
87
+ const state = argsOrState;
88
+ resourceInputs["configurationId"] = state ? state.configurationId : undefined;
89
+ resourceInputs["virtualMachineId"] = state ? state.virtualMachineId : undefined;
90
+ }
91
+ else {
92
+ const args = argsOrState;
93
+ if ((!args || args.configurationId === undefined) && !opts.urn) {
94
+ throw new Error("Missing required property 'configurationId'");
95
+ }
96
+ if ((!args || args.virtualMachineId === undefined) && !opts.urn) {
97
+ throw new Error("Missing required property 'virtualMachineId'");
98
+ }
99
+ resourceInputs["configurationId"] = args ? args.configurationId : undefined;
100
+ resourceInputs["virtualMachineId"] = args ? args.virtualMachineId : undefined;
101
+ }
102
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
103
+ super(AutomanageConfigurationAssignment.__pulumiType, name, resourceInputs, opts);
104
+ }
105
+ /**
106
+ * Get an existing AutomanageConfigurationAssignment resource's state with the given name, ID, and optional extra
107
+ * properties used to qualify the lookup.
108
+ *
109
+ * @param name The _unique_ name of the resulting resource.
110
+ * @param id The _unique_ provider ID of the resource to lookup.
111
+ * @param state Any extra arguments used during the lookup.
112
+ * @param opts Optional settings to control the behavior of the CustomResource.
113
+ */
114
+ static get(name, id, state, opts) {
115
+ return new AutomanageConfigurationAssignment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
116
+ }
117
+ /**
118
+ * Returns true if the given object is an instance of AutomanageConfigurationAssignment. This is designed to work even
119
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
120
+ */
121
+ static isInstance(obj) {
122
+ if (obj === undefined || obj === null) {
123
+ return false;
124
+ }
125
+ return obj['__pulumiType'] === AutomanageConfigurationAssignment.__pulumiType;
126
+ }
127
+ }
128
+ exports.AutomanageConfigurationAssignment = AutomanageConfigurationAssignment;
129
+ /** @internal */
130
+ AutomanageConfigurationAssignment.__pulumiType = 'azure:compute/automanageConfigurationAssignment:AutomanageConfigurationAssignment';
131
+ //# sourceMappingURL=automanageConfigurationAssignment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"automanageConfigurationAssignment.js","sourceRoot":"","sources":["../../compute/automanageConfigurationAssignment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;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AI,CAAC,CAAC;QACnE,KAAK,CAAC,iCAAiC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtF,CAAC;IAhED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8C,EAAE,IAAmC;QAC5I,OAAO,IAAI,iCAAiC,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,iCAAiC,CAAC,YAAY,CAAC;IAClF,CAAC;;AA1BL,8EAkEC;AApDG,gBAAgB;AACO,8CAAY,GAAG,mFAAmF,CAAC"}
@@ -95,6 +95,12 @@ export declare class BastionHost extends pulumi.CustomResource {
95
95
  * > **Note:** `ipConnectEnabled` is only supported when `sku` is `Standard`.
96
96
  */
97
97
  readonly ipConnectEnabled: pulumi.Output<boolean | undefined>;
98
+ /**
99
+ * Is Kerberos authentication feature enabled for the Bastion Host. Defaults to `false`.
100
+ *
101
+ * > **Note:** `kerberosEnabled` is only supported when `sku` is `Standard`.
102
+ */
103
+ readonly kerberosEnabled: pulumi.Output<boolean | undefined>;
98
104
  /**
99
105
  * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Review [Azure Bastion Host FAQ](https://docs.microsoft.com/azure/bastion/bastion-faq) for supported locations.
100
106
  */
@@ -174,6 +180,12 @@ export interface BastionHostState {
174
180
  * > **Note:** `ipConnectEnabled` is only supported when `sku` is `Standard`.
175
181
  */
176
182
  ipConnectEnabled?: pulumi.Input<boolean>;
183
+ /**
184
+ * Is Kerberos authentication feature enabled for the Bastion Host. Defaults to `false`.
185
+ *
186
+ * > **Note:** `kerberosEnabled` is only supported when `sku` is `Standard`.
187
+ */
188
+ kerberosEnabled?: pulumi.Input<boolean>;
177
189
  /**
178
190
  * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Review [Azure Bastion Host FAQ](https://docs.microsoft.com/azure/bastion/bastion-faq) for supported locations.
179
191
  */
@@ -241,6 +253,12 @@ export interface BastionHostArgs {
241
253
  * > **Note:** `ipConnectEnabled` is only supported when `sku` is `Standard`.
242
254
  */
243
255
  ipConnectEnabled?: pulumi.Input<boolean>;
256
+ /**
257
+ * Is Kerberos authentication feature enabled for the Bastion Host. Defaults to `false`.
258
+ *
259
+ * > **Note:** `kerberosEnabled` is only supported when `sku` is `Standard`.
260
+ */
261
+ kerberosEnabled?: pulumi.Input<boolean>;
244
262
  /**
245
263
  * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Review [Azure Bastion Host FAQ](https://docs.microsoft.com/azure/bastion/bastion-faq) for supported locations.
246
264
  */
@@ -70,6 +70,7 @@ class BastionHost extends pulumi.CustomResource {
70
70
  resourceInputs["fileCopyEnabled"] = state ? state.fileCopyEnabled : undefined;
71
71
  resourceInputs["ipConfiguration"] = state ? state.ipConfiguration : undefined;
72
72
  resourceInputs["ipConnectEnabled"] = state ? state.ipConnectEnabled : undefined;
73
+ resourceInputs["kerberosEnabled"] = state ? state.kerberosEnabled : undefined;
73
74
  resourceInputs["location"] = state ? state.location : undefined;
74
75
  resourceInputs["name"] = state ? state.name : undefined;
75
76
  resourceInputs["resourceGroupName"] = state ? state.resourceGroupName : undefined;
@@ -91,6 +92,7 @@ class BastionHost extends pulumi.CustomResource {
91
92
  resourceInputs["fileCopyEnabled"] = args ? args.fileCopyEnabled : undefined;
92
93
  resourceInputs["ipConfiguration"] = args ? args.ipConfiguration : undefined;
93
94
  resourceInputs["ipConnectEnabled"] = args ? args.ipConnectEnabled : undefined;
95
+ resourceInputs["kerberosEnabled"] = args ? args.kerberosEnabled : undefined;
94
96
  resourceInputs["location"] = args ? args.location : undefined;
95
97
  resourceInputs["name"] = args ? args.name : undefined;
96
98
  resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"bastionHost.js","sourceRoot":"","sources":["../../compute/bastionHost.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAqGlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAA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EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCAwJC;AA1IG,gBAAgB;AACO,wBAAY,GAAG,uCAAuC,CAAC"}
@@ -0,0 +1,174 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages a Virtual Machine Gallery Application Assignment.
4
+ *
5
+ * > **Note:** Gallery Application Assignments can be defined either directly on `azure.compute.LinuxVirtualMachine` and `azure.compute.WindowsVirtualMachine` resources, or using the `azure.compute.GalleryApplicationAssignment` resource - but the two approaches cannot be used together. If both are used with the same Virtual Machine, spurious changes will occur. It's recommended to use `ignoreChanges` for the `galleryApplication` block on the associated virtual machine resources, to avoid a persistent diff when using this resource.
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as azure from "@pulumi/azure";
11
+ *
12
+ * const example = azure.compute.getVirtualMachine({
13
+ * name: "example-vm",
14
+ * resourceGroupName: "example-resources-vm",
15
+ * });
16
+ * const exampleResourceGroup = new azure.core.ResourceGroup("example", {
17
+ * name: "example-resources",
18
+ * location: "West Europe",
19
+ * });
20
+ * const exampleSharedImageGallery = new azure.compute.SharedImageGallery("example", {
21
+ * name: "examplegallery",
22
+ * resourceGroupName: exampleResourceGroup.name,
23
+ * location: exampleResourceGroup.location,
24
+ * });
25
+ * const exampleGalleryApplication = new azure.compute.GalleryApplication("example", {
26
+ * name: "example-app",
27
+ * galleryId: exampleSharedImageGallery.id,
28
+ * location: exampleResourceGroup.location,
29
+ * supportedOsType: "Linux",
30
+ * });
31
+ * const exampleAccount = new azure.storage.Account("example", {
32
+ * name: "examplestorage",
33
+ * resourceGroupName: exampleResourceGroup.name,
34
+ * location: exampleResourceGroup.location,
35
+ * accountTier: "Standard",
36
+ * accountReplicationType: "LRS",
37
+ * });
38
+ * const exampleContainer = new azure.storage.Container("example", {
39
+ * name: "example-container",
40
+ * storageAccountName: exampleAccount.name,
41
+ * containerAccessType: "blob",
42
+ * });
43
+ * const exampleBlob = new azure.storage.Blob("example", {
44
+ * name: "scripts",
45
+ * storageAccountName: exampleAccount.name,
46
+ * storageContainerName: exampleContainer.name,
47
+ * type: "Block",
48
+ * sourceContent: "[scripts file content]",
49
+ * });
50
+ * const exampleGalleryApplicationVersion = new azure.compute.GalleryApplicationVersion("example", {
51
+ * name: "0.0.1",
52
+ * galleryApplicationId: exampleGalleryApplication.id,
53
+ * location: exampleGalleryApplication.location,
54
+ * manageAction: {
55
+ * install: "[install command]",
56
+ * remove: "[remove command]",
57
+ * },
58
+ * source: {
59
+ * mediaLink: exampleBlob.id,
60
+ * },
61
+ * targetRegions: [{
62
+ * name: exampleGalleryApplication.location,
63
+ * regionalReplicaCount: 1,
64
+ * }],
65
+ * });
66
+ * const exampleGalleryApplicationAssignment = new azure.compute.GalleryApplicationAssignment("example", {
67
+ * galleryApplicationVersionId: exampleGalleryApplicationVersion.id,
68
+ * virtualMachineId: example.then(example => example.id),
69
+ * });
70
+ * ```
71
+ *
72
+ * ## Import
73
+ *
74
+ * Virtual Machine Gallery Application Assignments can be imported using the `resource id`, e.g.
75
+ *
76
+ * ```sh
77
+ * $ pulumi import azure:compute/galleryApplicationAssignment:GalleryApplicationAssignment example subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/virtualMachines/machine1|/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1/versions/galleryApplicationVersion1
78
+ * ```
79
+ */
80
+ export declare class GalleryApplicationAssignment extends pulumi.CustomResource {
81
+ /**
82
+ * Get an existing GalleryApplicationAssignment resource's state with the given name, ID, and optional extra
83
+ * properties used to qualify the lookup.
84
+ *
85
+ * @param name The _unique_ name of the resulting resource.
86
+ * @param id The _unique_ provider ID of the resource to lookup.
87
+ * @param state Any extra arguments used during the lookup.
88
+ * @param opts Optional settings to control the behavior of the CustomResource.
89
+ */
90
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GalleryApplicationAssignmentState, opts?: pulumi.CustomResourceOptions): GalleryApplicationAssignment;
91
+ /**
92
+ * Returns true if the given object is an instance of GalleryApplicationAssignment. This is designed to work even
93
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
94
+ */
95
+ static isInstance(obj: any): obj is GalleryApplicationAssignment;
96
+ /**
97
+ * Specifies the URI to an Azure Blob that will replace the default configuration for the package if provided. Changing this forces a new resource to be created.
98
+ */
99
+ readonly configurationBlobUri: pulumi.Output<string | undefined>;
100
+ /**
101
+ * The ID of the Gallery Application Version. Changing this forces a new resource to be created.
102
+ */
103
+ readonly galleryApplicationVersionId: pulumi.Output<string>;
104
+ /**
105
+ * Specifies the order in which the packages have to be installed. Possible values are between `0` and `2147483647`. Defaults to `0`.
106
+ */
107
+ readonly order: pulumi.Output<number | undefined>;
108
+ /**
109
+ * Specifies a passthrough value for more generic context. This field can be any valid `string` value. Changing this forces a new resource to be created.
110
+ */
111
+ readonly tag: pulumi.Output<string | undefined>;
112
+ /**
113
+ * The ID of the Virtual Machine. Changing this forces a new resource to be created.
114
+ */
115
+ readonly virtualMachineId: pulumi.Output<string>;
116
+ /**
117
+ * Create a GalleryApplicationAssignment resource with the given unique name, arguments, and options.
118
+ *
119
+ * @param name The _unique_ name of the resource.
120
+ * @param args The arguments to use to populate this resource's properties.
121
+ * @param opts A bag of options that control this resource's behavior.
122
+ */
123
+ constructor(name: string, args: GalleryApplicationAssignmentArgs, opts?: pulumi.CustomResourceOptions);
124
+ }
125
+ /**
126
+ * Input properties used for looking up and filtering GalleryApplicationAssignment resources.
127
+ */
128
+ export interface GalleryApplicationAssignmentState {
129
+ /**
130
+ * Specifies the URI to an Azure Blob that will replace the default configuration for the package if provided. Changing this forces a new resource to be created.
131
+ */
132
+ configurationBlobUri?: pulumi.Input<string>;
133
+ /**
134
+ * The ID of the Gallery Application Version. Changing this forces a new resource to be created.
135
+ */
136
+ galleryApplicationVersionId?: pulumi.Input<string>;
137
+ /**
138
+ * Specifies the order in which the packages have to be installed. Possible values are between `0` and `2147483647`. Defaults to `0`.
139
+ */
140
+ order?: pulumi.Input<number>;
141
+ /**
142
+ * Specifies a passthrough value for more generic context. This field can be any valid `string` value. Changing this forces a new resource to be created.
143
+ */
144
+ tag?: pulumi.Input<string>;
145
+ /**
146
+ * The ID of the Virtual Machine. Changing this forces a new resource to be created.
147
+ */
148
+ virtualMachineId?: pulumi.Input<string>;
149
+ }
150
+ /**
151
+ * The set of arguments for constructing a GalleryApplicationAssignment resource.
152
+ */
153
+ export interface GalleryApplicationAssignmentArgs {
154
+ /**
155
+ * Specifies the URI to an Azure Blob that will replace the default configuration for the package if provided. Changing this forces a new resource to be created.
156
+ */
157
+ configurationBlobUri?: pulumi.Input<string>;
158
+ /**
159
+ * The ID of the Gallery Application Version. Changing this forces a new resource to be created.
160
+ */
161
+ galleryApplicationVersionId: pulumi.Input<string>;
162
+ /**
163
+ * Specifies the order in which the packages have to be installed. Possible values are between `0` and `2147483647`. Defaults to `0`.
164
+ */
165
+ order?: pulumi.Input<number>;
166
+ /**
167
+ * Specifies a passthrough value for more generic context. This field can be any valid `string` value. Changing this forces a new resource to be created.
168
+ */
169
+ tag?: pulumi.Input<string>;
170
+ /**
171
+ * The ID of the Virtual Machine. Changing this forces a new resource to be created.
172
+ */
173
+ virtualMachineId: pulumi.Input<string>;
174
+ }
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.GalleryApplicationAssignment = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Manages a Virtual Machine Gallery Application Assignment.
10
+ *
11
+ * > **Note:** Gallery Application Assignments can be defined either directly on `azure.compute.LinuxVirtualMachine` and `azure.compute.WindowsVirtualMachine` resources, or using the `azure.compute.GalleryApplicationAssignment` resource - but the two approaches cannot be used together. If both are used with the same Virtual Machine, spurious changes will occur. It's recommended to use `ignoreChanges` for the `galleryApplication` block on the associated virtual machine resources, to avoid a persistent diff when using this resource.
12
+ * ## Example Usage
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as azure from "@pulumi/azure";
17
+ *
18
+ * const example = azure.compute.getVirtualMachine({
19
+ * name: "example-vm",
20
+ * resourceGroupName: "example-resources-vm",
21
+ * });
22
+ * const exampleResourceGroup = new azure.core.ResourceGroup("example", {
23
+ * name: "example-resources",
24
+ * location: "West Europe",
25
+ * });
26
+ * const exampleSharedImageGallery = new azure.compute.SharedImageGallery("example", {
27
+ * name: "examplegallery",
28
+ * resourceGroupName: exampleResourceGroup.name,
29
+ * location: exampleResourceGroup.location,
30
+ * });
31
+ * const exampleGalleryApplication = new azure.compute.GalleryApplication("example", {
32
+ * name: "example-app",
33
+ * galleryId: exampleSharedImageGallery.id,
34
+ * location: exampleResourceGroup.location,
35
+ * supportedOsType: "Linux",
36
+ * });
37
+ * const exampleAccount = new azure.storage.Account("example", {
38
+ * name: "examplestorage",
39
+ * resourceGroupName: exampleResourceGroup.name,
40
+ * location: exampleResourceGroup.location,
41
+ * accountTier: "Standard",
42
+ * accountReplicationType: "LRS",
43
+ * });
44
+ * const exampleContainer = new azure.storage.Container("example", {
45
+ * name: "example-container",
46
+ * storageAccountName: exampleAccount.name,
47
+ * containerAccessType: "blob",
48
+ * });
49
+ * const exampleBlob = new azure.storage.Blob("example", {
50
+ * name: "scripts",
51
+ * storageAccountName: exampleAccount.name,
52
+ * storageContainerName: exampleContainer.name,
53
+ * type: "Block",
54
+ * sourceContent: "[scripts file content]",
55
+ * });
56
+ * const exampleGalleryApplicationVersion = new azure.compute.GalleryApplicationVersion("example", {
57
+ * name: "0.0.1",
58
+ * galleryApplicationId: exampleGalleryApplication.id,
59
+ * location: exampleGalleryApplication.location,
60
+ * manageAction: {
61
+ * install: "[install command]",
62
+ * remove: "[remove command]",
63
+ * },
64
+ * source: {
65
+ * mediaLink: exampleBlob.id,
66
+ * },
67
+ * targetRegions: [{
68
+ * name: exampleGalleryApplication.location,
69
+ * regionalReplicaCount: 1,
70
+ * }],
71
+ * });
72
+ * const exampleGalleryApplicationAssignment = new azure.compute.GalleryApplicationAssignment("example", {
73
+ * galleryApplicationVersionId: exampleGalleryApplicationVersion.id,
74
+ * virtualMachineId: example.then(example => example.id),
75
+ * });
76
+ * ```
77
+ *
78
+ * ## Import
79
+ *
80
+ * Virtual Machine Gallery Application Assignments can be imported using the `resource id`, e.g.
81
+ *
82
+ * ```sh
83
+ * $ pulumi import azure:compute/galleryApplicationAssignment:GalleryApplicationAssignment example subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/virtualMachines/machine1|/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1/versions/galleryApplicationVersion1
84
+ * ```
85
+ */
86
+ class GalleryApplicationAssignment extends pulumi.CustomResource {
87
+ constructor(name, argsOrState, opts) {
88
+ let resourceInputs = {};
89
+ opts = opts || {};
90
+ if (opts.id) {
91
+ const state = argsOrState;
92
+ resourceInputs["configurationBlobUri"] = state ? state.configurationBlobUri : undefined;
93
+ resourceInputs["galleryApplicationVersionId"] = state ? state.galleryApplicationVersionId : undefined;
94
+ resourceInputs["order"] = state ? state.order : undefined;
95
+ resourceInputs["tag"] = state ? state.tag : undefined;
96
+ resourceInputs["virtualMachineId"] = state ? state.virtualMachineId : undefined;
97
+ }
98
+ else {
99
+ const args = argsOrState;
100
+ if ((!args || args.galleryApplicationVersionId === undefined) && !opts.urn) {
101
+ throw new Error("Missing required property 'galleryApplicationVersionId'");
102
+ }
103
+ if ((!args || args.virtualMachineId === undefined) && !opts.urn) {
104
+ throw new Error("Missing required property 'virtualMachineId'");
105
+ }
106
+ resourceInputs["configurationBlobUri"] = args ? args.configurationBlobUri : undefined;
107
+ resourceInputs["galleryApplicationVersionId"] = args ? args.galleryApplicationVersionId : undefined;
108
+ resourceInputs["order"] = args ? args.order : undefined;
109
+ resourceInputs["tag"] = args ? args.tag : undefined;
110
+ resourceInputs["virtualMachineId"] = args ? args.virtualMachineId : undefined;
111
+ }
112
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
113
+ super(GalleryApplicationAssignment.__pulumiType, name, resourceInputs, opts);
114
+ }
115
+ /**
116
+ * Get an existing GalleryApplicationAssignment resource's state with the given name, ID, and optional extra
117
+ * properties used to qualify the lookup.
118
+ *
119
+ * @param name The _unique_ name of the resulting resource.
120
+ * @param id The _unique_ provider ID of the resource to lookup.
121
+ * @param state Any extra arguments used during the lookup.
122
+ * @param opts Optional settings to control the behavior of the CustomResource.
123
+ */
124
+ static get(name, id, state, opts) {
125
+ return new GalleryApplicationAssignment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
126
+ }
127
+ /**
128
+ * Returns true if the given object is an instance of GalleryApplicationAssignment. This is designed to work even
129
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
130
+ */
131
+ static isInstance(obj) {
132
+ if (obj === undefined || obj === null) {
133
+ return false;
134
+ }
135
+ return obj['__pulumiType'] === GalleryApplicationAssignment.__pulumiType;
136
+ }
137
+ }
138
+ exports.GalleryApplicationAssignment = GalleryApplicationAssignment;
139
+ /** @internal */
140
+ GalleryApplicationAssignment.__pulumiType = 'azure:compute/galleryApplicationAssignment:GalleryApplicationAssignment';
141
+ //# sourceMappingURL=galleryApplicationAssignment.js.map