Skip to content

'utputformat' is not a valid value for '--output' #8778

@kjoebie

Description

@kjoebie

Describe the bug
When entering the following azure cli command from a Powershell window:
az ad sp create-for-rbac -n "Demo" --role contributor --scopes /subscriptions/{SubscriptionId}

I get the following errormessage:
az ad sp create-for-rbac: 'utputformat' is not a valid value for '--output'. See 'az ad sp create-for-rbac --help'.

To Reproduce
Open an Powershell windows with admin rights
az login

<Take a note of the SubscriptionId in the output json. I have only 1 subscription.>

Enter the cli command
az ad sp create-for-rbac -n "Demo" --role contributor --scopes /subscriptions/{SubscriptionId}

Expected behavior
A service principal is created in AAD.
I should see the service principal credentials in json as output.

Environment summary
C:> az --version
azure-cli 2.0.60

acr 2.2.2
acs 2.3.19
advisor 2.0.0
ams 0.4.2
appservice 0.2.15
backup 1.2.1
batch 4.0.0
batchai 0.4.7
billing 0.2.0
botservice 0.1.8
cdn 0.2.0
cloud 2.1.0
cognitiveservices 0.2.4
command-modules-nspkg 2.0.2
configure 2.0.20
consumption 0.4.2
container 0.3.15
core 2.0.60
cosmosdb 0.2.8
dla 0.2.4
dls 0.1.8
dms 0.1.2
eventgrid 0.2.1
eventhubs 0.3.4
extension 0.2.3
feedback 2.1.4
find 0.3.0
hdinsight 0.3.2
interactive 0.4.1
iot 0.3.6
iotcentral 0.1.6
keyvault 2.2.12
kusto 0.2.0
lab 0.1.5
maps 0.3.3
monitor 0.2.10
network 2.3.4
nspkg 3.0.3
policyinsights 0.1.1
profile 2.1.3
rdbms 0.3.8
redis 0.4.1
relay 0.1.3
reservations 0.4.1
resource 2.1.11
role 2.4.2
search 0.1.1
security 0.1.0
servicebus 0.3.3
servicefabric 0.1.14
signalr 1.0.0
sql 2.1.9
sqlvm 0.1.0
storage 2.3.1
telemetry 1.0.1
vm 2.2.16

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\Albert.azure\cliextensions'

Python (Windows) 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

C:> $PSVersionTable

Name Value


PSVersion 5.1.17134.590
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17134.590
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

C:> [System.Environment]::OSVersion.Version

Major Minor Build Revision


10 0 17134 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions