Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.26k stars 3.86k forks source link

[Doc]: Get-AzDataFactoryPipeline is using the old API from 2015 #26640

Open francesco1119 opened 1 week ago

francesco1119 commented 1 week ago

Type of issue

Code doesn't work

Feedback

Today I tried to use the command Get-AzDataFactoryPipeline.

Steps to Reproduce:

  1. run connect-AzAccount
  2. run Get-AzDataFactoryPipeline -ResourceGroupName "ADF" -DataFactoryName "WikiADF"
  3. I receive the error:
Get-AzDataFactoryPipeline: HTTP Status Code: NotFound
Error Code: InvalidResourceType
Error Message: The resource type could not be found in the namespace 'Microsoft.DataFactory' for api version '2015-10-01'.
Request Id: 36589066-f78f-4410-8895-78f2f1f666e9
Timestamp (Utc):11/08/2024 10:49:13

Image

It's using an API version dating back 2015. Is that alright?

Troubleshooting:

I run Update-Module -Name Az -Force to update the Azure CLI . Still the same error.

Page URL

https://learn.microsoft.com/en-us/powershell/module/az.datafactory/get-azdatafactorypipeline?view=azps-12.4.0&tryIt=true&source=docs#code-try-2

Content source URL

https://github.com/Azure/azure-powershell/blob/main/src/DataFactory/DataFactory/help/Get-AzDataFactoryPipeline.md

Author

@mikefrobbins

Document Id

bafef9f9-a1e5-fc7b-843f-cfccb632f4df

francesco1119 commented 5 days ago

Hello? Any update here? The documentation isn't working. It's a simple command easy to check. Can you check, please ?

VeryEarly commented 3 days ago

Hi @francesco1119 , please share the version of Az.DataFactory, you can check it by using Get-Module -Name Az.DataFactory

microsoft-github-policy-service[bot] commented 3 days ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @zhangyd2015, @Frey-Wang, @Jingshu923.

francesco1119 commented 1 day ago

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     1.18.8                Az.DataFactory                      {Add-AzDataFactoryV2DataFlowDebugSessionPackage, Add-AzDataFactoryV2TriggerSubscription, Get-AzDataFactory, Get-AzDataFactoryActivityWindow…}