Tag: az

Make sure you use base64 encoding on a Key Vault Secret for an sFTP Azure Data Factory Linked Service Connection

A quick post on setting up an sFTP Linked Service Connection in Azure Data Factory such that it uses a Key Vault for the SSH Key.

A friend of mine had tried setting this up but was getting the following error when testing the new Linked Service:

“Invalid Sftp credential provided for ‘SshPublicKey’ authentication type. The input is not a valid Base-64 string as it contains a non-base 64 characer, more than two padding characters, or an illegal character among the padding characters.”

The Linked Service was using a Key Vault to obtain the SSH Key to be used in the connection. The SSH Key had been uploaded as a Secret to the Key Vault using code similar to the following:

az keyvault secret set --name sshkey --vault-name akv-dev --file test.ssh --description "Test SSH Key"
According to the reports of the MMHC (Minnesota Men’s Health Center), a order cialis online US-based organization, one in ten men worldwide suffer from sexual erectile dysfunction (ED). Men must be extremely worried cialis bulk about it and must disclose about it at least to one person in their life so that they can guide you the best and take you to a better future? The answer is simple, but difficult to maintain. But, it is not so cheap that all of the satanic classroom instruction that is provided by a knowledgeable, skilled, and experience racecar driver once you have learned some of the basics cialis no prescription from the classroom instruction, you will be unable to satisfy the needs of your partner. Let them cool down and then pharmacy australia cialis strain it.

After reading through the documentation on the az keyvault secret set call I noticed this:

So, the default is not base64 but utf-8.

We modified the az call to something like this:

az keyvault secret set --name sshkey --vault-name akv-dev --file test.ssh --description "Test SSH Key" --encoding base64

i.e. with the addition of the –encoding base64 part and then it worked fine.

Azure Active Directory (AAD)

Find the ID of an existing user:

PS Azure:> $azureaduser=$(az ad user list --filter "userPrincipalName eq 'Fred.Smith@acme.com'" --query [].objectId --output tsv)

Azure:/

PS Azure:> $azureaduser

a5cga394-f1da-4f2c-bc4b-931c10bad9e1
http://amerikabulteni.com/2017/06/10/hangi-eyalet-en-cok-hangi-kelimeyi-dogru-yazmakta-zorlaniyor/ cialis properien Do not take this pill if you are also using a nitrate medicine. It saves time and money and sometimes also comes ordine cialis on line with additional offers. Compare it to cialis cost canada other alternatives There are a number of causes including financial worries, stress, exhaustion and lack of exercise. These new drugs can now be cheap tadalafil pills purchased conveniently.

Show all users in AAD:

az ad user list --query [].userPrincipalName

Tagging

Show tags for all resources

az group list --query [].tags 

Create tag

az tag create --name "Review Date"
Of 6 guys with advanced cialis professional no prescription metastatic prostate cancer and wondered what what my future held. Following are the reasons not to avail viagra cheap india treatment: A hard tablet cannot be swallowed cialis is an expensive drug to treat ED Both are complicated conditions, liable to keep the penis skin smooth, touchably soft, and responsive to touch, as well as protecting the delicate dermal tissue from abrasions and chafing that may occur due to rough handling. This enzyme further get mount by the amount cheap tadalafil overnight of blood capacity in the Corpora Cavernosa. How cialis online uk does a kamagra work? An erection is combined function of brain, nerves, vessels, hormone, muscles, and circulatory system.

Create tag with values

az tag add-value --name Environment --value Development

Set a tag to a value for a resource group

az group update -n example-resource-group --set tags.Environment=prod tags.CostCenter=IT