Deploying Microsoft Bot to Azure Not working with Azure CLI - botframework

I'm following this tutorial to deploy a Microsoft Bot to Azure. Under "Create an identity resource" it says to use this Azure CLI command:
az ad app create --display-name "<name>" --password "<password>"
Running this command gives the error:
unrecognized arguments: --password
On the tutorial page it gives a link to the az ad app command reference, looking at the reference for az ad app create, it lists all flags you can use with the command, and --password is not on the list. I'm not sure what to do at this point.

Which version of Azure CLI are you running? Version 2.37.0 made breaking changes to the CLI commands. The document you referenced specifies earlier versions of Azure CLI to use depending on your language of choice. The az ad app reference is also linked to the latest version, so naturally --password is not shown.

Related

Using Heroku CLI to get server.js live, entering-> "heroku create" getting-> "invalid credentials provided" error

Attempting to deploy API/server.js web service, w/ postgresql db, & react frontend deployment on GitHub Pages.
Performing CRUD requests and responses based on user input & submission.
Using Heroku cloud CLI for deployment of both Database & API.Webserver portions.
I type "heroku create" on CLI and I get the following in response:
"---> r#DESKTOP-MGEIQ49 MINGW64 ~/Desktop/FILES/DEV/WEBSERVICES/PERSON-RESOURCE/FRONT/[[[myname]]].github.io (master)
$ heroku create
» Warning: Our terms of service have changed:
» https://dashboard.heroku.com/terms-of-service
Creating app... !
! Invalid credentials provided.
» Warning: heroku update available from 7.53.0 to 7.60.2.
heroku: Press any key to open up the browser to login or q to exit: n....."
Genuises please advise...

How can I download my ADB Wallet using automation scripts?

I've created oci cli and terraform scripts to provision an autonomous database.
Is there a way to download the wallet also with terraform / oci cli ?
Or is this only possible via service console (web) ?
After installing and configuring ocicli by following the doc, you can use the "oci db autonomous-database generate-wallet" command to download the wallet.
oci db autonomous-database generate-wallet --autonomous-database-id ocid1.autonomousdwdatabase.oc1.phx.abyhqljt7jdqblkyzwhwufqjcbfrvs3behzr4eusjkcjc5xjtftbv --file wallet.zip --password Welcome1!

How do I upload a file to Azurite from terminal?

I'm using Azurite and wish to create a container/upload a blob etc from the bash terminal!
I've tried using the Azure CLI like this::
az storage container create --account-name devstoreaccount1 --account-key Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw== --name mycontainer
But of course it doesn't work and complains of Authentication failure! By the way the correct account key and name are used in that example.
I believe it's not possible to talk to Azurite using the Azure CLI.
All I want to do is create a container and upload a file to it from the terminal.
Does anybody know if this is possible? Or will I have to use a Java client (for example) to do the job?
Thanks
According to my test, when we account key and account name with Azure CLI to create blob container, cli will use https protocol to connect Azurite. But, in default, Azurite just support http protocol. For more details, please refer to here
So I suggest you use connection string to connect Azurite with Azure CLI, the connection string will tell Azure CLI uses http protocol.
For example
Create contanier
az storage container create -n test --connection-string "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;"
Upload file
az storage blob upload -f D:\test.csv -c test -n test.csv --connection-string "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;"

Trying to deploy a business network onto hyperledger fabric 1.0 beta fails to install chaincode

I have v0.8.0 of hyperledger composer installed and when I try to deploy the business network using the following command I get an install chaincode error
composer network deploy -a test.bna -p hlfv1 -i admin -s adminpw
And the response is
Error: error trying to deploy. Error: error trying install chaincode. Error
What is the problem ?
The security model changed after hyperledger v1.0.0-alpha1. Now peers have the concept of Admin users. The userid 'admin' is a userid controlled and owned by the certificate authority server that is provided as part of the fabric composer development hyperledger fabric and has no authority on the Peer.
The Development fabric pre-loads the peer's Admin id into the KeyValStore defined by the profile 'hlfv1' and calls it PeerAdmin. This is the userid you must specify in order to deploy a business network onto the peer.
As this user has already preloaded it doesn't have a secret but hyperledger composer currently requires a secret to be specified. It doesn't matter what you specify for the secret so long as you specify something. So the deploy command looks like
composer network deploy -a test.bna -p hlfv1 -i PeerAdmin -s anything

Azure login using a .publishsettings file

I'm trying to assign a reserved IP to a VM using the CLI tools.
After running $: azure network nic set [
pawel#LAMP-Test:~$ azure network nic set LAMP-Test FirstReservedIP
info: Executing command network nic set
error: The current cmdlet requires you to log in using Azure Active Directory account, not from a .publishsettings file. Please run 'azure login' or use 'azure account set' to select a correct subscription.
info: Error information has been recorded to /home/pawel/.azure/azure.err
error: network nic set command failed
info: Executing command network nic set
error: The current cmdlet requires you to log in using Azure Active Directory account, not from a .publishsettings file. Please run 'azure login' or use 'azure account set' to select a correct subscription.
info: Error information has been recorded to /home/pawel/.azure/azure.err
error: network nic set command failed
azure network nic set LAMP-Test FirstReservedIP
]1 FirstReservedIp
I received following error:
The current cmdlet requires you to log in using Azure Active Directory
account, not from a .publishsettings file. Please run 'azure login' or
use 'azure account set' to select a correct subscription.
Is there a way to use .publishsettings file only to achieve this task?
No, at least not when you are in ARM mode. Using the .publishsettings file to authenticate from the CLI tools is only supported in the ASM mode.
More information available here.
You can still achieve a non-interactive login using CLI but it will require that you authenticate to Azure AD using a Work/School account (aka Organizational account). So, create an admin user (or service principal) in your Azure AD if you don't already have one. Then, add the azure login command to the top of your CLI script. For example...
azure login --username johndoe#contoso.onmicrosoft.com --password passw0rD!
azure network nic set LAMP-Test FirstReservedIP

Resources