@pulumi/azure 6.1.0-alpha.1727225135 → 6.1.0-alpha.1727464111
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/arcmachine/arcMachine.d.ts +113 -0
- package/arcmachine/arcMachine.js +90 -0
- package/arcmachine/arcMachine.js.map +1 -0
- package/arcmachine/automanageConfigurationAssignment.d.ts +105 -0
- package/arcmachine/automanageConfigurationAssignment.js +96 -0
- package/arcmachine/automanageConfigurationAssignment.js.map +1 -0
- package/arcmachine/index.d.ts +6 -0
- package/arcmachine/index.js +11 -1
- package/arcmachine/index.js.map +1 -1
- package/cognitive/deployment.d.ts +40 -0
- package/cognitive/deployment.js +31 -0
- package/cognitive/deployment.js.map +1 -1
- package/dataprotection/backupInstanceKubernetesCluster.d.ts +162 -0
- package/dataprotection/backupInstanceKubernetesCluster.js +162 -0
- package/dataprotection/backupInstanceKubernetesCluster.js.map +1 -1
- package/dataprotection/backupVault.d.ts +18 -0
- package/dataprotection/backupVault.js +2 -0
- package/dataprotection/backupVault.js.map +1 -1
- package/eventhub/queue.d.ts +14 -14
- package/index.d.ts +1 -2
- package/index.js +2 -4
- package/index.js.map +1 -1
- package/mssql/database.d.ts +1 -10
- package/mssql/database.js +1 -10
- package/mssql/database.js.map +1 -1
- package/mssql/managedInstance.d.ts +12 -0
- package/mssql/managedInstance.js +2 -0
- package/mssql/managedInstance.js.map +1 -1
- package/netapp/volume.d.ts +12 -0
- package/netapp/volume.js +2 -0
- package/netapp/volume.js.map +1 -1
- package/network/virtualNetwork.d.ts +41 -0
- package/network/virtualNetwork.js +41 -0
- package/network/virtualNetwork.js.map +1 -1
- package/package.json +2 -2
- package/postgresql/flexibleServerVirtualEndpoint.d.ts +1 -1
- package/postgresql/flexibleServerVirtualEndpoint.js +1 -1
- package/sentinel/alertRuleNrt.d.ts +0 -6
- package/sentinel/alertRuleNrt.js.map +1 -1
- package/sentinel/dataConnectorMicrosoftThreatIntelligence.d.ts +0 -12
- package/sentinel/dataConnectorMicrosoftThreatIntelligence.js.map +1 -1
- package/servicebus/queue.d.ts +14 -14
- package/types/input.d.ts +54 -91
- package/types/output.d.ts +54 -91
- package/media/accountFilter.d.ts +0 -199
- package/media/accountFilter.js +0 -154
- package/media/accountFilter.js.map +0 -1
- package/media/index.d.ts +0 -3
- package/media/index.js +0 -22
- package/media/index.js.map +0 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages a Hybrid Compute Machine.
|
|
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-resources",
|
|
13
|
+
* location: "West Europe",
|
|
14
|
+
* });
|
|
15
|
+
* const exampleArcMachine = new azure.arcmachine.ArcMachine("example", {
|
|
16
|
+
* name: "example-arcmachine",
|
|
17
|
+
* resourceGroupName: example.name,
|
|
18
|
+
* location: example.location,
|
|
19
|
+
* kind: "SCVMM",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* Arc Machines can be imported using the `resource id`, e.g.
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import azure:arcmachine/arcMachine:ArcMachine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.HybridCompute/machines/machine1
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare class ArcMachine extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing ArcMachine resource's state with the given name, ID, and optional extra
|
|
34
|
+
* properties used to qualify the lookup.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resulting resource.
|
|
37
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
+
* @param state Any extra arguments used during the lookup.
|
|
39
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
+
*/
|
|
41
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ArcMachineState, opts?: pulumi.CustomResourceOptions): ArcMachine;
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given object is an instance of ArcMachine. This is designed to work even
|
|
44
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
|
+
*/
|
|
46
|
+
static isInstance(obj: any): obj is ArcMachine;
|
|
47
|
+
/**
|
|
48
|
+
* The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created.
|
|
49
|
+
*/
|
|
50
|
+
readonly kind: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created.
|
|
53
|
+
*/
|
|
54
|
+
readonly location: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* The name of the Arc machine. Changing this forces a new resource to be created.
|
|
57
|
+
*/
|
|
58
|
+
readonly name: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created.
|
|
61
|
+
*/
|
|
62
|
+
readonly resourceGroupName: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a ArcMachine resource with the given unique name, arguments, and options.
|
|
65
|
+
*
|
|
66
|
+
* @param name The _unique_ name of the resource.
|
|
67
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
68
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
69
|
+
*/
|
|
70
|
+
constructor(name: string, args: ArcMachineArgs, opts?: pulumi.CustomResourceOptions);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Input properties used for looking up and filtering ArcMachine resources.
|
|
74
|
+
*/
|
|
75
|
+
export interface ArcMachineState {
|
|
76
|
+
/**
|
|
77
|
+
* The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created.
|
|
78
|
+
*/
|
|
79
|
+
kind?: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created.
|
|
82
|
+
*/
|
|
83
|
+
location?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The name of the Arc machine. Changing this forces a new resource to be created.
|
|
86
|
+
*/
|
|
87
|
+
name?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created.
|
|
90
|
+
*/
|
|
91
|
+
resourceGroupName?: pulumi.Input<string>;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* The set of arguments for constructing a ArcMachine resource.
|
|
95
|
+
*/
|
|
96
|
+
export interface ArcMachineArgs {
|
|
97
|
+
/**
|
|
98
|
+
* The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created.
|
|
99
|
+
*/
|
|
100
|
+
kind: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created.
|
|
103
|
+
*/
|
|
104
|
+
location?: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* The name of the Arc machine. Changing this forces a new resource to be created.
|
|
107
|
+
*/
|
|
108
|
+
name?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created.
|
|
111
|
+
*/
|
|
112
|
+
resourceGroupName: pulumi.Input<string>;
|
|
113
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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.ArcMachine = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a Hybrid Compute Machine.
|
|
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-resources",
|
|
19
|
+
* location: "West Europe",
|
|
20
|
+
* });
|
|
21
|
+
* const exampleArcMachine = new azure.arcmachine.ArcMachine("example", {
|
|
22
|
+
* name: "example-arcmachine",
|
|
23
|
+
* resourceGroupName: example.name,
|
|
24
|
+
* location: example.location,
|
|
25
|
+
* kind: "SCVMM",
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* Arc Machines can be imported using the `resource id`, e.g.
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import azure:arcmachine/arcMachine:ArcMachine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.HybridCompute/machines/machine1
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
class ArcMachine extends pulumi.CustomResource {
|
|
38
|
+
constructor(name, argsOrState, opts) {
|
|
39
|
+
let resourceInputs = {};
|
|
40
|
+
opts = opts || {};
|
|
41
|
+
if (opts.id) {
|
|
42
|
+
const state = argsOrState;
|
|
43
|
+
resourceInputs["kind"] = state ? state.kind : undefined;
|
|
44
|
+
resourceInputs["location"] = state ? state.location : undefined;
|
|
45
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
46
|
+
resourceInputs["resourceGroupName"] = state ? state.resourceGroupName : undefined;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
const args = argsOrState;
|
|
50
|
+
if ((!args || args.kind === undefined) && !opts.urn) {
|
|
51
|
+
throw new Error("Missing required property 'kind'");
|
|
52
|
+
}
|
|
53
|
+
if ((!args || args.resourceGroupName === undefined) && !opts.urn) {
|
|
54
|
+
throw new Error("Missing required property 'resourceGroupName'");
|
|
55
|
+
}
|
|
56
|
+
resourceInputs["kind"] = args ? args.kind : undefined;
|
|
57
|
+
resourceInputs["location"] = args ? args.location : undefined;
|
|
58
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
59
|
+
resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined;
|
|
60
|
+
}
|
|
61
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
62
|
+
super(ArcMachine.__pulumiType, name, resourceInputs, opts);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get an existing ArcMachine resource's state with the given name, ID, and optional extra
|
|
66
|
+
* properties used to qualify the lookup.
|
|
67
|
+
*
|
|
68
|
+
* @param name The _unique_ name of the resulting resource.
|
|
69
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
70
|
+
* @param state Any extra arguments used during the lookup.
|
|
71
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
72
|
+
*/
|
|
73
|
+
static get(name, id, state, opts) {
|
|
74
|
+
return new ArcMachine(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Returns true if the given object is an instance of ArcMachine. This is designed to work even
|
|
78
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
79
|
+
*/
|
|
80
|
+
static isInstance(obj) {
|
|
81
|
+
if (obj === undefined || obj === null) {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
return obj['__pulumiType'] === ArcMachine.__pulumiType;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.ArcMachine = ArcMachine;
|
|
88
|
+
/** @internal */
|
|
89
|
+
ArcMachine.__pulumiType = 'azure:arcmachine/arcMachine:ArcMachine';
|
|
90
|
+
//# sourceMappingURL=arcMachine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arcMachine.js","sourceRoot":"","sources":["../../arcmachine/arcMachine.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IAqDjD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;SACrF;aAAM;YACH,MAAM,IAAI,GA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C,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;;AA1BL,gCA8EC;AAhEG,gBAAgB;AACO,uBAAY,GAAG,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages an Arc 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 config = new pulumi.Config();
|
|
12
|
+
* // The name of the Arc Machine.
|
|
13
|
+
* const arcMachineName = config.requireObject("arcMachineName");
|
|
14
|
+
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
15
|
+
* name: "example-resources",
|
|
16
|
+
* location: "West Europe",
|
|
17
|
+
* });
|
|
18
|
+
* const example = exampleResourceGroup.name.apply(name => azure.arcmachine.getOutput({
|
|
19
|
+
* name: arcMachineName,
|
|
20
|
+
* resourceGroupName: name,
|
|
21
|
+
* }));
|
|
22
|
+
* const exampleConfiguration = new azure.automanage.Configuration("example", {
|
|
23
|
+
* name: "example-configuration",
|
|
24
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
25
|
+
* location: exampleResourceGroup.location,
|
|
26
|
+
* });
|
|
27
|
+
* const exampleAutomanageConfigurationAssignment = new azure.arcmachine.AutomanageConfigurationAssignment("example", {
|
|
28
|
+
* arcMachineId: example.apply(example => example.id),
|
|
29
|
+
* configurationId: exampleConfiguration.id,
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Import
|
|
34
|
+
*
|
|
35
|
+
* Virtual Machine Automanage Configuration Profile Assignment can be imported using the `resource id`, e.g.
|
|
36
|
+
*
|
|
37
|
+
* ```sh
|
|
38
|
+
* $ pulumi import azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.HybridCompute/Microsoft.HybridCompute/machines/machine1/providers/Microsoft.AutoManage/configurationProfileAssignments/default
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare class AutomanageConfigurationAssignment extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing AutomanageConfigurationAssignment resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AutomanageConfigurationAssignmentState, opts?: pulumi.CustomResourceOptions): AutomanageConfigurationAssignment;
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of AutomanageConfigurationAssignment. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj: any): obj is AutomanageConfigurationAssignment;
|
|
57
|
+
/**
|
|
58
|
+
* The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created.
|
|
59
|
+
*/
|
|
60
|
+
readonly arcMachineId: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created.
|
|
63
|
+
*
|
|
64
|
+
* > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server.
|
|
65
|
+
*/
|
|
66
|
+
readonly configurationId: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Create a AutomanageConfigurationAssignment resource with the given unique name, arguments, and options.
|
|
69
|
+
*
|
|
70
|
+
* @param name The _unique_ name of the resource.
|
|
71
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
72
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
73
|
+
*/
|
|
74
|
+
constructor(name: string, args: AutomanageConfigurationAssignmentArgs, opts?: pulumi.CustomResourceOptions);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Input properties used for looking up and filtering AutomanageConfigurationAssignment resources.
|
|
78
|
+
*/
|
|
79
|
+
export interface AutomanageConfigurationAssignmentState {
|
|
80
|
+
/**
|
|
81
|
+
* The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created.
|
|
82
|
+
*/
|
|
83
|
+
arcMachineId?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created.
|
|
86
|
+
*
|
|
87
|
+
* > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server.
|
|
88
|
+
*/
|
|
89
|
+
configurationId?: pulumi.Input<string>;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The set of arguments for constructing a AutomanageConfigurationAssignment resource.
|
|
93
|
+
*/
|
|
94
|
+
export interface AutomanageConfigurationAssignmentArgs {
|
|
95
|
+
/**
|
|
96
|
+
* The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created.
|
|
97
|
+
*/
|
|
98
|
+
arcMachineId: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created.
|
|
101
|
+
*
|
|
102
|
+
* > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server.
|
|
103
|
+
*/
|
|
104
|
+
configurationId: pulumi.Input<string>;
|
|
105
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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 an Arc 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 config = new pulumi.Config();
|
|
18
|
+
* // The name of the Arc Machine.
|
|
19
|
+
* const arcMachineName = config.requireObject("arcMachineName");
|
|
20
|
+
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
21
|
+
* name: "example-resources",
|
|
22
|
+
* location: "West Europe",
|
|
23
|
+
* });
|
|
24
|
+
* const example = exampleResourceGroup.name.apply(name => azure.arcmachine.getOutput({
|
|
25
|
+
* name: arcMachineName,
|
|
26
|
+
* resourceGroupName: name,
|
|
27
|
+
* }));
|
|
28
|
+
* const exampleConfiguration = new azure.automanage.Configuration("example", {
|
|
29
|
+
* name: "example-configuration",
|
|
30
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
31
|
+
* location: exampleResourceGroup.location,
|
|
32
|
+
* });
|
|
33
|
+
* const exampleAutomanageConfigurationAssignment = new azure.arcmachine.AutomanageConfigurationAssignment("example", {
|
|
34
|
+
* arcMachineId: example.apply(example => example.id),
|
|
35
|
+
* configurationId: exampleConfiguration.id,
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ## Import
|
|
40
|
+
*
|
|
41
|
+
* Virtual Machine Automanage Configuration Profile Assignment can be imported using the `resource id`, e.g.
|
|
42
|
+
*
|
|
43
|
+
* ```sh
|
|
44
|
+
* $ pulumi import azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.HybridCompute/Microsoft.HybridCompute/machines/machine1/providers/Microsoft.AutoManage/configurationProfileAssignments/default
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
class AutomanageConfigurationAssignment extends pulumi.CustomResource {
|
|
48
|
+
constructor(name, argsOrState, opts) {
|
|
49
|
+
let resourceInputs = {};
|
|
50
|
+
opts = opts || {};
|
|
51
|
+
if (opts.id) {
|
|
52
|
+
const state = argsOrState;
|
|
53
|
+
resourceInputs["arcMachineId"] = state ? state.arcMachineId : undefined;
|
|
54
|
+
resourceInputs["configurationId"] = state ? state.configurationId : undefined;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
const args = argsOrState;
|
|
58
|
+
if ((!args || args.arcMachineId === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'arcMachineId'");
|
|
60
|
+
}
|
|
61
|
+
if ((!args || args.configurationId === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'configurationId'");
|
|
63
|
+
}
|
|
64
|
+
resourceInputs["arcMachineId"] = args ? args.arcMachineId : undefined;
|
|
65
|
+
resourceInputs["configurationId"] = args ? args.configurationId : undefined;
|
|
66
|
+
}
|
|
67
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
68
|
+
super(AutomanageConfigurationAssignment.__pulumiType, name, resourceInputs, opts);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Get an existing AutomanageConfigurationAssignment resource's state with the given name, ID, and optional extra
|
|
72
|
+
* properties used to qualify the lookup.
|
|
73
|
+
*
|
|
74
|
+
* @param name The _unique_ name of the resulting resource.
|
|
75
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
76
|
+
* @param state Any extra arguments used during the lookup.
|
|
77
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
78
|
+
*/
|
|
79
|
+
static get(name, id, state, opts) {
|
|
80
|
+
return new AutomanageConfigurationAssignment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Returns true if the given object is an instance of AutomanageConfigurationAssignment. This is designed to work even
|
|
84
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
85
|
+
*/
|
|
86
|
+
static isInstance(obj) {
|
|
87
|
+
if (obj === undefined || obj === null) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
return obj['__pulumiType'] === AutomanageConfigurationAssignment.__pulumiType;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.AutomanageConfigurationAssignment = AutomanageConfigurationAssignment;
|
|
94
|
+
/** @internal */
|
|
95
|
+
AutomanageConfigurationAssignment.__pulumiType = 'azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment';
|
|
96
|
+
//# sourceMappingURL=automanageConfigurationAssignment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automanageConfigurationAssignment.js","sourceRoot":"","sources":["../../arcmachine/automanageConfigurationAssignment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,iCAAkC,SAAQ,MAAM,CAAC,cAAc;IA+CxE,YAAY,IAAY,EAAE,WAA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AC,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,8EAoEC;AAtDG,gBAAgB;AACO,8CAAY,GAAG,sFAAsF,CAAC"}
|
package/arcmachine/index.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export { ArcMachineArgs, ArcMachineState } from "./arcMachine";
|
|
2
|
+
export declare type ArcMachine = import("./arcMachine").ArcMachine;
|
|
3
|
+
export declare const ArcMachine: typeof import("./arcMachine").ArcMachine;
|
|
4
|
+
export { AutomanageConfigurationAssignmentArgs, AutomanageConfigurationAssignmentState } from "./automanageConfigurationAssignment";
|
|
5
|
+
export declare type AutomanageConfigurationAssignment = import("./automanageConfigurationAssignment").AutomanageConfigurationAssignment;
|
|
6
|
+
export declare const AutomanageConfigurationAssignment: typeof import("./automanageConfigurationAssignment").AutomanageConfigurationAssignment;
|
|
1
7
|
export { ExtensionArgs, ExtensionState } from "./extension";
|
|
2
8
|
export declare type Extension = import("./extension").Extension;
|
|
3
9
|
export declare const Extension: typeof import("./extension").Extension;
|
package/arcmachine/index.js
CHANGED
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.getOutput = exports.get = exports.Extension = void 0;
|
|
5
|
+
exports.getOutput = exports.get = exports.Extension = exports.AutomanageConfigurationAssignment = exports.ArcMachine = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
+
exports.ArcMachine = null;
|
|
9
|
+
utilities.lazyLoad(exports, ["ArcMachine"], () => require("./arcMachine"));
|
|
10
|
+
exports.AutomanageConfigurationAssignment = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["AutomanageConfigurationAssignment"], () => require("./automanageConfigurationAssignment"));
|
|
8
12
|
exports.Extension = null;
|
|
9
13
|
utilities.lazyLoad(exports, ["Extension"], () => require("./extension"));
|
|
10
14
|
exports.get = null;
|
|
@@ -14,6 +18,10 @@ const _module = {
|
|
|
14
18
|
version: utilities.getVersion(),
|
|
15
19
|
construct: (name, type, urn) => {
|
|
16
20
|
switch (type) {
|
|
21
|
+
case "azure:arcmachine/arcMachine:ArcMachine":
|
|
22
|
+
return new exports.ArcMachine(name, undefined, { urn });
|
|
23
|
+
case "azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment":
|
|
24
|
+
return new exports.AutomanageConfigurationAssignment(name, undefined, { urn });
|
|
17
25
|
case "azure:arcmachine/extension:Extension":
|
|
18
26
|
return new exports.Extension(name, undefined, { urn });
|
|
19
27
|
default:
|
|
@@ -21,5 +29,7 @@ const _module = {
|
|
|
21
29
|
}
|
|
22
30
|
},
|
|
23
31
|
};
|
|
32
|
+
pulumi.runtime.registerResourceModule("azure", "arcmachine/arcMachine", _module);
|
|
33
|
+
pulumi.runtime.registerResourceModule("azure", "arcmachine/automanageConfigurationAssignment", _module);
|
|
24
34
|
pulumi.runtime.registerResourceModule("azure", "arcmachine/extension", _module);
|
|
25
35
|
//# sourceMappingURL=index.js.map
|
package/arcmachine/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../arcmachine/index.ts"],"names":[],"mappings":";AAAA,wFAAw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CAAA;AACvG,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,OAAO,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -4,6 +4,37 @@ import * as outputs from "../types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* Manages a Cognitive Services Account Deployment.
|
|
6
6
|
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as azure from "@pulumi/azure";
|
|
12
|
+
*
|
|
13
|
+
* const example = new azure.core.ResourceGroup("example", {
|
|
14
|
+
* name: "example-resources",
|
|
15
|
+
* location: "West Europe",
|
|
16
|
+
* });
|
|
17
|
+
* const exampleAccount = new azure.cognitive.Account("example", {
|
|
18
|
+
* name: "example-ca",
|
|
19
|
+
* location: example.location,
|
|
20
|
+
* resourceGroupName: example.name,
|
|
21
|
+
* kind: "OpenAI",
|
|
22
|
+
* skuName: "S0",
|
|
23
|
+
* });
|
|
24
|
+
* const exampleDeployment = new azure.cognitive.Deployment("example", {
|
|
25
|
+
* name: "example-cd",
|
|
26
|
+
* cognitiveAccountId: exampleAccount.id,
|
|
27
|
+
* model: {
|
|
28
|
+
* format: "OpenAI",
|
|
29
|
+
* name: "text-curie-001",
|
|
30
|
+
* version: "1",
|
|
31
|
+
* },
|
|
32
|
+
* sku: {
|
|
33
|
+
* name: "Standard",
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
7
38
|
* ## Import
|
|
8
39
|
*
|
|
9
40
|
* Cognitive Services Account Deployment can be imported using the `resource id`, e.g.
|
|
@@ -44,6 +75,9 @@ export declare class Deployment extends pulumi.CustomResource {
|
|
|
44
75
|
* The name of RAI policy.
|
|
45
76
|
*/
|
|
46
77
|
readonly raiPolicyName: pulumi.Output<string | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* A `sku` block as defined below.
|
|
80
|
+
*/
|
|
47
81
|
readonly sku: pulumi.Output<outputs.cognitive.DeploymentSku>;
|
|
48
82
|
/**
|
|
49
83
|
* Deployment model version upgrade option. Possible values are `OnceNewDefaultVersionAvailable`, `OnceCurrentVersionExpired`, and `NoAutoUpgrade`. Defaults to `OnceNewDefaultVersionAvailable`.
|
|
@@ -78,6 +112,9 @@ export interface DeploymentState {
|
|
|
78
112
|
* The name of RAI policy.
|
|
79
113
|
*/
|
|
80
114
|
raiPolicyName?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* A `sku` block as defined below.
|
|
117
|
+
*/
|
|
81
118
|
sku?: pulumi.Input<inputs.cognitive.DeploymentSku>;
|
|
82
119
|
/**
|
|
83
120
|
* Deployment model version upgrade option. Possible values are `OnceNewDefaultVersionAvailable`, `OnceCurrentVersionExpired`, and `NoAutoUpgrade`. Defaults to `OnceNewDefaultVersionAvailable`.
|
|
@@ -104,6 +141,9 @@ export interface DeploymentArgs {
|
|
|
104
141
|
* The name of RAI policy.
|
|
105
142
|
*/
|
|
106
143
|
raiPolicyName?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* A `sku` block as defined below.
|
|
146
|
+
*/
|
|
107
147
|
sku: pulumi.Input<inputs.cognitive.DeploymentSku>;
|
|
108
148
|
/**
|
|
109
149
|
* Deployment model version upgrade option. Possible values are `OnceNewDefaultVersionAvailable`, `OnceCurrentVersionExpired`, and `NoAutoUpgrade`. Defaults to `OnceNewDefaultVersionAvailable`.
|
package/cognitive/deployment.js
CHANGED
|
@@ -8,6 +8,37 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Manages a Cognitive Services Account Deployment.
|
|
10
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-resources",
|
|
19
|
+
* location: "West Europe",
|
|
20
|
+
* });
|
|
21
|
+
* const exampleAccount = new azure.cognitive.Account("example", {
|
|
22
|
+
* name: "example-ca",
|
|
23
|
+
* location: example.location,
|
|
24
|
+
* resourceGroupName: example.name,
|
|
25
|
+
* kind: "OpenAI",
|
|
26
|
+
* skuName: "S0",
|
|
27
|
+
* });
|
|
28
|
+
* const exampleDeployment = new azure.cognitive.Deployment("example", {
|
|
29
|
+
* name: "example-cd",
|
|
30
|
+
* cognitiveAccountId: exampleAccount.id,
|
|
31
|
+
* model: {
|
|
32
|
+
* format: "OpenAI",
|
|
33
|
+
* name: "text-curie-001",
|
|
34
|
+
* version: "1",
|
|
35
|
+
* },
|
|
36
|
+
* sku: {
|
|
37
|
+
* name: "Standard",
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
11
42
|
* ## Import
|
|
12
43
|
*
|
|
13
44
|
* Cognitive Services Account Deployment can be imported using the `resource id`, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployment.js","sourceRoot":"","sources":["../../cognitive/deployment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"deployment.js","sourceRoot":"","sources":["../../cognitive/deployment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IA6DjD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YAC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