<p>I have the following script ( I've change the AZURE_PIPELINES_PUBLISHER ):</p>
<blockquote>
<pre><code>AZURE_PIPELINES_PUBLISHER=azure-pipelines-publisher@$GOOGLE_CLOUD_PROJECT.iam.gserviceaccount.com

gcloud projects add-iam-policy-binding $GOOGLE_CLOUD_PROJECT \
    --member serviceAccount:$AZURE_PIPELINES_PUBLISHER \
    --role roles/storage.admin
</code></pre>
</blockquote>
<p>I write this script on 'Arguments' field of the Docker push task, in Azure DevOps, when i run the build, this task shows the following error:</p>
<blockquote>
<p>unknown flag: --member</p>
</blockquote>
<p>I get the script from the <a href="https://cloud.google.com/solutions/creating-cicd-pipeline-vsts-kubernetes-engine#command-line_1" rel="nofollow noreferrer">Google Cloud documentation</a>.</p>
<p>What's wrong in the script?</p>

Marcos Paulo Silva
<p>From the tutorial, <code>gcloud</code> command should run in the Cloud Shell. It's not 'Arguments' of the Docker push task. It's supposed creating a Google Cloud service account in your production project and assign the role before you configure Azure Pipelines to build and publish a container image.</p>
