The Azure ARM Resource Plugin integrates RightScale Self-Service with the basic functionality of the Resources resource in the Azure API.
- A general understanding CAT development and definitions
- Refer to the guide documentation for details SS Guides
- The
admin
,ss_designer
&ss_end_user
roles, in a RightScale account with SelfService enabled.admin
is needed to retrieved the RightScale Credential values identified below. - Azure Service Principal (AKA Azure Active Directory Application) with the appropriate permissions to manage resources in the target subscription
- The following RightScale Credentials
AZURE_APPLICATION_ID
AZURE_APPLICATION_KEY
- The following packages are also required (See the Installation section for details):
- Be sure your RightScale account has Self-Service enabled
- Connect AzureRM Cloud credentials to your RightScale account (if not already completed)
- Follow steps to Create an Azure Active Directory Application
- Grant the Azure AD Application access to the necessary subscription(s)
- Retrieve the Application ID & Authentication Key
- Create RightScale Credentials with values that match the Application ID (Credential name:
AZURE_APPLICATION_ID
) & Authentication Key (Credential name:AZURE_APPLICATION_KEY
) - Retrieve your Tenant ID
- Update
rs_azure_resource.rb
Plugin with your Tenant ID.- Replace "TENANT_ID" in
token_url "https://login.microsoftonline.com/TENANT_ID/oauth2/token"
with your Tenant ID
- Replace "TENANT_ID" in
- Navigate to the appropriate Self-Service portal
- For more details on using the portal review the SS User Interface Guide
- In the Design section, use the
Upload CAT
interface to complete the following:- Upload each of packages listed in the Requirements Section
- Upload the
rs_azure_resource.rb
file located in this repository
The ARM Resource Plugin has been packaged as plugins/rs_azure_resource
. In order to use this plugin you must import this plugin into a CAT.
import "plugins/rs_azure_resource"
For more information on using packages, please refer to the RightScale online documentation. Importing a Package
There is a "subscription_id" Plugin Parameter in the ARM Template Plugin. Recommended usage (where the default
value matches your target Subscription ID):
parameter "subscription_id" do
like $rs_azure_resource.subscription_id
default "12345678-1234-1234-1234-123456789012"
end
Note: default
is not a required field. You could, instead, elect to populate this parameter at every CloudApp Launch.
None - This release only supports use of the plugin via RCL.
N/A
N/A
Action | API Implementation | Support Level |
---|---|---|
update | Create Or Update By Id | Supported |
updatebyid | Update By Id | Supported |
get | Get By Id | Supported |
list | List | Supported |
listbyresourcegroup | List By Resource Group | Supported |
Please review arm_resource_test_cat.rb for a basic example implementation.
- This plugin only supports working with resources in RCL. It does not support provisioning CAT resources.
The Azure ARM Resource Plugin source code is subject to the MIT license, see the LICENSE file.