title: azure powerhsell integration account partner creation identities invalid
body: <p>I have a paid and free integration account setup on Azure. I have already generated a few partners and agreements using the portal with no issues. Im now looking to use some powershell scripts to help control the creation of these partners and agreements in the future.</p>
  <p>When trying to build script to create a partner I hit this bottleneck with the business identities.</p>
  <blockquote>
  <p>New-AzIntegrationAccountPartner -ResourceGroupName $ResourceGroupName …
  |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  | Invalid business identity.</p>
  </blockquote>
  <pre><code>$ResourceGroupName = 'rg-test'
  $IntegrationAccountName = 'inter-test'
  $PartnerName = 'TestPartner'
  
  $BusinessIdentities = @{
      Qualifier = &quot;AS2Identity&quot;
      Value = &quot;TestIdentity&quot;
  }
  
  New-AzIntegrationAccountPartner -ResourceGroupName $ResourceGroupName -Name $IntegrationAccountName -PartnerName $PartnerName -BusinessIdentities $BusinessIdentities
  </code></pre>
  <p>Reference: <a href="https://docs.microsoft.com/en-us/powershell/module/az.logicapp/new-azintegrationaccountpartner?view=azps-4.6.1" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/powershell/module/az.logicapp/new-azintegrationaccountpartner?view=azps-4.6.1</a></p>
  <p>Is there something Im unaware when it comes to hash-tables?</p>
  <p>Powershell Core MacOS 10.15.6</p>
  <p>Major  Minor  Patch  PreReleaseLabel BuildLabel</p>
  <hr />
  <p>7      0      3</p>
  <hr />
  <p>Update:</p>
  <p>Adding Resolve-AzError Response.</p>
  <pre><code>HistoryId: 4
  
  Message        : Invalid business identity.
  StackTrace     :    at Microsoft.Azure.Commands.LogicApp.Utilities.CmdletHelper.ConvertToBusinessIdentityList(Object businessIdentityObject)
                      at Microsoft.Azure.Commands.LogicApp.Cmdlets.NewAzureIntegrationAccountPartnerCommand.ExecuteCmdlet()
                      at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.&lt;&gt;c__3`1.&lt;ExecuteSynchronouslyOrAsJob&gt;b__3_0(T c)
                      at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet, Action`1 executor)
                      at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet)
                      at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
  Exception      : System.Management.Automation.PSArgumentException
  InvocationInfo : {New-AzIntegrationAccountPartner}
  Line           : New-AzIntegrationAccountPartner -ResourceGroupName $ResourceGroupName -Name $IntegrationAccountName -PartnerName $PartnerName -BusinessIdentities 
                   $BusinessIdentities
  Position       : At /Users/john/Desktop/run.ps1:10 char:1
                   + New-AzIntegrationAccountPartner -ResourceGroupName $ResourceGroupName …
                   + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  HistoryId      : 4
  </code></pre>