Create and configure an Azure service principal for deploying to Microsoft Azure
Navigate to the Azure Portal and sign in with your Microsoft account.
Open App Registrationsfocal-deployNote: After registration, you'll see the Application (client) ID and Directory (tenant) ID. Copy these - you'll need them later!
Focal Deploy SecretCRITICAL: Copy Secret Value Immediately!
The secret value is only shown once. Copy it immediately and store it securely.
Grant the service principal access to your subscription:
focal-deployAllows creating and managing VMs, VNets, NSGs, and storage
Optional: For more restrictive access, you can create a custom role with only the permissions needed for VM deployments.
You should now have the following four pieces of information:
From Step 4
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxFrom Step 2 - App Overview
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxFrom Step 2 - App Overview
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxFrom Step 3
••••••••••••••••••••Success! Your Azure credentials are securely stored and encrypted. Ready to deploy to Microsoft Azure!
If you have Azure CLI installed, you can create a service principal with a single command:
az ad sp create-for-rbac --name "focal-deploy" --role contributor \
--scopes /subscriptions/{subscription-id} \
--sdk-authReplace {subscription-id} with your actual subscription ID. This command outputs all credentials in JSON format.
Need help? Contact support or join our Discord
2025 Focal Deploy. All rights reserved. Licensed under the Focal Deploy Proprietary License.