다음을 통해 공유


Windows Azure Pack 사용량 서비스 구성

 

적용 대상: Windows Azure Pack

청구 시스템 배포를 수행하려면 Windows Azure Pack Usage Service에서 청구 어댑터가 있는 위치를 알고 청구 어댑터가 청구 승인 REST API 이벤트 알림 시스템을 구독할 수 있도록 허용해야 합니다.

청구 어댑터 구성

청구 어댑터가 웹 애플리케이션으로 구현되는 경우 애플리케이션 Web.config 파일에는 다음 속성 집합이 필요합니다.

<!-- Billing Adapter settings -->
    <add key="BillingAdapterUsername" value="<Notification Username>" />
    <add key="BillingAdapterPassword" value="<Notification Password>" />

    <!-- REST API settings -->
    <add key="UsageServiceUsername" value="<REST API Username>" />
    <add key="UsageServicePassword" value="<REST API Password>" />
    <add key="UsageServiceEndpoint" value="https://<Usage Service host>:30022/" />
    <add key="UsageServiceBatchSize" value="100" />
    <add key="DisableSslVerification" value="true" />
    <add key="SyncIntervalMilliseconds" value="60000" />

azure Pack 구성 Windows

Windows Azure Pack은 청구 어댑터 위치에 대해 알아야 합니다. 그렇게 하려면 다음 단계를 수행합니다.

청구 어댑터에서 사용할 Windows Server용 Windows Azure Pack을 구성하려면

  1. Windows Azure Pack 구성 PowerShell 환경을 시작합니다.

  2. REST API 사용자> 이름을 청구 어댑터 Web.config 값(위 참조)의 UsageServiceUsername 값으로 대체하고 동일한 Web.config 파일의 UsageServicePassword에서 REST API 암호를 바꾸는< 다음 PowerShell 명령을 실행합니다.<>

    Set-MgmtSvcSetting -Namespace UsageService -Name Username -Value '<REST API Username>'
    
    Set-MgmtSvcSetting -Namespace UsageService -Name Password -Value '<REST API Password>' –Encode
    
    Set-MgmtSvcDatabaseSetting –ConnectionString '<Connection String>' –Namespace UsageService –Name Password –Value '<REST API Password>' –Passphrase '<Passphrase>' 
    –Force
    

청구 승인 REST API 알림 구독 구성

청구 승인 REST API 엔드포인트를 사용하면 청구 어댑터가 구독 만들기, 업데이트 및 삭제에 대한 이벤트 알림을 받을 수 있습니다. 작동하려면 청구 어댑터가 Windows Azure Pack 이벤트 알림 시스템을 구독해야 합니다.

청구 어댑터에 대한 알림 구독을 구성하려면

  1. 청구 어댑터가 실행 중인지 확인합니다.

  2. Windows Azure Pack 구성 PowerShell 환경을 시작합니다.

  3. 다음 PowerShell 명령을 사용하여 청구 어댑터를 등록합니다.

    Set-MgmtSvcNotificationSubscriber -Endpoint <Endpoint> -Name <Name> 
    -AuthenticationMode Basic -AuthenticationPassword <Notification Password> 
    -AuthenticationUsername <Notification Username> -Enabled $True -Force -SubscriberType BillingService
    

    <XYZ> 값을 사용자 환경에 대한 값으로 바꿉 있습니다. <엔드포인트> 는 청구 어댑터를 사용할 수 있는 URL 뒤에 /BillingAdapter가 있어야 합니다. 예를 들어 https://localhost:1234/BillingAdapter/. 이름 설정은 참조용이며 임의로 설정할 수 있습니다. AuthenticationUsernameAuthenticationPassword 설정은 청구 어댑터 Web.config 파일에서 청구 어댑터의 BillingAdapterUsernameBillingAdapterPassword와 일치해야 합니다(위 참조).

Set-MgmtSvcNotificationSubscriber

Set-MgmtSvcNotificationSubscriber -Name Billing –SubscriberType BillingService -Enabled $false -Endpoint https://localhost/ -AuthenticationMode Basic 

Set-MgmtSvcNotificationSubscriber cmdlet은 청구 어댑터를 등록하는 데 사용됩니다. Set-MgmtSvcNotificationSubscriber Windows Azure Pack 관리 데이터베이스 서버가 로컬이며 통합 보안을 사용하여 데이터베이스에 액세스한다고 가정합니다. 원격 서버에 연결하려면 -ConnectionString 또는 세분화된 데이터베이스 매개 변수(-Server, - UserName, -Password, -Database)를 사용합니다.

또한 Set-MgmtSvcNotificationSubscriber 사용 현황 서비스가 명령이 실행되는 컴퓨터에 로컬로 설치되었다고 가정합니다. 원격 호출인 경우 암호화 매개 변수(-EncryptionKey, -EncryptionAlgorithm)를 지정합니다.

자세한 내용은 https://technet.microsoft.com/en-us/library/dn520969(v=sc.20).aspx를 참조하세요.

매개 변수 중 두 가지는 특별한 의미를 갖습니다.

-SubscriberType

–SubscriberType 매개 변수로 설정할 수 있는 세 가지 구독자 유형이 있습니다.

  • BillingService

  • MandatoryService

  • OptionalService

차단 또는 비차단 방식으로 이벤트를 처리하도록 청구 어댑터를 설정할 수 있습니다. 구독자 유형인 BillingService와 MandatoryService가 모두 차단됩니다. OptionalService가 비차단입니다. 청구 어댑터가 차단되도록 설정된 경우 서비스 관리 API의 계획 생성 이벤트는 청구 시스템에서 생성될 해당 계획을 트리거해야 합니다. 이 작업이 성공하지 못하면 서비스 관리 API에서 계획 만들기가 실패합니다. 이렇게 하면 플랫폼과 청구 시스템 간의 일관성을 사용할 수 있습니다.

중요

시스템에는 BillingService 구독자 유형이 하나만 있을 수 있습니다. 여러 필수 서비스 및 OptionalService 구독자가 있을 수 있습니다.

-NotificationSubscriber

-NotificationSubscriber 매개 변수를 지정하지 않으면 관련 매개 변수(-Name, -Enabled, -SubscriberType, -Endpoint, -AuthenticationMode, -AuthenticationUsername, -AuthenticationPassword)에서 파생됩니다.

참고 항목

Azure Pack 사용량 서비스 Windows