@pulumi/azure 5.63.0-alpha.1706544707 → 5.63.0
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/appservice/environmentV3.d.ts +60 -0
- package/appservice/environmentV3.js +60 -0
- package/appservice/environmentV3.js.map +1 -1
- package/arckubernetes/cluster.d.ts +27 -0
- package/arckubernetes/cluster.js +27 -0
- package/arckubernetes/cluster.js.map +1 -1
- package/cdn/endpoint.d.ts +4 -0
- package/cdn/endpoint.js +4 -0
- package/cdn/endpoint.js.map +1 -1
- package/cdn/frontdoorOrigin.d.ts +158 -0
- package/cdn/frontdoorOrigin.js +158 -0
- package/cdn/frontdoorOrigin.js.map +1 -1
- package/cdn/profile.d.ts +4 -0
- package/cdn/profile.js +4 -0
- package/cdn/profile.js.map +1 -1
- package/compute/image.d.ts +21 -0
- package/compute/image.js +21 -0
- package/compute/image.js.map +1 -1
- package/compute/windowsVirtualMachine.d.ts +15 -0
- package/compute/windowsVirtualMachine.js.map +1 -1
- package/databricks/workspaceCustomerManagedKey.d.ts +92 -0
- package/databricks/workspaceCustomerManagedKey.js +92 -0
- package/databricks/workspaceCustomerManagedKey.js.map +1 -1
- package/databricks/workspaceRootDbfsCustomerManagedKey.d.ts +90 -0
- package/databricks/workspaceRootDbfsCustomerManagedKey.js +90 -0
- package/databricks/workspaceRootDbfsCustomerManagedKey.js.map +1 -1
- package/frontdoor/customHttpsConfiguration.d.ts +79 -0
- package/frontdoor/customHttpsConfiguration.js +79 -0
- package/frontdoor/customHttpsConfiguration.js.map +1 -1
- package/frontdoor/firewallPolicy.d.ts +6 -0
- package/frontdoor/firewallPolicy.js +6 -0
- package/frontdoor/firewallPolicy.js.map +1 -1
- package/mssql/databaseExtendedAuditingPolicy.d.ts +18 -0
- package/mssql/databaseExtendedAuditingPolicy.js.map +1 -1
- package/mssql/managedInstanceFailoverGroup.d.ts +86 -0
- package/mssql/managedInstanceFailoverGroup.js +86 -0
- package/mssql/managedInstanceFailoverGroup.js.map +1 -1
- package/network/networkWatcherFlowLog.d.ts +4 -0
- package/network/networkWatcherFlowLog.js +4 -0
- package/network/networkWatcherFlowLog.js.map +1 -1
- package/package.json +1 -1
- package/privatelink/endpoint.d.ts +151 -0
- package/privatelink/endpoint.js +151 -0
- package/privatelink/endpoint.js.map +1 -1
- package/sql/managedInstanceFailoverGroup.d.ts +63 -0
- package/sql/managedInstanceFailoverGroup.js +63 -0
- package/sql/managedInstanceFailoverGroup.js.map +1 -1
- package/types/input.d.ts +38 -0
- package/types/output.d.ts +38 -0
|
@@ -2,6 +2,85 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "../types/input";
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
|
+
* !> **IMPORTANT** This deploys an Azure Front Door (classic) resource which has been deprecated and will receive security updates only. Please migrate your existing Azure Front Door (classic) deployments to the new Azure Front Door (standard/premium) resources. For your convenience, the service team has exposed a `Front Door Classic` to `Front Door Standard/Premium` [migration tool](https://learn.microsoft.com/azure/frontdoor/tier-migration) to allow you to migrate your existing `Front Door Classic` instances to the new `Front Door Standard/Premium` product tiers.
|
|
6
|
+
*
|
|
7
|
+
* Manages the Custom HTTPS Configuration for an Azure Front Door (classic) Frontend Endpoint.
|
|
8
|
+
*
|
|
9
|
+
* > **NOTE:** Defining custom HTTPS configurations using a separate `azure.frontdoor.CustomHttpsConfiguration` resource allows for parallel creation/update.
|
|
10
|
+
*
|
|
11
|
+
* !> **BREAKING CHANGE:** In order to address the ordering issue we have changed the design on how to retrieve existing sub resources such as frontend endpoints. Existing design will be deprecated and will result in an incorrect configuration. Please refer to the updated documentation below for more information.
|
|
12
|
+
*
|
|
13
|
+
* !> **BREAKING CHANGE:** The `resourceGroupName` field has been removed as of the `v2.58.0` provider release. If the `resourceGroupName` field has been defined in your current `azure.frontdoor.CustomHttpsConfiguration` resource configuration file please remove it else you will receive a `An argument named "resourceGroupName" is not expected here.` error. If your pre-existing Front Door instance contained inline `customHttpsConfiguration` blocks there are additional steps that will need to be completed to successfully migrate your Front Door onto the `v2.58.0` provider which can be found in this guide.
|
|
14
|
+
*
|
|
15
|
+
* !> **Be Aware:** Azure is rolling out a breaking change on Friday 9th April 2021 which may cause issues with the CDN/FrontDoor resources. More information is available in this GitHub issue as the necessary changes are identified.
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as azure from "@pulumi/azure";
|
|
20
|
+
*
|
|
21
|
+
* const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
|
|
22
|
+
* const vault = azure.keyvault.getKeyVault({
|
|
23
|
+
* name: "example-vault",
|
|
24
|
+
* resourceGroupName: "example-vault-rg",
|
|
25
|
+
* });
|
|
26
|
+
* const exampleFrontdoor = new azure.frontdoor.Frontdoor("exampleFrontdoor", {
|
|
27
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
28
|
+
* routingRules: [{
|
|
29
|
+
* name: "exampleRoutingRule1",
|
|
30
|
+
* acceptedProtocols: [
|
|
31
|
+
* "Http",
|
|
32
|
+
* "Https",
|
|
33
|
+
* ],
|
|
34
|
+
* patternsToMatches: ["/*"],
|
|
35
|
+
* frontendEndpoints: ["exampleFrontendEndpoint1"],
|
|
36
|
+
* forwardingConfiguration: {
|
|
37
|
+
* forwardingProtocol: "MatchRequest",
|
|
38
|
+
* backendPoolName: "exampleBackendBing",
|
|
39
|
+
* },
|
|
40
|
+
* }],
|
|
41
|
+
* backendPoolLoadBalancings: [{
|
|
42
|
+
* name: "exampleLoadBalancingSettings1",
|
|
43
|
+
* }],
|
|
44
|
+
* backendPoolHealthProbes: [{
|
|
45
|
+
* name: "exampleHealthProbeSetting1",
|
|
46
|
+
* }],
|
|
47
|
+
* backendPools: [{
|
|
48
|
+
* name: "exampleBackendBing",
|
|
49
|
+
* backends: [{
|
|
50
|
+
* hostHeader: "www.bing.com",
|
|
51
|
+
* address: "www.bing.com",
|
|
52
|
+
* httpPort: 80,
|
|
53
|
+
* httpsPort: 443,
|
|
54
|
+
* }],
|
|
55
|
+
* loadBalancingName: "exampleLoadBalancingSettings1",
|
|
56
|
+
* healthProbeName: "exampleHealthProbeSetting1",
|
|
57
|
+
* }],
|
|
58
|
+
* frontendEndpoints: [
|
|
59
|
+
* {
|
|
60
|
+
* name: "exampleFrontendEndpoint1",
|
|
61
|
+
* hostName: "example-FrontDoor.azurefd.net",
|
|
62
|
+
* },
|
|
63
|
+
* {
|
|
64
|
+
* name: "exampleFrontendEndpoint2",
|
|
65
|
+
* hostName: "examplefd1.examplefd.net",
|
|
66
|
+
* },
|
|
67
|
+
* ],
|
|
68
|
+
* });
|
|
69
|
+
* const exampleCustomHttps0 = new azure.frontdoor.CustomHttpsConfiguration("exampleCustomHttps0", {
|
|
70
|
+
* frontendEndpointId: exampleFrontdoor.frontendEndpointsMap.exampleFrontendEndpoint1,
|
|
71
|
+
* customHttpsProvisioningEnabled: false,
|
|
72
|
+
* });
|
|
73
|
+
* const exampleCustomHttps1 = new azure.frontdoor.CustomHttpsConfiguration("exampleCustomHttps1", {
|
|
74
|
+
* frontendEndpointId: exampleFrontdoor.frontendEndpointsMap.exampleFrontendEndpoint2,
|
|
75
|
+
* customHttpsProvisioningEnabled: true,
|
|
76
|
+
* customHttpsConfiguration: {
|
|
77
|
+
* certificateSource: "AzureKeyVault",
|
|
78
|
+
* azureKeyVaultCertificateSecretName: "examplefd1",
|
|
79
|
+
* azureKeyVaultCertificateVaultId: vault.then(vault => vault.id),
|
|
80
|
+
* },
|
|
81
|
+
* });
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
5
84
|
* ## Import
|
|
6
85
|
*
|
|
7
86
|
* Front Door Custom HTTPS Configurations can be imported using the `resource id` of the Front Door Custom HTTPS Configuration, e.g.
|
|
@@ -6,6 +6,85 @@ exports.CustomHttpsConfiguration = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
+
* !> **IMPORTANT** This deploys an Azure Front Door (classic) resource which has been deprecated and will receive security updates only. Please migrate your existing Azure Front Door (classic) deployments to the new Azure Front Door (standard/premium) resources. For your convenience, the service team has exposed a `Front Door Classic` to `Front Door Standard/Premium` [migration tool](https://learn.microsoft.com/azure/frontdoor/tier-migration) to allow you to migrate your existing `Front Door Classic` instances to the new `Front Door Standard/Premium` product tiers.
|
|
10
|
+
*
|
|
11
|
+
* Manages the Custom HTTPS Configuration for an Azure Front Door (classic) Frontend Endpoint.
|
|
12
|
+
*
|
|
13
|
+
* > **NOTE:** Defining custom HTTPS configurations using a separate `azure.frontdoor.CustomHttpsConfiguration` resource allows for parallel creation/update.
|
|
14
|
+
*
|
|
15
|
+
* !> **BREAKING CHANGE:** In order to address the ordering issue we have changed the design on how to retrieve existing sub resources such as frontend endpoints. Existing design will be deprecated and will result in an incorrect configuration. Please refer to the updated documentation below for more information.
|
|
16
|
+
*
|
|
17
|
+
* !> **BREAKING CHANGE:** The `resourceGroupName` field has been removed as of the `v2.58.0` provider release. If the `resourceGroupName` field has been defined in your current `azure.frontdoor.CustomHttpsConfiguration` resource configuration file please remove it else you will receive a `An argument named "resourceGroupName" is not expected here.` error. If your pre-existing Front Door instance contained inline `customHttpsConfiguration` blocks there are additional steps that will need to be completed to successfully migrate your Front Door onto the `v2.58.0` provider which can be found in this guide.
|
|
18
|
+
*
|
|
19
|
+
* !> **Be Aware:** Azure is rolling out a breaking change on Friday 9th April 2021 which may cause issues with the CDN/FrontDoor resources. More information is available in this GitHub issue as the necessary changes are identified.
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as azure from "@pulumi/azure";
|
|
24
|
+
*
|
|
25
|
+
* const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
|
|
26
|
+
* const vault = azure.keyvault.getKeyVault({
|
|
27
|
+
* name: "example-vault",
|
|
28
|
+
* resourceGroupName: "example-vault-rg",
|
|
29
|
+
* });
|
|
30
|
+
* const exampleFrontdoor = new azure.frontdoor.Frontdoor("exampleFrontdoor", {
|
|
31
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
32
|
+
* routingRules: [{
|
|
33
|
+
* name: "exampleRoutingRule1",
|
|
34
|
+
* acceptedProtocols: [
|
|
35
|
+
* "Http",
|
|
36
|
+
* "Https",
|
|
37
|
+
* ],
|
|
38
|
+
* patternsToMatches: ["/*"],
|
|
39
|
+
* frontendEndpoints: ["exampleFrontendEndpoint1"],
|
|
40
|
+
* forwardingConfiguration: {
|
|
41
|
+
* forwardingProtocol: "MatchRequest",
|
|
42
|
+
* backendPoolName: "exampleBackendBing",
|
|
43
|
+
* },
|
|
44
|
+
* }],
|
|
45
|
+
* backendPoolLoadBalancings: [{
|
|
46
|
+
* name: "exampleLoadBalancingSettings1",
|
|
47
|
+
* }],
|
|
48
|
+
* backendPoolHealthProbes: [{
|
|
49
|
+
* name: "exampleHealthProbeSetting1",
|
|
50
|
+
* }],
|
|
51
|
+
* backendPools: [{
|
|
52
|
+
* name: "exampleBackendBing",
|
|
53
|
+
* backends: [{
|
|
54
|
+
* hostHeader: "www.bing.com",
|
|
55
|
+
* address: "www.bing.com",
|
|
56
|
+
* httpPort: 80,
|
|
57
|
+
* httpsPort: 443,
|
|
58
|
+
* }],
|
|
59
|
+
* loadBalancingName: "exampleLoadBalancingSettings1",
|
|
60
|
+
* healthProbeName: "exampleHealthProbeSetting1",
|
|
61
|
+
* }],
|
|
62
|
+
* frontendEndpoints: [
|
|
63
|
+
* {
|
|
64
|
+
* name: "exampleFrontendEndpoint1",
|
|
65
|
+
* hostName: "example-FrontDoor.azurefd.net",
|
|
66
|
+
* },
|
|
67
|
+
* {
|
|
68
|
+
* name: "exampleFrontendEndpoint2",
|
|
69
|
+
* hostName: "examplefd1.examplefd.net",
|
|
70
|
+
* },
|
|
71
|
+
* ],
|
|
72
|
+
* });
|
|
73
|
+
* const exampleCustomHttps0 = new azure.frontdoor.CustomHttpsConfiguration("exampleCustomHttps0", {
|
|
74
|
+
* frontendEndpointId: exampleFrontdoor.frontendEndpointsMap.exampleFrontendEndpoint1,
|
|
75
|
+
* customHttpsProvisioningEnabled: false,
|
|
76
|
+
* });
|
|
77
|
+
* const exampleCustomHttps1 = new azure.frontdoor.CustomHttpsConfiguration("exampleCustomHttps1", {
|
|
78
|
+
* frontendEndpointId: exampleFrontdoor.frontendEndpointsMap.exampleFrontendEndpoint2,
|
|
79
|
+
* customHttpsProvisioningEnabled: true,
|
|
80
|
+
* customHttpsConfiguration: {
|
|
81
|
+
* certificateSource: "AzureKeyVault",
|
|
82
|
+
* azureKeyVaultCertificateSecretName: "examplefd1",
|
|
83
|
+
* azureKeyVaultCertificateVaultId: vault.then(vault => vault.id),
|
|
84
|
+
* },
|
|
85
|
+
* });
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
9
88
|
* ## Import
|
|
10
89
|
*
|
|
11
90
|
* Front Door Custom HTTPS Configurations can be imported using the `resource id` of the Front Door Custom HTTPS Configuration, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customHttpsConfiguration.js","sourceRoot":"","sources":["../../frontdoor/customHttpsConfiguration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"customHttpsConfiguration.js","sourceRoot":"","sources":["../../frontdoor/customHttpsConfiguration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AACH,MAAa,wBAAyB,SAAQ,MAAM,C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CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;SACrF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;IAtED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/E,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,wBAAwB,CAAC,YAAY,CAAC;IACzE,CAAC;;AA1BL,4DAwEC;AA1DG,gBAAgB;AACO,qCAAY,GAAG,mEAAmE,CAAC"}
|
|
@@ -2,6 +2,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "../types/input";
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
|
+
* !> **IMPORTANT** This deploys an Azure Front Door (classic) resource which has been deprecated and will receive security updates only. Please migrate your existing Azure Front Door (classic) deployments to the new Azure Front Door (standard/premium) resources. For your convenience, the service team has exposed a `Front Door Classic` to `Front Door Standard/Premium` [migration tool](https://learn.microsoft.com/azure/frontdoor/tier-migration) to allow you to migrate your existing `Front Door Classic` instances to the new `Front Door Standard/Premium` product tiers.
|
|
6
|
+
*
|
|
7
|
+
* Manages an Azure Front Door (classic) Web Application Firewall Policy instance.
|
|
8
|
+
*
|
|
9
|
+
* !> **Be Aware:** Azure is rolling out a breaking change on Friday 9th April 2021 which may cause issues with the CDN/FrontDoor resources. More information is available in this GitHub issue as the necessary changes are identified.
|
|
10
|
+
*
|
|
5
11
|
* ## Example Usage
|
|
6
12
|
*
|
|
7
13
|
* ```typescript
|
|
@@ -6,6 +6,12 @@ exports.FirewallPolicy = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
+
* !> **IMPORTANT** This deploys an Azure Front Door (classic) resource which has been deprecated and will receive security updates only. Please migrate your existing Azure Front Door (classic) deployments to the new Azure Front Door (standard/premium) resources. For your convenience, the service team has exposed a `Front Door Classic` to `Front Door Standard/Premium` [migration tool](https://learn.microsoft.com/azure/frontdoor/tier-migration) to allow you to migrate your existing `Front Door Classic` instances to the new `Front Door Standard/Premium` product tiers.
|
|
10
|
+
*
|
|
11
|
+
* Manages an Azure Front Door (classic) Web Application Firewall Policy instance.
|
|
12
|
+
*
|
|
13
|
+
* !> **Be Aware:** Azure is rolling out a breaking change on Friday 9th April 2021 which may cause issues with the CDN/FrontDoor resources. More information is available in this GitHub issue as the necessary changes are identified.
|
|
14
|
+
*
|
|
9
15
|
* ## Example Usage
|
|
10
16
|
*
|
|
11
17
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firewallPolicy.js","sourceRoot":"","sources":["../../frontdoor/firewallPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"firewallPolicy.js","sourceRoot":"","sources":["../../frontdoor/firewallPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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G,gBAAgB;AACO,2BAAY,GAAG,+CAA+C,CAAC"}
|
|
@@ -66,6 +66,12 @@ export declare class DatabaseExtendedAuditingPolicy extends pulumi.CustomResourc
|
|
|
66
66
|
* ->**NOTE:** If `enabled` is `true`, `storageEndpoint` or `logMonitoringEnabled` are required.
|
|
67
67
|
*/
|
|
68
68
|
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* Enable audit events to Azure Monitor? Defaults to `true`.
|
|
71
|
+
*
|
|
72
|
+
* > **NOTE:** To enable sending audit events to Log Analytics, please refer to the example which can be found in the `./examples/sql-azure/sql_auditing_log_analytics` directory within the GitHub Repository. To enable sending server audit events to Log Analytics, please enable the master database to send audit events to Log Analytics.
|
|
73
|
+
* To enable audit events to Eventhub, please refer to the example which can be found in the `./examples/sql-azure/sql_auditing_eventhub` directory within the GitHub Repository.
|
|
74
|
+
*/
|
|
69
75
|
readonly logMonitoringEnabled: pulumi.Output<boolean | undefined>;
|
|
70
76
|
/**
|
|
71
77
|
* The number of days to retain logs for in the storage account. Defaults to `0`.
|
|
@@ -106,6 +112,12 @@ export interface DatabaseExtendedAuditingPolicyState {
|
|
|
106
112
|
* ->**NOTE:** If `enabled` is `true`, `storageEndpoint` or `logMonitoringEnabled` are required.
|
|
107
113
|
*/
|
|
108
114
|
enabled?: pulumi.Input<boolean>;
|
|
115
|
+
/**
|
|
116
|
+
* Enable audit events to Azure Monitor? Defaults to `true`.
|
|
117
|
+
*
|
|
118
|
+
* > **NOTE:** To enable sending audit events to Log Analytics, please refer to the example which can be found in the `./examples/sql-azure/sql_auditing_log_analytics` directory within the GitHub Repository. To enable sending server audit events to Log Analytics, please enable the master database to send audit events to Log Analytics.
|
|
119
|
+
* To enable audit events to Eventhub, please refer to the example which can be found in the `./examples/sql-azure/sql_auditing_eventhub` directory within the GitHub Repository.
|
|
120
|
+
*/
|
|
109
121
|
logMonitoringEnabled?: pulumi.Input<boolean>;
|
|
110
122
|
/**
|
|
111
123
|
* The number of days to retain logs for in the storage account. Defaults to `0`.
|
|
@@ -138,6 +150,12 @@ export interface DatabaseExtendedAuditingPolicyArgs {
|
|
|
138
150
|
* ->**NOTE:** If `enabled` is `true`, `storageEndpoint` or `logMonitoringEnabled` are required.
|
|
139
151
|
*/
|
|
140
152
|
enabled?: pulumi.Input<boolean>;
|
|
153
|
+
/**
|
|
154
|
+
* Enable audit events to Azure Monitor? Defaults to `true`.
|
|
155
|
+
*
|
|
156
|
+
* > **NOTE:** To enable sending audit events to Log Analytics, please refer to the example which can be found in the `./examples/sql-azure/sql_auditing_log_analytics` directory within the GitHub Repository. To enable sending server audit events to Log Analytics, please enable the master database to send audit events to Log Analytics.
|
|
157
|
+
* To enable audit events to Eventhub, please refer to the example which can be found in the `./examples/sql-azure/sql_auditing_eventhub` directory within the GitHub Repository.
|
|
158
|
+
*/
|
|
141
159
|
logMonitoringEnabled?: pulumi.Input<boolean>;
|
|
142
160
|
/**
|
|
143
161
|
* The number of days to retain logs for in the storage account. Defaults to `0`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"databaseExtendedAuditingPolicy.js","sourceRoot":"","sources":["../../mssql/databaseExtendedAuditingPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"databaseExtendedAuditingPolicy.js","sourceRoot":"","sources":["../../mssql/databaseExtendedAuditingPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IAsErE,YAAY,IAAY,EAAE,WA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IAAmC;QACzI,OAAO,IAAI,8BAA8B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrF,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,8BAA8B,CAAC,YAAY,CAAC;IAC/E,CAAC;;AA1BL,wEAoGC;AAtFG,gBAAgB;AACO,2CAAY,GAAG,2EAA2E,CAAC"}
|
|
@@ -2,6 +2,92 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "../types/input";
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
|
+
* Manages an Azure SQL Managed Instance Failover Group.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* > **Note:** For a more complete example, see the `./examples/sql-azure/managed_instance_failover_group` directory within the GitHub Repository.
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as azure from "@pulumi/azure";
|
|
14
|
+
*
|
|
15
|
+
* const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
|
|
16
|
+
* const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
|
|
17
|
+
* location: exampleResourceGroup.location,
|
|
18
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
19
|
+
* addressSpaces: ["10.0.0.0/16"],
|
|
20
|
+
* });
|
|
21
|
+
* const exampleSubnet = new azure.network.Subnet("exampleSubnet", {
|
|
22
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
23
|
+
* virtualNetworkName: exampleVirtualNetwork.name,
|
|
24
|
+
* addressPrefixes: ["10.0.2.0/24"],
|
|
25
|
+
* });
|
|
26
|
+
* const exampleNetworkSecurityGroup = new azure.network.NetworkSecurityGroup("exampleNetworkSecurityGroup", {
|
|
27
|
+
* location: exampleResourceGroup.location,
|
|
28
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
29
|
+
* });
|
|
30
|
+
* const exampleSubnetNetworkSecurityGroupAssociation = new azure.network.SubnetNetworkSecurityGroupAssociation("exampleSubnetNetworkSecurityGroupAssociation", {
|
|
31
|
+
* subnetId: exampleSubnet.id,
|
|
32
|
+
* networkSecurityGroupId: exampleNetworkSecurityGroup.id,
|
|
33
|
+
* });
|
|
34
|
+
* const exampleRouteTable = new azure.network.RouteTable("exampleRouteTable", {
|
|
35
|
+
* location: exampleResourceGroup.location,
|
|
36
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
37
|
+
* });
|
|
38
|
+
* const exampleSubnetRouteTableAssociation = new azure.network.SubnetRouteTableAssociation("exampleSubnetRouteTableAssociation", {
|
|
39
|
+
* subnetId: exampleSubnet.id,
|
|
40
|
+
* routeTableId: exampleRouteTable.id,
|
|
41
|
+
* });
|
|
42
|
+
* const primary = new azure.mssql.ManagedInstance("primary", {
|
|
43
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
44
|
+
* location: exampleResourceGroup.location,
|
|
45
|
+
* administratorLogin: "mradministrator",
|
|
46
|
+
* administratorLoginPassword: "thisIsDog11",
|
|
47
|
+
* licenseType: "BasePrice",
|
|
48
|
+
* subnetId: exampleSubnet.id,
|
|
49
|
+
* skuName: "GP_Gen5",
|
|
50
|
+
* vcores: 4,
|
|
51
|
+
* storageSizeInGb: 32,
|
|
52
|
+
* tags: {
|
|
53
|
+
* environment: "prod",
|
|
54
|
+
* },
|
|
55
|
+
* }, {
|
|
56
|
+
* dependsOn: [
|
|
57
|
+
* exampleSubnetNetworkSecurityGroupAssociation,
|
|
58
|
+
* exampleSubnetRouteTableAssociation,
|
|
59
|
+
* ],
|
|
60
|
+
* });
|
|
61
|
+
* const secondary = new azure.mssql.ManagedInstance("secondary", {
|
|
62
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
63
|
+
* location: exampleResourceGroup.location,
|
|
64
|
+
* administratorLogin: "mradministrator",
|
|
65
|
+
* administratorLoginPassword: "thisIsDog11",
|
|
66
|
+
* licenseType: "BasePrice",
|
|
67
|
+
* subnetId: exampleSubnet.id,
|
|
68
|
+
* skuName: "GP_Gen5",
|
|
69
|
+
* vcores: 4,
|
|
70
|
+
* storageSizeInGb: 32,
|
|
71
|
+
* tags: {
|
|
72
|
+
* environment: "prod",
|
|
73
|
+
* },
|
|
74
|
+
* }, {
|
|
75
|
+
* dependsOn: [
|
|
76
|
+
* exampleSubnetNetworkSecurityGroupAssociation,
|
|
77
|
+
* exampleSubnetRouteTableAssociation,
|
|
78
|
+
* ],
|
|
79
|
+
* });
|
|
80
|
+
* const exampleManagedInstanceFailoverGroup = new azure.mssql.ManagedInstanceFailoverGroup("exampleManagedInstanceFailoverGroup", {
|
|
81
|
+
* location: primary.location,
|
|
82
|
+
* managedInstanceId: primary.id,
|
|
83
|
+
* partnerManagedInstanceId: secondary.id,
|
|
84
|
+
* readWriteEndpointFailoverPolicy: {
|
|
85
|
+
* mode: "Automatic",
|
|
86
|
+
* graceMinutes: 60,
|
|
87
|
+
* },
|
|
88
|
+
* });
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
5
91
|
* ## Import
|
|
6
92
|
*
|
|
7
93
|
* SQL Instance Failover Groups can be imported using the `resource id`, e.g.
|
|
@@ -6,6 +6,92 @@ exports.ManagedInstanceFailoverGroup = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
+
* Manages an Azure SQL Managed Instance Failover Group.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* > **Note:** For a more complete example, see the `./examples/sql-azure/managed_instance_failover_group` directory within the GitHub Repository.
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as azure from "@pulumi/azure";
|
|
18
|
+
*
|
|
19
|
+
* const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
|
|
20
|
+
* const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
|
|
21
|
+
* location: exampleResourceGroup.location,
|
|
22
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
23
|
+
* addressSpaces: ["10.0.0.0/16"],
|
|
24
|
+
* });
|
|
25
|
+
* const exampleSubnet = new azure.network.Subnet("exampleSubnet", {
|
|
26
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
27
|
+
* virtualNetworkName: exampleVirtualNetwork.name,
|
|
28
|
+
* addressPrefixes: ["10.0.2.0/24"],
|
|
29
|
+
* });
|
|
30
|
+
* const exampleNetworkSecurityGroup = new azure.network.NetworkSecurityGroup("exampleNetworkSecurityGroup", {
|
|
31
|
+
* location: exampleResourceGroup.location,
|
|
32
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
33
|
+
* });
|
|
34
|
+
* const exampleSubnetNetworkSecurityGroupAssociation = new azure.network.SubnetNetworkSecurityGroupAssociation("exampleSubnetNetworkSecurityGroupAssociation", {
|
|
35
|
+
* subnetId: exampleSubnet.id,
|
|
36
|
+
* networkSecurityGroupId: exampleNetworkSecurityGroup.id,
|
|
37
|
+
* });
|
|
38
|
+
* const exampleRouteTable = new azure.network.RouteTable("exampleRouteTable", {
|
|
39
|
+
* location: exampleResourceGroup.location,
|
|
40
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
41
|
+
* });
|
|
42
|
+
* const exampleSubnetRouteTableAssociation = new azure.network.SubnetRouteTableAssociation("exampleSubnetRouteTableAssociation", {
|
|
43
|
+
* subnetId: exampleSubnet.id,
|
|
44
|
+
* routeTableId: exampleRouteTable.id,
|
|
45
|
+
* });
|
|
46
|
+
* const primary = new azure.mssql.ManagedInstance("primary", {
|
|
47
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
48
|
+
* location: exampleResourceGroup.location,
|
|
49
|
+
* administratorLogin: "mradministrator",
|
|
50
|
+
* administratorLoginPassword: "thisIsDog11",
|
|
51
|
+
* licenseType: "BasePrice",
|
|
52
|
+
* subnetId: exampleSubnet.id,
|
|
53
|
+
* skuName: "GP_Gen5",
|
|
54
|
+
* vcores: 4,
|
|
55
|
+
* storageSizeInGb: 32,
|
|
56
|
+
* tags: {
|
|
57
|
+
* environment: "prod",
|
|
58
|
+
* },
|
|
59
|
+
* }, {
|
|
60
|
+
* dependsOn: [
|
|
61
|
+
* exampleSubnetNetworkSecurityGroupAssociation,
|
|
62
|
+
* exampleSubnetRouteTableAssociation,
|
|
63
|
+
* ],
|
|
64
|
+
* });
|
|
65
|
+
* const secondary = new azure.mssql.ManagedInstance("secondary", {
|
|
66
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
67
|
+
* location: exampleResourceGroup.location,
|
|
68
|
+
* administratorLogin: "mradministrator",
|
|
69
|
+
* administratorLoginPassword: "thisIsDog11",
|
|
70
|
+
* licenseType: "BasePrice",
|
|
71
|
+
* subnetId: exampleSubnet.id,
|
|
72
|
+
* skuName: "GP_Gen5",
|
|
73
|
+
* vcores: 4,
|
|
74
|
+
* storageSizeInGb: 32,
|
|
75
|
+
* tags: {
|
|
76
|
+
* environment: "prod",
|
|
77
|
+
* },
|
|
78
|
+
* }, {
|
|
79
|
+
* dependsOn: [
|
|
80
|
+
* exampleSubnetNetworkSecurityGroupAssociation,
|
|
81
|
+
* exampleSubnetRouteTableAssociation,
|
|
82
|
+
* ],
|
|
83
|
+
* });
|
|
84
|
+
* const exampleManagedInstanceFailoverGroup = new azure.mssql.ManagedInstanceFailoverGroup("exampleManagedInstanceFailoverGroup", {
|
|
85
|
+
* location: primary.location,
|
|
86
|
+
* managedInstanceId: primary.id,
|
|
87
|
+
* partnerManagedInstanceId: secondary.id,
|
|
88
|
+
* readWriteEndpointFailoverPolicy: {
|
|
89
|
+
* mode: "Automatic",
|
|
90
|
+
* graceMinutes: 60,
|
|
91
|
+
* },
|
|
92
|
+
* });
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
9
95
|
* ## Import
|
|
10
96
|
*
|
|
11
97
|
* SQL Instance Failover Groups can be imported using the `resource id`, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managedInstanceFailoverGroup.js","sourceRoot":"","sources":["../../mssql/managedInstanceFailoverGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"managedInstanceFailoverGroup.js","sourceRoot":"","sources":["../../mssql/managedInstanceFailoverGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8FG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IAqEnE,YAAY,IAAY,EAAE,WAAkF,EAAE,IAAmC;QAC7I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4D,CAAC;YAC3E,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,MAAM,CAAC,G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,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,4BAA4B,CAAC,YAAY,CAAC;IAC7E,CAAC;;AA1BL,oEAyGC;AA3FG,gBAAgB;AACO,yCAAY,GAAG,uEAAuE,CAAC"}
|
|
@@ -2,6 +2,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "../types/input";
|
|
3
3
|
import * as outputs from "../types/output";
|
|
4
4
|
/**
|
|
5
|
+
* Manages a Network Watcher Flow Log.
|
|
6
|
+
*
|
|
7
|
+
* > **Note** The `azure.network.NetworkWatcherFlowLog` creates a new storage lifecyle management rule that overwrites existing rules. Please make sure to use a `storageAccount` with no existing management rules, until the issue is fixed.
|
|
8
|
+
*
|
|
5
9
|
* ## Example Usage
|
|
6
10
|
*
|
|
7
11
|
* ```typescript
|
|
@@ -6,6 +6,10 @@ exports.NetworkWatcherFlowLog = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
+
* Manages a Network Watcher Flow Log.
|
|
10
|
+
*
|
|
11
|
+
* > **Note** The `azure.network.NetworkWatcherFlowLog` creates a new storage lifecyle management rule that overwrites existing rules. Please make sure to use a `storageAccount` with no existing management rules, until the issue is fixed.
|
|
12
|
+
*
|
|
9
13
|
* ## Example Usage
|
|
10
14
|
*
|
|
11
15
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"networkWatcherFlowLog.js","sourceRoot":"","sources":["../../network/networkWatcherFlowLog.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"networkWatcherFlowLog.js","sourceRoot":"","sources":["../../network/networkWatcherFlowLog.ts"],"names":[],"mappings":";AAAA,w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GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;IAlID;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5E,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,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;;AA1BL,sDAoIC;AAtHG,gBAAgB;AACO,kCAAY,GAAG,2DAA2D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/azure",
|
|
3
|
-
"version": "v5.63.0
|
|
3
|
+
"version": "v5.63.0",
|
|
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",
|