Using Console
Using CLI
<subscription-id>
with the ID of your Azure subscription.
<subscription-id>
with the ID of your Azure subscription.
appId
: The Application ID of the newly created Azure AD application.displayName
: The display name of the Azure AD application.password
: The password for the Azure AD application. This is the only time the password will be shown, so make sure to save it in a secure location.tenant
: The ID of the Azure AD tenant associated with the subscription.<appId>
with the Application ID of the newly created Azure AD application, and <subscription-id>
with the ID of your Azure subscription.
Using Python
your_subscription_id
, your_username
, your_password
, your_storage_account
, your_storage_account_access_key
, and your_storage_account_subscription_id
with your own values.The above code will enable auditing for the SQL server and ensure that the Azure Active Directory Admin is configured.