How to resolve New-AzResourceGroupDeployment: - The deployment 'DataBricksDeployment' failed with error(s). Showing 1 out of 1 error(s). Status Message: The definition of application 'Databricks25' cannot be null. (Code:InvalidApplicationDefi

Tsholofelo Mautla 21 Reputation points
2025-01-14T08:32:04.5133333+00:00

God day

Does anyone know what could be causing this error.

New-AzResourceGroupDeployment: 10:06:59 - The deployment 'DataBricksDeployment' failed with error(s). Showing 1 out of 1 error(s).

Status Message: The definition of application 'DatabricksTM0825' cannot be null. (Code:InvalidApplicationDefinition)

        {
            "type": "Microsoft.Databricks/workspaces",
            "apiVersion": "2024-05-01",
            "name": "[parameters('workspaceName')]",
            "location": "[resourceGroup().location]",
            "sku": {
                "name": "Premium"
            },
            "properties": {
                "accessConnector": {
                    "id": "/subscriptions/subscriptionID/resourceGroups/RGName/providers/Microsoft.Databricks/accessConnectors/DatabricksAccessConnector",
                    "identityType": "SystemAssigned"
                },
                "authorizations": [
                    {
                    "principalId": "string",
                    "roleDefinitionId": "string"
                    }             
                ],
                "createdBy": {"TM": "TM"},
                "defaultCatalog": {
                    "initialName": "[parameters('DefaultCatalogName')]",
                    "initialType": "UnityCatalog"
                },
                "defaultStorageFirewall": "Enabled",
                "encryption": {
                    "entities": {
                        "managedDisk": {
                            "keySource": "Microsoft.Keyvault",
                            "keyVaultProperties": {
                                "keyName": "[parameters('DiskKeyName')]",
                                "keyVaultUri": "[parameters('ManagedDiskkeyVaultUri')]",
                                "keyVersion": "[parameters('KeyVersion')]"
                            },
                            "rotationToLatestKeyVersionEnabled": true
                        },
                        "managedServices": {
                            "keySource": "Microsoft.Keyvault",
                            "keyVaultProperties": {
                                "keyName": "[parameters('KeyName')]",
                                "keyVaultUri": "[parameters('customerManagedKeyVaultUri')]",
                                "keyVersion": "[parameters('KeyVersion')]"
                            }
                        }
                    }
                },
                "enhancedSecurityCompliance": {
                    "automaticClusterUpdate": {
                        "value": "Enabled"
                    },
                    "complianceSecurityProfile": {
                        "value": "Enabled",
                        "ComplianceStandards":[
                        "none"
                    ]

                    },
                    
                    "enhancedSecurityMonitoring": {
                        "value": "Enabled"
                    }
                },
                "managedDiskIdentity": {
                    "value": "Enabled"
                },
                "managedResourceGroupId": "[concat('subscriptions/', subscription().subscriptionId, '/resourceGroups/',  parameters('managedResourceGroupId'))]",
                "parameters": {
                    "amlWorkspaceId": {
                        "value": "[concat('subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.MachineLearningServices/workspaces/', parameters('amlWorkspaceId'))]"
                    },
                    "customPrivateSubnetName": {
                        "value": "[parameters('privateSubnetName')]"
                    },
                    "PrivateSubnetPrefix":  {
                        "value": "[parameters('privateSubnetPrefix')]"
                    },
                    "publicSubnetPrefix": {
                        "value": "[parameters('PublicSubnetPrefix')]"

                    },
                    "customPublicSubnetName": {
                        "value": "[parameters('PublicSubnetName')]"
                    },
                    "customVirtualNetworkId": {
                        "value": "[concat('subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/Microsoft.Network/virtualNetworks/', parameters('VnetId'))]"
                    },
                    "enableNoPublicIp": {
                        "value": true
                    },
                    "encryption": {
                        "value": {
                            "KeyName": "[parameters('KeyName')]",
                            "keySource": "Microsoft.Keyvault",
                            "keyvaulturi": "[parameters('keyVaultUri')]",
                            "keyversion": "[parameters('KeyVersion')]"
                        }
                    },
                    // "loadBalancerBackendPoolName": {
                    //     "value": "[parameters('loadBalancerBackendPoolName')]"
                    // },
                    // "loadBalancerId": {
                    //     "value": "[concat('subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/Microsoft.Network/loadBalancers/', parameters('amlWorkspaceId'))]"
                    // },
                    // "natGatewayName": {
                    //     "value": "[parameters('natGatewayName')]"
                    // },
                    "prepareEncryption": {
                        "value": true
                    },
                
                    // "publicIpName": {
                    //     "value": "[parameters('publicIpName')]"
                    // },
                    "requireInfrastructureEncryption": {
                        "value": true
                    },
                    "storageAccountName": {
                        "value": "[parameters('storageAccountName')]"
                    },
                    "storageAccountSkuName": {
                        "value": "[parameters('storageAccountSkuName')]"
                    },
                    "vnetAddressPrefix": {
                        "value": "[parameters('addressPrefix')]"
                    }
                },
                "publicNetworkAccess": "Disabled",
                "requiredNsgRules": "NoAzureDatabricksRules",
                "storageAccountIdentity": {
                    // "value": "bbmnmntm25jan"
                    "Id": "[concat('subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/Microsoft.ManagedIdentity/UserAssignedIdentities/', parameters('amlWorkspaceId'))]"
                 },
                "uiDefinitionUri": "https://myaccount.blob.core.windows.net/mycontainer/myblobcls",
                "updatedBy": {
                    "name": "TM"
                }
            },
            "managedBy": "[concat('subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/Microsoft.Databricks/workspaces/', parameters('workspaceName'))]",
            // "sku": {
            //     "name": "Premium",
            //     "tier": "Premium"
            // },
            "tags": {
                "{customized property}": "string"
            }
            
            
        },

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,303 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,735 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.