Setting up Azure NetApp Files
Create an Azure NetApp Files working environment in Cloud Manager to create and manage NetApp accounts, capacity pools, volumes, and snapshots.
Quick start
Get started quickly by following these steps or scroll down to the remaining sections for full details.
Request access
Submit an online request to be granted access to Azure NetApp Files.
Set up an Azure AD application
From Azure, grant permissions to an Azure AD application and copy the application (client) ID, the directory (tenant) ID, and the value of a client secret.
Create an Azure NetApp Files working environment
In Cloud Manager, click Add Working Environment > Microsoft Azure > Azure NetApp Files and then provide details about the AD application.
Requesting access
You need to be granted access to Azure NetApp Files by submitting an online request. You'll need to wait for approval from the Azure NetApp Files team before you can proceed.
Setting up an Azure AD application
Cloud Manager needs permissions to set up and manage Azure NetApp Files. You can grant the required permissions to an Azure account by creating and setting up an Azure AD application and by obtaining the Azure credentials that Cloud Manager needs.
Creating the AD application
Create an Azure Active Directory (AD) application and service principal that Cloud Manager can use for role-based access control.
You must have the right permissions in Azure to create an Active Directory application and to assign the application to a role. For details, refer to Microsoft Azure Documentation: Required permissions.
-
From the Azure portal, open the Azure Active Directory service.
-
In the menu, click App registrations.
-
Create the application:
-
Click New registration.
-
Specify details about the application:
-
Name: Enter a name for the application.
-
Account type: Select an account type (any will work with Cloud Manager).
-
Redirect URI: You can leave this blank.
-
-
Click Register.
-
-
Copy the Application (client) ID and the Directory (tenant) ID.
When you create the Azure NetApp Files working environment in Cloud Manager, you need to provide the application (client) ID and the directory (tenant) ID for the application. Cloud Manager uses the IDs to programmatically sign in.
-
Create a client secret for the application so Cloud Manager can use it to authenticate with Azure AD:
-
Click Certificates & secrets > New client secret.
-
Provide a description of the secret and a duration.
-
Click Add.
-
Copy the value of the client secret.
-
Your AD application is now setup and you should have copied the application (client) ID, the directory (tenant) ID, and the value of the client secret. You need to enter this information in Cloud Manager when you add an Azure NetApp Files working environment.
Assigning the app to a role
You must bind the service principal to your Azure subscription and assign it a custom role that has the required permissions.
-
Create a custom role in Azure.
The following steps describe how to create the role form the Azure portal.
-
Open the subscription and click Access control (IAM).
-
Click Add > Add custom role.
-
In the Basics tab, enter a name and description for the role.
-
Click JSON and click Edit which appears at the top right of the JSON format.
-
Add the following permissions under actions:
"actions": [ "Microsoft.NetApp/*", "Microsoft.Resources/resources/read", "Microsoft.Resources/subscriptions/resourceGroups/read", "Microsoft.Resources/subscriptions/resourcegroups/resources/read", "Microsoft.Resources/subscriptions/resourceGroups/write", "Microsoft.Network/virtualNetworks/read", "Microsoft.Insights/Metrics/Read" ],
-
Click Save, click Next, and then click Create.
-
-
Now assign the application to the role that you just created:
-
From the Azure portal, open the subscription and click Access control (IAM) > Add > Add role assignment.
-
Select the custom role that you created.
-
Keep Azure AD user, group, or service principal selected.
-
Search for the name of the application (you can't find it in the list by scrolling).
-
Select the application and click Save.
The service principal for Cloud Manager now has the required Azure permissions for that subscription.
-
Creating an Azure NetApp Files working environment
Set up an Azure NetApp Files working environment in Cloud Manager so you can start creating volumes.
-
From the Working Environments page, click Add Working Environment.
-
Select Microsoft Azure and then Azure NetApp Files.
-
Provide details about the AD application that you previously set up.
-
Click Add.
You should now have an Azure NetApp Files working environment.