You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/defender-for-iot/device-builders/quickstart-upload-firmware-using-python.md
+1-22Lines changed: 1 addition & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,28 +29,7 @@ This quickstart assumes a basic understanding of Defender for IoT Firmware Analy
29
29
pip install azure-mgmt-iotfirmwaredefense
30
30
pip install azure-identity
31
31
```
32
-
* Visit [Authorize your application](/azure/azure-web-pubsub/howto-authorize-from-application) to create an application.
33
-
* Once you've created your application, save your Azure client ID and Azure tenant ID from the **Overview** page:
34
-
:::image type="content" source="media/quickstart-upload-firmware-using-python/overview-client-id-tenant-id.png" alt-text="Screenshot that shows the Overview page of the application." lightbox="media/quickstart-upload-firmware-using-python/overview-client-id-tenant-id.png":::
35
-
* Save your Azure client secret from the **Certificates & secrets** page. Be sure to copy the value right away because the Azure client secret will only be shown once.
36
-
:::image type="content" source="media/quickstart-upload-firmware-using-python/certs-secrets.png" alt-text="Screenshot that shows the Certificates & secrets page of the application." lightbox="media/quickstart-upload-firmware-using-python/certs-secrets.png":::
37
-
* Configure the following environment variables with the three values that you've saved:
38
-
*`AZURE_CLIENT_ID`for Azure client ID
39
-
*`AZURE_TENANT_ID`for Azure tenant ID
40
-
*`AZURE_CLIENT_SECRET`for Azure client secret
41
-
42
-
In addition, the Azure subscription ID can be configured with the environment variable `AZURE_SUBSCRIPTION_ID`.
43
-
44
-
Once you've configured your environment variables, the client can be authenticated by the following code:
45
-
46
-
```python
47
-
from azure.identity import DefaultAzureCredential
48
-
from azure.mgmt.iotfirmwaredefense import IoTFirmwareDefenseMgmtClient
0 commit comments