This is an extension to Azure CLI to manage Dynatrace resources.
Install this extension using the below CLI command
az extension add --name dynatrace
az dynatrace monitor create -g rg -n monitor --user-info "{first-name:Alice,last-name:Bobab,email-address:Alice@microsoft.com,phone-number:1234567890,country:US}"
--plan-data "{usage-type:committed,billing-cycle:Monthly,plan-details:azureportalintegration_privatepreview@TIDhjdtn7tfnxcy,effective-date:2022-08-20}"
--environment "{single-sign-on:{aad-domains:['abc']}}"
az dynatrace monitor show -g rg -n monitor
az dynatrace monitor list -g rg
az dynatrace monitor update -g {rg} -n {monitor} --tags {{env:dev}}
az dynatrace monitor delete -n monitor -g rg -y
az dynatrace monitor get-sso-detail -g rg --monitor-name monitor --user-principal Alice@microsoft.com
az dynatrace monitor get-vm-host-payload -g rg --monitor-name monitor
az dynatrace monitor list-app-service -g rg --monitor-name monitor
az dynatrace monitor list-host -g rg --monitor-name monitor
az dynatrace monitor list-linkable-environment -g rg --monitor-name monitor --user-principal Alice@microsoft.com --region eastus2euap
az dynatrace monitor list-monitored-resource -g rg --monitor-name monitor
az dynatrace monitor tag-rule create -g rg --monitor-name monitor -n default
--log-rules "{send-aad-logs:enabled,send-subscription-logs:enabled,send-activity-logs:enabled,filtering-tags:[{name:env,value:prod,action:include},{name:env,value:dev,action:exclude}]}"
--metric-rules "{filtering-tags:[{name:env,value:prod,action:include}]}"
az dynatrace monitor tag-rule show -g rg --monitor-name monitor -n default
az dynatrace monitor tag-rule list -g rg --monitor-name monitor
az dynatrace monitor tag-rule update -g rg --monitor-name monitor -n default
az dynatrace monitor tag-rule delete -g rg --monitor-name monitor -n default -y
az dynatrace monitor sso-config create -g rg --monitor-name monitor -n default
--aad-domains "['mpliftrdt20210811outlook.onmicrosoft.com']" --single-sign-on-url "https://www.dynatrace.io"
az dynatrace monitor sso-config show -g rg --monitor-name monitor -n default
az dynatrace monitor sso-config list -g rg --monitor-name monitor