Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPostgreSQL not working #24839

Open
Swatkat12 opened this issue May 7, 2024 · 3 comments
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported needs-team-attention This issue needs attention from Azure service team or SDK team

Comments

@Swatkat12
Copy link

Description

I am trying to execute below command as part of my script but it fails.
Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPostgreSQL

51Get-AzDataProtectionPolicyTemplate: /home/runner/work/_temp/ff25746d-1e43-4e99-b56a-7db060b5bcb1.ps1:12
52Line |
53 12 | Get-AzDataProtectionPolicyTemplate
54 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | Cannot process command because of one or more missing mandatory
56 | parameters: DatasourceType.

NOTE : I am able to run this on Azure CLoudShell and PowerShell, hence doesnt seems to be cmdlet issue but platform.

Issue script & Debug output

Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPGFlexServer

Environment data

Latest

Module versions

2.3.0

Error output

na
@Swatkat12 Swatkat12 added bug This issue requires a change to an existing behavior in the product in order to be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels May 7, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported needs-triage This is a new issue that needs to be triaged to the appropriate team. and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels May 7, 2024
@Swatkat12
Copy link
Author

Hello Team, Any update on this?

@isra-fel
Copy link
Member

NOTE : I am able to run this on Azure CLoudShell and PowerShell, hence doesnt seems to be cmdlet issue but platform.

Hi @Swatkat12 what was the platform that you had this issue?

Also, can you double check if the script has the mandatory parameter -DatasourceType? The error message indicated there was on parameters.

@isra-fel isra-fel added needs-author-feedback More information is needed from author to address the issue. and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels May 16, 2024
@Swatkat12
Copy link
Author

Hello isra-fel
Thank you for the reaching out. Managed to resolve the issue.
Az.dataprotection module was old. We needed 2.4.0

@microsoft-github-policy-service microsoft-github-policy-service bot added needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-author-feedback More information is needed from author to address the issue. labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported needs-team-attention This issue needs attention from Azure service team or SDK team
Projects
None yet
Development

No branches or pull requests

2 participants