<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Azure on Chris J Arges</title><link>https://chrisarges.net/tags/azure/</link><description>Recent content in Azure on Chris J Arges</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 22 Jan 2018 11:26:32 -0600</lastBuildDate><atom:link href="https://chrisarges.net/tags/azure/index.xml" rel="self" type="application/rss+xml"/><item><title>getting activity logs from azure</title><link>https://chrisarges.net/posts/2018-01-22-getting-activity-logs-from-azure/</link><pubDate>Mon, 22 Jan 2018 11:26:32 -0600</pubDate><guid>https://chrisarges.net/posts/2018-01-22-getting-activity-logs-from-azure/</guid><description>&lt;p&gt;I was tasked with looking into how to connect to the Azure API using python.&#10;Below are some of my setup notes for getting this working.&lt;/p&gt;&#10;&lt;p&gt;First install the az client. Follow this link to get things setup on your platform:&#10;&lt;code&gt;https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest&lt;/code&gt;&lt;/p&gt;&#10;&lt;p&gt;In order to create our client you can create a json file that contains the&#10;necessary credentials. This can be consumed by the python library.&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;az login&#10;az ad sp create-for-rbac --sdk-auth &amp;gt; mycredentials.json&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you get a &lt;code&gt;Role assignment creation failed&lt;/code&gt; error you&amp;rsquo;ll need to ensure you&#10;have proper permissions from your Azure administrator.&lt;/p&gt;</description></item></channel></rss>