Skip to content

Commit d4f3370

Browse files
author
Qian Wen
committed
improve acrolinx score for the authentication article
1 parent 0aa9080 commit d4f3370

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

articles/marketplace/partner-center-portal/marketplace-metering-service-authentication.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ We will explain when and how to use the different authentication strategies to s
2020

2121
## Using the Azure AD security token
2222

23-
Applicable offer types are SaaS and Azure Applications with Managed Application plan type.
23+
Applicable offer types are SaaS and Azure Applications with managed application plan type.
2424

2525
Submit custom meters by using a predefined fixed application ID to authenticate.
2626

27-
For SaaS offers this is the only available option.
27+
For SaaS offers, Azure AD is the only available option.
2828

29-
For Azure Applications with Managed Application plan, you should consider using this strategy in the following cases:
29+
For Azure applications with managed application plan, you should consider using this strategy in the following cases:
3030

3131
* You already have a mechanism to communicate with your backend services, and you want to extend this mechanism to emit custom meters from a central service.
32-
* You have complex custom meters logic; in this case, it will make more sense to run this logic in a central location instead of running it on the managed application resources.
32+
* You have complex custom meters logic. Run this logic in a central location, instead of the managed application resources.
3333

3434
Once you have registered your application, you can programmatically request an Azure AD security token. The publisher is expected to use this token and make a request to resolve it.
3535

36-
See [Azure Active Directory access tokens](https://docs.microsoft.com/azure/active-directory/develop/access-tokens) for more information about these tokens.
36+
For more information about these tokens, see [Azure Active Directory access tokens](https://docs.microsoft.com/azure/active-directory/develop/access-tokens).
3737

3838
### Get a token based on the Azure AD app
3939

@@ -92,9 +92,9 @@ Sample response token:
9292
}
9393
```
9494

95-
## Using the Azure managed identities token
95+
## Using the Azure-managed identities token
9696

97-
Applicable offer type is Azure Applications with Managed Application plan type.
97+
Applicable offer type is Azure applications with managed application plan type.
9898

9999
Using this approach will allow the deployed resources identity to authenticate to send custom meters usage events. You can embed the code that emits usage within the boundaries of your deployment.
100100

@@ -103,10 +103,10 @@ Using this approach will allow the deployed resources identity to authenticate t
103103
104104
Your managed application can contain different type of resources, from Virtual Machines to Azure Functions. For more information on how to authenticate using managed identities for different services, see [how to use managed identities for Azure resources](https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/overview#how-can-i-use-managed-identities-for-azure-resources).
105105

106-
For example, this is how to authenticate using a Windows VM,
106+
For example, follow the steps below to authenticate using a Windows VM,
107107

108108
1. Make sure Managed Identity is configured using one of the methods:
109-
1. [Azure Portal UI](https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm)
109+
1. [Azure portal UI](https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm)
110110
1. [CLI](https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/qs-configure-cli-windows-vm)
111111
1. [PowerShell](https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/qs-configure-powershell-windows-vm)
112112
1. [Azure Resource Manager Template](https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/qs-configure-template-windows-vm)
@@ -124,7 +124,7 @@ For example, this is how to authenticate using a Windows VM,
124124
$Headers.Add("Authorization","$($Token.token_type) "+ " " + "$($Token.access_token)")
125125
```
126126
127-
1. Get the managed app id from the current resource groups 'ManagedBy' property
127+
1. Get the managed app ID from the current resource groups 'ManagedBy' property
128128
129129
```powershell
130130
# Get subscription and resource group
@@ -136,15 +136,15 @@ For example, this is how to authenticate using a Windows VM,
136136
$managedappId = $resourceGroupInfo.managedBy
137137
```
138138
139-
1. Marketplace metering service requires to report usage on a `resourceID`, in the case of a Managed App this is the `resourceUsageId`.
139+
1. Marketplace metering service requires to report usage on a `resourceID`, and `resourceUsageId` if a managed application.
140140
141141
```powershell
142-
# Get resourceUsageId from the Managed App
142+
# Get resourceUsageId from the managed app
143143
$managedAppUrl = "https://management.azure.com/subscriptions/" + $metadata.compute.subscriptionId + "/resourceGroups/" + $metadata.compute.resourceGroupName + "/providers/Microsoft.Solutions/applications/" + $managedappId + "\?api-version=2019-07-01"
144144
$ManagedApp = curl $managedAppUrl -H $Headers | Select-Object -Expand Content | ConvertFrom-Json
145145
# Use this resource ID to emit usage
146146
$resourceUsageId = $ManagedApp.properties.billingDetails.resourceUsageId
147147
```
148148
149-
1. Use the [Marketplace metering service API](https://review.docs.microsoft.com/azure/marketplace/partner-center-portal/marketplace-metering-service-apis?branch=pr-en-us-101847) to emit usage
149+
1. Use the [Marketplace metering service API](https://review.docs.microsoft.com/azure/marketplace/partner-center-portal/marketplace-metering-service-apis?branch=pr-en-us-101847) to emit usage.
150150

0 commit comments

Comments
 (0)