mspnp / serverless-reference-implementation

Serverless reference implementation guidance
MIT License
179 stars 93 forks source link

ERROR: the following arguments are required: --name/--authorization-rule-name #126

Closed NathanDotTo closed 7 months ago

NathanDotTo commented 7 months ago

When trying:

export EVENT_HUB_CONNECTION_STRING=$(az eventhubs eventhub authorization-rule keys list \
     -g $RESOURCEGROUP \
     --eventhub-name $APPNAME-eh  \
     --namespace-name $EH_NAMESPACE \
     -n send \
     --query primaryConnectionString --output tsv)

I get:

ERROR: the following arguments are required: --name/--authorization-rule-name
NathanDotTo commented 7 months ago

Should be:

export EVENT_HUB_CONNECTION_STRING=$(az eventhubs eventhub authorization-rule keys list \
     -g $RESOURCEGROUP \
     --eventhub-name $APPNAME-eh  \
     --namespace-name $EH_NAMESPACE \
     --name send \
     --query primaryConnectionString --output tsv)

It looks like -n no longer works, so --name is required.

v-fearam commented 7 months ago

I wanted to inform you that the issue has been addressed in the pull request #125. I will proceed to close the ticket. However, if you encounter any further issues or have additional feedback, please feel free to open a new ticket.