title: Remove Role assignment using powershell in azure
body: <p>when im trying to remove role assignment for a storage account using azure automation account</p>
  <pre><code>Remove-AzRoleAssignment -SignInName &quot;john@example.com&quot;  -RoleDefinitionName &quot;Storage File Data SMB Share Contributor&quot; -Scope &quot;/subscriptions/000-8888-7777/resourceGroups/$resourcegroup/providers/Microsoft.Storage/storageAccounts/$storageaccount&quot;
  </code></pre>
  <p>using above command getting</p>
  <blockquote>
  <p>Cannot find principle using specified options</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/ALpak.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ALpak.png" alt="enter image description here" /></a></p>