@gradientedge/cdk-utils-azure 2.30.0 → 2.32.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.
@@ -279,7 +279,7 @@ export class AzureFunctionApp extends CommonAzureConstruct {
279
279
  */
280
280
  createFunctionApp(resourceOptions) {
281
281
  this.app = this.functionManager.createFunctionAppFlexConsumption(`${this.id}-function-app-flex`, this, {
282
- ...this.props.functionApp,
282
+ ...this.props.functionApp.app,
283
283
  name: this.props.functionApp.app?.name ?? this.id,
284
284
  scaleAndConcurrency: this.props.functionApp.app?.scaleAndConcurrency,
285
285
  serverFarmId: this.appServicePlan.id,
@@ -55,16 +55,13 @@ export class AzureStorageManager {
55
55
  new BlobServiceProperties(`${id}-blob-props`, {
56
56
  ...props.blobProperties,
57
57
  blobServicesName: 'default',
58
- accountName: scope.resourceNameFormatter
59
- .format(props.accountName?.toString(), scope.props.resourceNameOptions?.storageAccount)
60
- .replace(/\W/g, '')
61
- .toLowerCase(),
58
+ accountName: storageAccount.name,
62
59
  resourceGroupName,
63
60
  deleteRetentionPolicy: props.blobProperties?.deleteRetentionPolicy ?? {
64
61
  enabled: true,
65
62
  days: 7,
66
63
  },
67
- }, { parent: scope, ...resourceOptions });
64
+ }, { parent: scope, dependsOn: [storageAccount], ...resourceOptions });
68
65
  }
69
66
  return storageAccount;
70
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils-azure",
3
- "version": "2.30.0",
3
+ "version": "2.32.0",
4
4
  "description": "Azure Pulumi utilities for @gradientedge/cdk-utils",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
@@ -15,9 +15,9 @@
15
15
  ],
16
16
  "dependencies": {
17
17
  "@pulumi/archive": "0.3.8",
18
- "@pulumi/azure-native": "3.17.0",
18
+ "@pulumi/azure-native": "3.18.0",
19
19
  "@pulumi/azuread": "6.9.0",
20
- "@pulumi/pulumi": "3.236.0",
20
+ "@pulumi/pulumi": "3.237.0",
21
21
  "@types/lodash": "4.17.24",
22
22
  "app-root-path": "3.1.0",
23
23
  "lodash": "4.18.1",