title: How to set value of -DefaultProfile (of type IAzureContextContainer) in New-AzSqlSyncMember
body: <p>I am trying to create a powershell script to create azure data sync between 2 azure SQL databases.
  My member database is on another subscription.</p>
  
  <p>I need to set -DefaultProfile which is of type  on 'New-AzSqlSyncMember' command.
  I am not aware of the syntax for setting this parameter.</p>
  
  <p>My current script without -DefaultProfile looks like below:</p>
  
  <pre><code>New-AzSqlSyncMember -ResourceGroupName $resourceGroupName `
                      -ServerName $serverName `
                      -DatabaseName $databaseName `
                      -SyncGroupName $syncGroupName `
                      -Name $syncMemberName `
                      -MemberDatabaseType $memberDatabaseType `
                      -SyncDirection $syncDirection
  </code></pre>
  
  <p>I want to set the value of the subscription field using powershell like in the image below using powershell:</p>
  
  <p><a href="https://i.stack.imgur.com/LulwC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LulwC.png" alt="Set Data Sync Member Subscription"></a></p>