MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.47k forks source link

getting error on post deployment script copied from github #122975

Closed ndtesting closed 4 months ago

ndtesting commented 5 months ago

2024-05-31T20:29:46.3467993Z ##[error]Index operation failed; the array index evaluated to null. 2024-05-31T20:29:46.4946227Z ##[error]PowerShell exited with code '1'.

Developer has created and deleted the trigger -armTemplate "$(System.DefaultWorkingDirectory)/_ADF CI Option 2 Build Pipeline/ArmTemplates/ARMTemplateForFactory.json" -ResourceGroupName "$(ResourceGroup)" -DataFactoryName "$(FactoryName)" -predeployment $false -deleteDeployment $true this is how it was set for post deployment but getting this vague error


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

PesalaPavan commented 5 months ago

@ndtesting It would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!!

PesalaPavan commented 5 months ago

@ndtesting Can you provide the document which you have followed?

anthonynassar commented 5 months ago

@PesalaPavan hello,

I'm facing the same issue: "Index operation failed; the array index evaluated to null." in the post-deployment script.

The script is PrePostDeploymentScript.Ver2.ps1.

Another user already opened an issue that looks related to this one here (issue # 608), but without really sharing the solution.

Can you please provide some assistance?

PesalaPavan commented 5 months ago

@anthonynassar , @ndtesting Can you provide the documentation which you followed, then We will investigate and update as appropriate.

anthonynassar commented 5 months ago

@PesalaPavan, the documentation can be found in the same repository of the script above.

Here is the link : https://github.com/Azure/Azure-DataFactory/blob/main/SamplesV2/ContinuousIntegrationAndDelivery/README.md

Naveenommi-MSFT commented 5 months ago

@ndtesting Thank you for bringing this to our attention. I've delegated this to content author @nabhishek, who will review it and offer their insightful opinions.

Naveenommi-MSFT commented 5 months ago

@nabhishek Could you please review add comments on this, update as appropriate.

bishwarup-tiwary commented 4 months ago

I am also facing the same issue, used the same code as instructed in the projects

jonburchel commented 4 months ago

Hi @ndtesting, and thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. The requested updates have not been made since the creation of this issue, and the timeline for resolution may vary based on resourcing, so we've created an internal work item to incorporate your suggestions. We are closing this issue for now, but feel free to comment here as necessary. #please-close