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

Availability of Az.Resources should be validated #336

Closed
fmms opened this issue Jun 23, 2023 · 1 comment
Closed

Availability of Az.Resources should be validated #336

fmms opened this issue Jun 23, 2023 · 1 comment
Assignees
Labels
nice to have New feature, low-priority as "nice to have" in the module
Milestone

Comments

@fmms
Copy link

fmms commented Jun 23, 2023

Describe the bug
At the beginning I did not have Az:Resources installed.

As a result I got

Finished deploying object: [IntegrationRuntime].[ir-shir-onprem]
New-AzResource : InputIsMalformedDetailed : Input is malformed. Reason: Could not get integration runtime details for ir-shir-onprem
CorrelationId: e4943009-7a4b-4673-b034-750a8e533318
In \\mnzfs100\Users-Ext$\xmoell46\WindowsPowerShell\Modules\azure.datafactory.tools\1.5.0\private\Deploy-AdfObjectOnly.ps1:134 Zeichen:13
+             New-AzResource `
+             ~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzResource], ErrorResponseMessageException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceCmdlet

many times.

To Reproduce
Your script to reproduce the behaviour:

Publish-AdfV2FromJson -RootFolder "." -ResourceGroupName "rg-gamdwh-prod-001" -DataFactoryName "df-gamdwh-ingest-prod" -Location "West Europe"

Expected behaviour
An error message appears that I should install Az.Resources

Screenshots
If applicable, add screenshots to help explain your problem.

Version of PowerShell module of:

PS C:\df-gamdwh-ingest-fm> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.5582
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.5582
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1


PS C:\df-gamdwh-ingest-fm> Get-Module Azure.datafactory.tools

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.5.0      azure.datafactory.tools             {Export-AdfToArmTemplate, Get-AdfDocDiagram, Get-AdfFromService, Import-AdfFromFolder...}

Provide all files to reproduce the issue

  • Attach at least log file (you can wipe out any potentially sensitive info)
  • Attach files of objects which are involved in the process
@fmms fmms added the triage Issue is under investigation label Jun 23, 2023
@NowinskiK NowinskiK added nice to have New feature, low-priority as "nice to have" in the module and removed triage Issue is under investigation labels Jul 10, 2023
@NowinskiK
Copy link
Member

NowinskiK commented Dec 20, 2023

https://stackoverflow.com/questions/46216038/how-do-i-define-requiredmodules-in-a-powershell-module-manifest-psd1
or simple:

Get-Command "Set-AzStorageBlobContent1"
Get-Command "New-AzResource"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nice to have New feature, low-priority as "nice to have" in the module
Projects
None yet
Development

No branches or pull requests

2 participants