@pulumi/azure 6.31.0-alpha.1765395796 → 6.31.0-alpha.1765925428
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/appplatform/springCloudCertificate.d.ts +0 -99
- package/appplatform/springCloudCertificate.js +0 -99
- package/appplatform/springCloudCertificate.js.map +1 -1
- package/appservice/activeSlot.d.ts +1 -1
- package/appservice/activeSlot.js +1 -1
- package/appservice/customHostnameBinding.d.ts +2 -2
- package/appservice/customHostnameBinding.js +2 -2
- package/appservice/slot.d.ts +4 -4
- package/appservice/slot.js +4 -4
- package/cdn/frontdoorSecret.d.ts +0 -72
- package/cdn/frontdoorSecret.js +0 -72
- package/cdn/frontdoorSecret.js.map +1 -1
- package/cosmosdb/account.d.ts +2 -2
- package/cosmosdb/account.js +2 -2
- package/cosmosdb/cassandraCluster.d.ts +0 -49
- package/cosmosdb/cassandraCluster.js +0 -49
- package/cosmosdb/cassandraCluster.js.map +1 -1
- package/cosmosdb/cassandraDatacenter.d.ts +0 -59
- package/cosmosdb/cassandraDatacenter.js +0 -59
- package/cosmosdb/cassandraDatacenter.js.map +1 -1
- package/datashare/datasetBlobStorage.d.ts +0 -66
- package/datashare/datasetBlobStorage.js +0 -66
- package/datashare/datasetBlobStorage.js.map +1 -1
- package/datashare/datasetDataLakeGen2.d.ts +0 -62
- package/datashare/datasetDataLakeGen2.js +0 -62
- package/datashare/datasetDataLakeGen2.js.map +1 -1
- package/desktopvirtualization/scalingPlan.d.ts +0 -103
- package/desktopvirtualization/scalingPlan.js +0 -103
- package/desktopvirtualization/scalingPlan.js.map +1 -1
- package/desktopvirtualization/scalingPlanHostPoolAssociation.d.ts +0 -79
- package/desktopvirtualization/scalingPlanHostPoolAssociation.js +0 -79
- package/desktopvirtualization/scalingPlanHostPoolAssociation.js.map +1 -1
- package/hpc/cacheBlobNfsTarget.d.ts +0 -149
- package/hpc/cacheBlobNfsTarget.js +0 -149
- package/hpc/cacheBlobNfsTarget.js.map +1 -1
- package/hpc/cacheBlobTarget.d.ts +0 -71
- package/hpc/cacheBlobTarget.js +0 -71
- package/hpc/cacheBlobTarget.js.map +1 -1
- package/keyvault/accessPolicy.d.ts +0 -42
- package/keyvault/accessPolicy.js +0 -42
- package/keyvault/accessPolicy.js.map +1 -1
- package/keyvault/managedStorageAccount.d.ts +0 -2
- package/keyvault/managedStorageAccount.js +0 -2
- package/keyvault/managedStorageAccount.js.map +1 -1
- package/machinelearning/workspace.d.ts +0 -167
- package/machinelearning/workspace.js +0 -167
- package/machinelearning/workspace.js.map +1 -1
- package/management/privateLinkAssociation.d.ts +2 -2
- package/management/privateLinkAssociation.js +2 -2
- package/netapp/volumeGroupSapHana.d.ts +1 -1
- package/netapp/volumeGroupSapHana.js +1 -1
- package/network/trafficManagerProfile.d.ts +2 -2
- package/network/trafficManagerProfile.js +2 -2
- package/operationalinsights/analyticsSolution.d.ts +3 -3
- package/operationalinsights/analyticsSolution.js +3 -3
- package/oracle/getCloudVmCluster.d.ts +1 -1
- package/package.json +2 -2
- package/pim/roleManagementPolicy.d.ts +0 -56
- package/pim/roleManagementPolicy.js +0 -56
- package/pim/roleManagementPolicy.js.map +1 -1
- package/postgresql/flexibleServerActiveDirectoryAdministrator.d.ts +0 -47
- package/postgresql/flexibleServerActiveDirectoryAdministrator.js +0 -47
- package/postgresql/flexibleServerActiveDirectoryAdministrator.js.map +1 -1
- package/redhatopenshift/cluster.d.ts +0 -103
- package/redhatopenshift/cluster.js +0 -103
- package/redhatopenshift/cluster.js.map +1 -1
- package/redis/firewallRule.d.ts +3 -3
- package/redis/firewallRule.js +3 -3
- package/stack/hciCluster.d.ts +0 -36
- package/stack/hciCluster.js +0 -36
- package/stack/hciCluster.js.map +1 -1
- package/stack/hciMarketplaceGalleryImage.d.ts +0 -48
- package/stack/hciMarketplaceGalleryImage.js +0 -48
- package/stack/hciMarketplaceGalleryImage.js.map +1 -1
- package/trafficmanager/profile.d.ts +2 -2
- package/trafficmanager/profile.js +2 -2
- package/types/output.d.ts +3 -3
|
@@ -4,65 +4,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* > **Note:** In order for the `Azure Managed Instances for Apache Cassandra` to work properly the product requires the `Azure Cosmos DB` Application ID to be present and working in your tenant. If the `Azure Cosmos DB` Application ID is missing in your environment you will need to have an administrator of your tenant run the following command to add the `Azure Cosmos DB` Application ID to your tenant:
|
|
6
6
|
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as azure from "@pulumi/azure";
|
|
12
|
-
* import * as azuread from "@pulumi/azuread";
|
|
13
|
-
*
|
|
14
|
-
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
15
|
-
* name: "accexample-rg",
|
|
16
|
-
* location: "West Europe",
|
|
17
|
-
* });
|
|
18
|
-
* const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
|
|
19
|
-
* name: "example-vnet",
|
|
20
|
-
* location: exampleResourceGroup.location,
|
|
21
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
22
|
-
* addressSpaces: ["10.0.0.0/16"],
|
|
23
|
-
* });
|
|
24
|
-
* const exampleSubnet = new azure.network.Subnet("example", {
|
|
25
|
-
* name: "example-subnet",
|
|
26
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
27
|
-
* virtualNetworkName: exampleVirtualNetwork.name,
|
|
28
|
-
* addressPrefixes: ["10.0.1.0/24"],
|
|
29
|
-
* });
|
|
30
|
-
* const example = azuread.getServicePrincipal({
|
|
31
|
-
* displayName: "Azure Cosmos DB",
|
|
32
|
-
* });
|
|
33
|
-
* const exampleAssignment = new azure.authorization.Assignment("example", {
|
|
34
|
-
* scope: exampleVirtualNetwork.id,
|
|
35
|
-
* roleDefinitionName: "Network Contributor",
|
|
36
|
-
* principalId: example.then(example => example.objectId),
|
|
37
|
-
* });
|
|
38
|
-
* const exampleCassandraCluster = new azure.cosmosdb.CassandraCluster("example", {
|
|
39
|
-
* name: "example-cluster",
|
|
40
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
41
|
-
* location: exampleResourceGroup.location,
|
|
42
|
-
* delegatedManagementSubnetId: exampleSubnet.id,
|
|
43
|
-
* defaultAdminPassword: "Password1234",
|
|
44
|
-
* }, {
|
|
45
|
-
* dependsOn: [exampleAssignment],
|
|
46
|
-
* });
|
|
47
|
-
* const exampleCassandraDatacenter = new azure.cosmosdb.CassandraDatacenter("example", {
|
|
48
|
-
* name: "example-datacenter",
|
|
49
|
-
* location: exampleCassandraCluster.location,
|
|
50
|
-
* cassandraClusterId: exampleCassandraCluster.id,
|
|
51
|
-
* delegatedManagementSubnetId: exampleSubnet.id,
|
|
52
|
-
* nodeCount: 3,
|
|
53
|
-
* diskCount: 4,
|
|
54
|
-
* skuName: "Standard_DS14_v2",
|
|
55
|
-
* availabilityZonesEnabled: false,
|
|
56
|
-
* });
|
|
57
|
-
* ```
|
|
58
|
-
*
|
|
59
|
-
* ## API Providers
|
|
60
|
-
*
|
|
61
|
-
* <!-- This section is generated, changes will be overwritten -->
|
|
62
|
-
* This resource uses the following Azure API Providers:
|
|
63
|
-
*
|
|
64
|
-
* * `Microsoft.DocumentDB` - 2023-04-15
|
|
65
|
-
*
|
|
66
7
|
* ## Import
|
|
67
8
|
*
|
|
68
9
|
* Cassandra Datacenters can be imported using the `resource id`, e.g.
|
|
@@ -10,65 +10,6 @@ const utilities = require("../utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* > **Note:** In order for the `Azure Managed Instances for Apache Cassandra` to work properly the product requires the `Azure Cosmos DB` Application ID to be present and working in your tenant. If the `Azure Cosmos DB` Application ID is missing in your environment you will need to have an administrator of your tenant run the following command to add the `Azure Cosmos DB` Application ID to your tenant:
|
|
12
12
|
*
|
|
13
|
-
* ## Example Usage
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as azure from "@pulumi/azure";
|
|
18
|
-
* import * as azuread from "@pulumi/azuread";
|
|
19
|
-
*
|
|
20
|
-
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
21
|
-
* name: "accexample-rg",
|
|
22
|
-
* location: "West Europe",
|
|
23
|
-
* });
|
|
24
|
-
* const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
|
|
25
|
-
* name: "example-vnet",
|
|
26
|
-
* location: exampleResourceGroup.location,
|
|
27
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
28
|
-
* addressSpaces: ["10.0.0.0/16"],
|
|
29
|
-
* });
|
|
30
|
-
* const exampleSubnet = new azure.network.Subnet("example", {
|
|
31
|
-
* name: "example-subnet",
|
|
32
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
33
|
-
* virtualNetworkName: exampleVirtualNetwork.name,
|
|
34
|
-
* addressPrefixes: ["10.0.1.0/24"],
|
|
35
|
-
* });
|
|
36
|
-
* const example = azuread.getServicePrincipal({
|
|
37
|
-
* displayName: "Azure Cosmos DB",
|
|
38
|
-
* });
|
|
39
|
-
* const exampleAssignment = new azure.authorization.Assignment("example", {
|
|
40
|
-
* scope: exampleVirtualNetwork.id,
|
|
41
|
-
* roleDefinitionName: "Network Contributor",
|
|
42
|
-
* principalId: example.then(example => example.objectId),
|
|
43
|
-
* });
|
|
44
|
-
* const exampleCassandraCluster = new azure.cosmosdb.CassandraCluster("example", {
|
|
45
|
-
* name: "example-cluster",
|
|
46
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
47
|
-
* location: exampleResourceGroup.location,
|
|
48
|
-
* delegatedManagementSubnetId: exampleSubnet.id,
|
|
49
|
-
* defaultAdminPassword: "Password1234",
|
|
50
|
-
* }, {
|
|
51
|
-
* dependsOn: [exampleAssignment],
|
|
52
|
-
* });
|
|
53
|
-
* const exampleCassandraDatacenter = new azure.cosmosdb.CassandraDatacenter("example", {
|
|
54
|
-
* name: "example-datacenter",
|
|
55
|
-
* location: exampleCassandraCluster.location,
|
|
56
|
-
* cassandraClusterId: exampleCassandraCluster.id,
|
|
57
|
-
* delegatedManagementSubnetId: exampleSubnet.id,
|
|
58
|
-
* nodeCount: 3,
|
|
59
|
-
* diskCount: 4,
|
|
60
|
-
* skuName: "Standard_DS14_v2",
|
|
61
|
-
* availabilityZonesEnabled: false,
|
|
62
|
-
* });
|
|
63
|
-
* ```
|
|
64
|
-
*
|
|
65
|
-
* ## API Providers
|
|
66
|
-
*
|
|
67
|
-
* <!-- This section is generated, changes will be overwritten -->
|
|
68
|
-
* This resource uses the following Azure API Providers:
|
|
69
|
-
*
|
|
70
|
-
* * `Microsoft.DocumentDB` - 2023-04-15
|
|
71
|
-
*
|
|
72
13
|
* ## Import
|
|
73
14
|
*
|
|
74
15
|
* Cassandra Datacenters can be imported using the `resource id`, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cassandraDatacenter.js","sourceRoot":"","sources":["../../cosmosdb/cassandraDatacenter.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"cassandraDatacenter.js","sourceRoot":"","sources":["../../cosmosdb/cassandraDatacenter.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAA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CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AArIL,kDAsIC;AAxHG,gBAAgB;AACO,gCAAY,GAAG,wDAAwD,CAAC"}
|
|
@@ -4,72 +4,6 @@ import * as outputs from "../types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* Manages a Data Share Blob Storage Dataset.
|
|
6
6
|
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as azure from "@pulumi/azure";
|
|
12
|
-
* import * as azuread from "@pulumi/azuread";
|
|
13
|
-
*
|
|
14
|
-
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
15
|
-
* name: "example-resources",
|
|
16
|
-
* location: "West Europe",
|
|
17
|
-
* });
|
|
18
|
-
* const exampleAccount = new azure.datashare.Account("example", {
|
|
19
|
-
* name: "example-dsa",
|
|
20
|
-
* location: exampleResourceGroup.location,
|
|
21
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
22
|
-
* identity: {
|
|
23
|
-
* type: "SystemAssigned",
|
|
24
|
-
* },
|
|
25
|
-
* });
|
|
26
|
-
* const exampleShare = new azure.datashare.Share("example", {
|
|
27
|
-
* name: "example_ds",
|
|
28
|
-
* accountId: exampleAccount.id,
|
|
29
|
-
* kind: "CopyBased",
|
|
30
|
-
* });
|
|
31
|
-
* const exampleAccount2 = new azure.storage.Account("example", {
|
|
32
|
-
* name: "examplestr",
|
|
33
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
34
|
-
* location: exampleResourceGroup.location,
|
|
35
|
-
* accountTier: "Standard",
|
|
36
|
-
* accountReplicationType: "RAGRS",
|
|
37
|
-
* });
|
|
38
|
-
* const exampleContainer = new azure.storage.Container("example", {
|
|
39
|
-
* name: "example-sc",
|
|
40
|
-
* storageAccountName: exampleAccount2.name,
|
|
41
|
-
* containerAccessType: "container",
|
|
42
|
-
* });
|
|
43
|
-
* const example = azuread.getServicePrincipalOutput({
|
|
44
|
-
* displayName: exampleAccount.name,
|
|
45
|
-
* });
|
|
46
|
-
* const exampleAssignment = new azure.authorization.Assignment("example", {
|
|
47
|
-
* scope: exampleAccount2.id,
|
|
48
|
-
* roleDefinitionName: "Storage Blob Data Reader",
|
|
49
|
-
* principalId: example.apply(example => example.objectId),
|
|
50
|
-
* });
|
|
51
|
-
* const exampleDatasetBlobStorage = new azure.datashare.DatasetBlobStorage("example", {
|
|
52
|
-
* name: "example-dsbsds-file",
|
|
53
|
-
* dataShareId: exampleShare.id,
|
|
54
|
-
* containerName: exampleContainer.name,
|
|
55
|
-
* storageAccount: {
|
|
56
|
-
* name: exampleAccount2.name,
|
|
57
|
-
* resourceGroupName: exampleAccount2.resourceGroupName,
|
|
58
|
-
* subscriptionId: "00000000-0000-0000-0000-000000000000",
|
|
59
|
-
* },
|
|
60
|
-
* filePath: "myfile.txt",
|
|
61
|
-
* }, {
|
|
62
|
-
* dependsOn: [exampleAssignment],
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* ## API Providers
|
|
67
|
-
*
|
|
68
|
-
* <!-- This section is generated, changes will be overwritten -->
|
|
69
|
-
* This resource uses the following Azure API Providers:
|
|
70
|
-
*
|
|
71
|
-
* * `Microsoft.DataShare` - 2019-11-01
|
|
72
|
-
*
|
|
73
7
|
* ## Import
|
|
74
8
|
*
|
|
75
9
|
* Data Share Blob Storage Datasets can be imported using the `resource id`, e.g.
|
|
@@ -8,72 +8,6 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Manages a Data Share Blob Storage Dataset.
|
|
10
10
|
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as azure from "@pulumi/azure";
|
|
16
|
-
* import * as azuread from "@pulumi/azuread";
|
|
17
|
-
*
|
|
18
|
-
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
19
|
-
* name: "example-resources",
|
|
20
|
-
* location: "West Europe",
|
|
21
|
-
* });
|
|
22
|
-
* const exampleAccount = new azure.datashare.Account("example", {
|
|
23
|
-
* name: "example-dsa",
|
|
24
|
-
* location: exampleResourceGroup.location,
|
|
25
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
26
|
-
* identity: {
|
|
27
|
-
* type: "SystemAssigned",
|
|
28
|
-
* },
|
|
29
|
-
* });
|
|
30
|
-
* const exampleShare = new azure.datashare.Share("example", {
|
|
31
|
-
* name: "example_ds",
|
|
32
|
-
* accountId: exampleAccount.id,
|
|
33
|
-
* kind: "CopyBased",
|
|
34
|
-
* });
|
|
35
|
-
* const exampleAccount2 = new azure.storage.Account("example", {
|
|
36
|
-
* name: "examplestr",
|
|
37
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
38
|
-
* location: exampleResourceGroup.location,
|
|
39
|
-
* accountTier: "Standard",
|
|
40
|
-
* accountReplicationType: "RAGRS",
|
|
41
|
-
* });
|
|
42
|
-
* const exampleContainer = new azure.storage.Container("example", {
|
|
43
|
-
* name: "example-sc",
|
|
44
|
-
* storageAccountName: exampleAccount2.name,
|
|
45
|
-
* containerAccessType: "container",
|
|
46
|
-
* });
|
|
47
|
-
* const example = azuread.getServicePrincipalOutput({
|
|
48
|
-
* displayName: exampleAccount.name,
|
|
49
|
-
* });
|
|
50
|
-
* const exampleAssignment = new azure.authorization.Assignment("example", {
|
|
51
|
-
* scope: exampleAccount2.id,
|
|
52
|
-
* roleDefinitionName: "Storage Blob Data Reader",
|
|
53
|
-
* principalId: example.apply(example => example.objectId),
|
|
54
|
-
* });
|
|
55
|
-
* const exampleDatasetBlobStorage = new azure.datashare.DatasetBlobStorage("example", {
|
|
56
|
-
* name: "example-dsbsds-file",
|
|
57
|
-
* dataShareId: exampleShare.id,
|
|
58
|
-
* containerName: exampleContainer.name,
|
|
59
|
-
* storageAccount: {
|
|
60
|
-
* name: exampleAccount2.name,
|
|
61
|
-
* resourceGroupName: exampleAccount2.resourceGroupName,
|
|
62
|
-
* subscriptionId: "00000000-0000-0000-0000-000000000000",
|
|
63
|
-
* },
|
|
64
|
-
* filePath: "myfile.txt",
|
|
65
|
-
* }, {
|
|
66
|
-
* dependsOn: [exampleAssignment],
|
|
67
|
-
* });
|
|
68
|
-
* ```
|
|
69
|
-
*
|
|
70
|
-
* ## API Providers
|
|
71
|
-
*
|
|
72
|
-
* <!-- This section is generated, changes will be overwritten -->
|
|
73
|
-
* This resource uses the following Azure API Providers:
|
|
74
|
-
*
|
|
75
|
-
* * `Microsoft.DataShare` - 2019-11-01
|
|
76
|
-
*
|
|
77
11
|
* ## Import
|
|
78
12
|
*
|
|
79
13
|
* Data Share Blob Storage Datasets can be imported using the `resource id`, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasetBlobStorage.js","sourceRoot":"","sources":["../../datashare/datasetBlobStorage.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"datasetBlobStorage.js","sourceRoot":"","sources":["../../datashare/datasetBlobStorage.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;GAUG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QA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CAAC,CAAC;aACjE;YACD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAlGL,gDAmGC;AArFG,gBAAgB;AACO,+BAAY,GAAG,uDAAuD,CAAC"}
|
|
@@ -2,68 +2,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* Manages a Data Share Data Lake Gen2 Dataset.
|
|
4
4
|
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as azure from "@pulumi/azure";
|
|
10
|
-
* import * as azuread from "@pulumi/azuread";
|
|
11
|
-
*
|
|
12
|
-
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
13
|
-
* name: "example-resources",
|
|
14
|
-
* location: "West Europe",
|
|
15
|
-
* });
|
|
16
|
-
* const exampleAccount = new azure.datashare.Account("example", {
|
|
17
|
-
* name: "example-dsa",
|
|
18
|
-
* location: exampleResourceGroup.location,
|
|
19
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
20
|
-
* identity: {
|
|
21
|
-
* type: "SystemAssigned",
|
|
22
|
-
* },
|
|
23
|
-
* });
|
|
24
|
-
* const exampleShare = new azure.datashare.Share("example", {
|
|
25
|
-
* name: "example_ds",
|
|
26
|
-
* accountId: exampleAccount.id,
|
|
27
|
-
* kind: "CopyBased",
|
|
28
|
-
* });
|
|
29
|
-
* const exampleAccount2 = new azure.storage.Account("example", {
|
|
30
|
-
* name: "examplestr",
|
|
31
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
32
|
-
* location: exampleResourceGroup.location,
|
|
33
|
-
* accountKind: "BlobStorage",
|
|
34
|
-
* accountTier: "Standard",
|
|
35
|
-
* accountReplicationType: "LRS",
|
|
36
|
-
* });
|
|
37
|
-
* const exampleDataLakeGen2Filesystem = new azure.storage.DataLakeGen2Filesystem("example", {
|
|
38
|
-
* name: "example-dlg2fs",
|
|
39
|
-
* storageAccountId: exampleAccount2.id,
|
|
40
|
-
* });
|
|
41
|
-
* const example = azuread.getServicePrincipalOutput({
|
|
42
|
-
* displayName: exampleAccount.name,
|
|
43
|
-
* });
|
|
44
|
-
* const exampleAssignment = new azure.authorization.Assignment("example", {
|
|
45
|
-
* scope: exampleAccount2.id,
|
|
46
|
-
* roleDefinitionName: "Storage Blob Data Reader",
|
|
47
|
-
* principalId: example.apply(example => example.objectId),
|
|
48
|
-
* });
|
|
49
|
-
* const exampleDatasetDataLakeGen2 = new azure.datashare.DatasetDataLakeGen2("example", {
|
|
50
|
-
* name: "accexample-dlg2ds",
|
|
51
|
-
* shareId: exampleShare.id,
|
|
52
|
-
* storageAccountId: exampleAccount2.id,
|
|
53
|
-
* fileSystemName: exampleDataLakeGen2Filesystem.name,
|
|
54
|
-
* filePath: "myfile.txt",
|
|
55
|
-
* }, {
|
|
56
|
-
* dependsOn: [exampleAssignment],
|
|
57
|
-
* });
|
|
58
|
-
* ```
|
|
59
|
-
*
|
|
60
|
-
* ## API Providers
|
|
61
|
-
*
|
|
62
|
-
* <!-- This section is generated, changes will be overwritten -->
|
|
63
|
-
* This resource uses the following Azure API Providers:
|
|
64
|
-
*
|
|
65
|
-
* * `Microsoft.DataShare` - 2019-11-01
|
|
66
|
-
*
|
|
67
5
|
* ## Import
|
|
68
6
|
*
|
|
69
7
|
* Data Share Data Lake Gen2 Datasets can be imported using the `resource id`, e.g.
|
|
@@ -8,68 +8,6 @@ const utilities = require("../utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* Manages a Data Share Data Lake Gen2 Dataset.
|
|
10
10
|
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as azure from "@pulumi/azure";
|
|
16
|
-
* import * as azuread from "@pulumi/azuread";
|
|
17
|
-
*
|
|
18
|
-
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
19
|
-
* name: "example-resources",
|
|
20
|
-
* location: "West Europe",
|
|
21
|
-
* });
|
|
22
|
-
* const exampleAccount = new azure.datashare.Account("example", {
|
|
23
|
-
* name: "example-dsa",
|
|
24
|
-
* location: exampleResourceGroup.location,
|
|
25
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
26
|
-
* identity: {
|
|
27
|
-
* type: "SystemAssigned",
|
|
28
|
-
* },
|
|
29
|
-
* });
|
|
30
|
-
* const exampleShare = new azure.datashare.Share("example", {
|
|
31
|
-
* name: "example_ds",
|
|
32
|
-
* accountId: exampleAccount.id,
|
|
33
|
-
* kind: "CopyBased",
|
|
34
|
-
* });
|
|
35
|
-
* const exampleAccount2 = new azure.storage.Account("example", {
|
|
36
|
-
* name: "examplestr",
|
|
37
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
38
|
-
* location: exampleResourceGroup.location,
|
|
39
|
-
* accountKind: "BlobStorage",
|
|
40
|
-
* accountTier: "Standard",
|
|
41
|
-
* accountReplicationType: "LRS",
|
|
42
|
-
* });
|
|
43
|
-
* const exampleDataLakeGen2Filesystem = new azure.storage.DataLakeGen2Filesystem("example", {
|
|
44
|
-
* name: "example-dlg2fs",
|
|
45
|
-
* storageAccountId: exampleAccount2.id,
|
|
46
|
-
* });
|
|
47
|
-
* const example = azuread.getServicePrincipalOutput({
|
|
48
|
-
* displayName: exampleAccount.name,
|
|
49
|
-
* });
|
|
50
|
-
* const exampleAssignment = new azure.authorization.Assignment("example", {
|
|
51
|
-
* scope: exampleAccount2.id,
|
|
52
|
-
* roleDefinitionName: "Storage Blob Data Reader",
|
|
53
|
-
* principalId: example.apply(example => example.objectId),
|
|
54
|
-
* });
|
|
55
|
-
* const exampleDatasetDataLakeGen2 = new azure.datashare.DatasetDataLakeGen2("example", {
|
|
56
|
-
* name: "accexample-dlg2ds",
|
|
57
|
-
* shareId: exampleShare.id,
|
|
58
|
-
* storageAccountId: exampleAccount2.id,
|
|
59
|
-
* fileSystemName: exampleDataLakeGen2Filesystem.name,
|
|
60
|
-
* filePath: "myfile.txt",
|
|
61
|
-
* }, {
|
|
62
|
-
* dependsOn: [exampleAssignment],
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* ## API Providers
|
|
67
|
-
*
|
|
68
|
-
* <!-- This section is generated, changes will be overwritten -->
|
|
69
|
-
* This resource uses the following Azure API Providers:
|
|
70
|
-
*
|
|
71
|
-
* * `Microsoft.DataShare` - 2019-11-01
|
|
72
|
-
*
|
|
73
11
|
* ## Import
|
|
74
12
|
*
|
|
75
13
|
* Data Share Data Lake Gen2 Datasets can be imported using the `resource id`, e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasetDataLakeGen2.js","sourceRoot":"","sources":["../../datashare/datasetDataLakeGen2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"datasetDataLakeGen2.js","sourceRoot":"","sources":["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11
11
|
* > **Note:** Scaling Plans require specific permissions to be granted to the Windows Virtual Desktop application before a 'host_pool' can be configured. [Required Permissions for Scaling Plans](https://docs.microsoft.com/azure/virtual-desktop/autoscale-scaling-plan#create-a-custom-rbac-role).
|
|
12
12
|
*
|
|
13
|
-
* ## Example Usage
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as azure from "@pulumi/azure";
|
|
18
|
-
* import * as azuread from "@pulumi/azuread";
|
|
19
|
-
* import * as random from "@pulumi/random";
|
|
20
|
-
*
|
|
21
|
-
* const exampleRandomUuid = new random.RandomUuid("example", {});
|
|
22
|
-
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
|
|
23
|
-
* name: "example-resources",
|
|
24
|
-
* location: "West Europe",
|
|
25
|
-
* });
|
|
26
|
-
* const exampleRoleDefinition = new azure.authorization.RoleDefinition("example", {
|
|
27
|
-
* name: "AVD-AutoScale",
|
|
28
|
-
* scope: exampleResourceGroup.id,
|
|
29
|
-
* description: "AVD AutoScale Role",
|
|
30
|
-
* permissions: [{
|
|
31
|
-
* actions: [
|
|
32
|
-
* "Microsoft.Insights/eventtypes/values/read",
|
|
33
|
-
* "Microsoft.Compute/virtualMachines/deallocate/action",
|
|
34
|
-
* "Microsoft.Compute/virtualMachines/restart/action",
|
|
35
|
-
* "Microsoft.Compute/virtualMachines/powerOff/action",
|
|
36
|
-
* "Microsoft.Compute/virtualMachines/start/action",
|
|
37
|
-
* "Microsoft.Compute/virtualMachines/read",
|
|
38
|
-
* "Microsoft.DesktopVirtualization/hostpools/read",
|
|
39
|
-
* "Microsoft.DesktopVirtualization/hostpools/write",
|
|
40
|
-
* "Microsoft.DesktopVirtualization/hostpools/sessionhosts/read",
|
|
41
|
-
* "Microsoft.DesktopVirtualization/hostpools/sessionhosts/write",
|
|
42
|
-
* "Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/delete",
|
|
43
|
-
* "Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/read",
|
|
44
|
-
* "Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/sendMessage/action",
|
|
45
|
-
* "Microsoft.DesktopVirtualization/hostpools/sessionhosts/usersessions/read",
|
|
46
|
-
* ],
|
|
47
|
-
* notActions: [],
|
|
48
|
-
* }],
|
|
49
|
-
* assignableScopes: [exampleResourceGroup.id],
|
|
50
|
-
* });
|
|
51
|
-
* const example = azuread.getServicePrincipal({
|
|
52
|
-
* displayName: "Azure Virtual Desktop",
|
|
53
|
-
* });
|
|
54
|
-
* const exampleAssignment = new azure.authorization.Assignment("example", {
|
|
55
|
-
* name: exampleRandomUuid.result,
|
|
56
|
-
* scope: exampleResourceGroup.id,
|
|
57
|
-
* roleDefinitionId: exampleRoleDefinition.roleDefinitionResourceId,
|
|
58
|
-
* principalId: example.then(example => example.id),
|
|
59
|
-
* skipServicePrincipalAadCheck: true,
|
|
60
|
-
* });
|
|
61
|
-
* const exampleHostPool = new azure.desktopvirtualization.HostPool("example", {
|
|
62
|
-
* name: "example-hostpool",
|
|
63
|
-
* location: exampleResourceGroup.location,
|
|
64
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
65
|
-
* type: "Pooled",
|
|
66
|
-
* validateEnvironment: true,
|
|
67
|
-
* loadBalancerType: "BreadthFirst",
|
|
68
|
-
* });
|
|
69
|
-
* const exampleScalingPlan = new azure.desktopvirtualization.ScalingPlan("example", {
|
|
70
|
-
* name: "example-scaling-plan",
|
|
71
|
-
* location: exampleResourceGroup.location,
|
|
72
|
-
* resourceGroupName: exampleResourceGroup.name,
|
|
73
|
-
* friendlyName: "Scaling Plan Example",
|
|
74
|
-
* description: "Example Scaling Plan",
|
|
75
|
-
* timeZone: "GMT Standard Time",
|
|
76
|
-
* schedules: [{
|
|
77
|
-
* name: "Weekdays",
|
|
78
|
-
* daysOfWeeks: [
|
|
79
|
-
* "Monday",
|
|
80
|
-
* "Tuesday",
|
|
81
|
-
* "Wednesday",
|
|
82
|
-
* "Thursday",
|
|
83
|
-
* "Friday",
|
|
84
|
-
* ],
|
|
85
|
-
* rampUpStartTime: "05:00",
|
|
86
|
-
* rampUpLoadBalancingAlgorithm: "BreadthFirst",
|
|
87
|
-
* rampUpMinimumHostsPercent: 20,
|
|
88
|
-
* rampUpCapacityThresholdPercent: 10,
|
|
89
|
-
* peakStartTime: "09:00",
|
|
90
|
-
* peakLoadBalancingAlgorithm: "BreadthFirst",
|
|
91
|
-
* rampDownStartTime: "19:00",
|
|
92
|
-
* rampDownLoadBalancingAlgorithm: "DepthFirst",
|
|
93
|
-
* rampDownMinimumHostsPercent: 10,
|
|
94
|
-
* rampDownForceLogoffUsers: false,
|
|
95
|
-
* rampDownWaitTimeMinutes: 45,
|
|
96
|
-
* rampDownNotificationMessage: "Please log off in the next 45 minutes...",
|
|
97
|
-
* rampDownCapacityThresholdPercent: 5,
|
|
98
|
-
* rampDownStopHostsWhen: "ZeroSessions",
|
|
99
|
-
* offPeakStartTime: "22:00",
|
|
100
|
-
* offPeakLoadBalancingAlgorithm: "DepthFirst",
|
|
101
|
-
* }],
|
|
102
|
-
* hostPools: [{
|
|
103
|
-
* hostpoolId: exampleHostPool.id,
|
|
104
|
-
* scalingPlanEnabled: true,
|
|
105
|
-
* }],
|
|
106
|
-
* });
|
|
107
|
-
* ```
|
|
108
|
-
*
|
|
109
|
-
* ## API Providers
|
|
110
|
-
*
|
|
111
|
-
* <!-- This section is generated, changes will be overwritten -->
|
|
112
|
-
* This resource uses the following Azure API Providers:
|
|
113
|
-
*
|
|
114
|
-
* * `Microsoft.DesktopVirtualization` - 2024-04-03
|
|
115
|
-
*
|
|
116
13
|
* ## Import
|
|
117
14
|
*
|
|
118
15
|
* Virtual Desktop Scaling Plans can be imported using the `resource id`, e.g.
|