Code Monkey home page Code Monkey logo

defendtheflag's Introduction

Defend the Flag

Want to test out Microsoft Security products (and others) but don't have the environment to thoroughly test? Want to simulate Active Directory, privileged users, to learn more about credential exposure and credential abuse? Want to learn more about attack tools so you can become a better computer and network defender?

This project aims at lowering the friction to get started. By leveraging Azure Resource Manager (ARM; azuredeploy.json and Nested) and Desired State Configuration (DSC; DSC), we can build this entire environment within 40 minutes--the majority of that time is performing a DC promo.

This project also includes code to then take the VMs and snapshot their disks (Stage). This allows you to later have deployment tasks on those disks which take roughly 2 minutes.

DISCLAIMER These VMs should not be placed in production environments or used in production workloads. The settings of the VMs have antivirus purposefully disabled, updates disabled (after provisioning), and attack tools stagged.

Contents

File/folder Description
Downloads Staged code.
Nested Nested ARM scripts for ARM deployment. Extends azuredeploy.json
Stage Scripts to help snapshot resources. Convert them to images for easy deployment
Troubleshoot Helper scripts to help troubleshoot and build-out ARM and DSC environment
DSC Desired State Configuration which configure the resources after ARM provisioning
CHANGELOG.md Changelog for each version, plus current dev efforts (vNext)

Setup

Primer for PowerShell Az cmdlets: here

About the environment

This creates VMs, one of those VMs being a Domain Controller which hydrates users in an AD environment. Those users are also configured appropriately on the respective VMs to simulate management and administrative activities.

For more information refer to DSC folder.

Phase 0 (build from absolute scratch)

To build from scratch (Phase 0):

  1. New-AzResourceGroup -Name <<resource-group-name>>
  2. New-AzResourceGroupDeployment -ResourceGroupName <<resource-group-name>> -TemplateFile .\azuredeploy.json

The first command creates the resource group (in your respective Tenant). The second line hydrates the new resource group with the provided ARM tempalte file. The azuredeploy.json wraps in the Desired State Configuration policys to build out the Domain Controller, VictimPC, AdminPC and Client01.

You can make modifications to these VMs, but again, we recommend any change is made at the ARM and DSC level.

If you wish to remove the DSC from a resource, use the Remove-AzVmExtension command. Make the desired configurations to the DSC, re-compile the DSC (Publish-AzVmDscConfiguratoin) and repeat the above steps, although you do not need to re-create another resource-group. You can target the same one and Azure is smart enough to know what ARM to apply, and same with DSC, thanks to them being idempotent.

Once you have what you want, you can use the scripts in Stage folder to help capture the VMs and move them into Azure Storage Containers. This allows us to then deploy these VMs in minutes vs seconds.

Phase 1: Stagging Changes

Stage has what you need. Use New-BackupVmsToDisk.ps1, point to the right resource group, and the disks will be snapshotted to the resource-group. Then, New-MoveDisksToStorageAccountContainer.ps1 will take those snapshots and move them into the respective Azure Storage Account container.

Once this is done, you can do Phase 2.

Phase 2: Deploying from Stagged Changes

Like before, but with different parameters, we can deploy VMs.

  1. New-AzResourceGroup -Name <<other-resource-group-name>>
  2. New-AzResourceGroupDeployment -ResourceGroupName <<other-resource-group-name>> -Templatefile .\template.json

Note that template.json will need to be updated so it points to the right location of the VMs earlier captured. This can be done very quickly once you realize the variables use specific names (i.e. DcVhdUri is the Domain Controller's VHD URI). Also note the other changes that can be made in the template.json including the VMs names.

The most critical part of this is knowing the Domain Controller becomes the vNet's DNS server, which can only happen after the DC VM exists. For this reason, we have a nested ARM template, similar to what we do in Phase 0. Without this, VMs would not always be able to resolve each other consistently and a race-condition would exist between the vNet DNS settings taking effect before the other VMs are built.

Access your VMs

Regardless of if your in Phase 0 or Phase 2, you eventually will want to access your VMs. You can of course do this from the Azure Portal, but we also created a quick script, Get-VmsInfo.ps1 -ResourceGroupName <ResourceGroupName>. This will tell you the VMs IPs. You can then mstsc /v:<<ip>> or, ssh <<ip>> to quickly RDP into that machine, depending on the VM type and its authentication service.

Skip straight to Phase 2

Want to skip Phase 0? Feel free to grab our VHDs from an open Azure Storage account.

NOTE: Ubuntu-Katoolin is leveraging cloud-init which is pulling the DSC ProvisionKatoolin.yaml configuration. For more about the configuration is detailed within the DSC folder :Readme.md

Don't want to download them? See guidance on Phase 2; those commands automatically pull from these public Azure Storage Containers; total deployment time is usually ~2 minutes.

Linked content

Once you have your lab, that is just when the fun begins. Now its time to actually use the lab to learn, grow and practice.

Here is some content that builds on top of these labs:

Product Title/Link Description
Azure ATP Attack Simulation Playbook Learn about the various attacks
Azure ATP Ciberesponce: Kali Pass the Ticket Learn to use harvested tickets from Windows, on Kali

About the author

The maintainer is a Principal PM/Architect at Microsoft for the Cloud and Artificial Intelligence (C+AI) Security team. You can find more of his work and thoughts at Ciberesponce.com.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Changelog

For full view of whats new and comprehensive changelog, here here.

defendtheflag's People

Contributors

chboeh avatar ciberesponce avatar microsoftopensource avatar msftgits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

defendtheflag's Issues

'ContosoDc/DcPromoDsc' fails

Describe the bug

I try to deploy this project using PowerShell on Windows 10 ( I am outside a VPN )

I ran the ARM templates from powershell and ran into an issue which I think is
Related to the setup and not to my local dev machine. I have a Choco installed. Also tried with admin console.

I complains in the DSC step that a VM cannot find a Choco executable.

I think this is not about my local choco setup which works.

PS C:\Users\VZB3LFW\source\repos\DefendTheFlag> New-AzResourceGroupDeployment -Verbose -ResourceGroupName rg-cg_dtf -TemplateFile .\azuredeploy.json
VERBOSE: Performing the operation "Creating Deployment" on target "rg-cg_dtf".
VERBOSE: 09:06:36 - Template is valid.
VERBOSE: 09:06:38 - Create template deployment 'azuredeploy'
VERBOSE: 09:06:38 - Checking deployment status in 5 seconds
VERBOSE: 09:06:43 - Checking deployment status in 5 seconds
VERBOSE: 09:06:48 - Resource Microsoft.Network/networkInterfaces 'Nic4' provisioning status is succeeded
VERBOSE: 09:06:48 - Resource Microsoft.Storage/storageAccounts 'w7j7pl3j2abxqsa4' provisioning status is succeeded
VERBOSE: 09:06:48 - Resource Microsoft.Network/virtualNetworks 'DefendTheFlag-vNet' provisioning status is succeeded
VERBOSE: 09:06:48 - Resource Microsoft.Network/publicIPAddresses 'PublicIp4' provisioning status is succeeded
VERBOSE: 09:06:48 - Checking deployment status in 5 seconds
VERBOSE: 09:06:53 - Resource Microsoft.Compute/virtualMachines 'ContosoDc' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Storage/storageAccounts 'w7j7pl3j2abxqsa3' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Network/networkInterfaces 'Nic0' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Network/networkInterfaces 'Nic2' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Network/networkInterfaces 'Nic5' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Storage/storageAccounts 'w7j7pl3j2abxqsa0' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Network/networkInterfaces 'Nic3' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Storage/storageAccounts 'w7j7pl3j2abxqsa5' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Storage/storageAccounts 'w7j7pl3j2abxqsa2' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Network/networkInterfaces 'Nic1' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Storage/storageAccounts 'w7j7pl3j2abxqsa1' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Network/publicIPAddresses 'PublicIp0' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Network/publicIPAddresses 'PublicIp2' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Network/publicIPAddresses 'PublicIp3' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Network/publicIPAddresses 'PublicIp5' provisioning status is succeeded
VERBOSE: 09:06:53 - Resource Microsoft.Network/publicIPAddresses 'PublicIp1' provisioning status is succeeded
VERBOSE: 09:06:53 - Checking deployment status in 15 seconds
New-AzResourceGroupDeployment : 09:07:08 - Resource Microsoft.Compute/virtualMachines/extensions
'ContosoDc/DcPromoDsc' failed with message '{
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "VMExtensionProvisioningError",
"message": "VM has reported a failure when processing extension 'DcPromoDsc'. Error message: "DSC
Configuration 'CreateADForest' completed with error(s). Following are the first few: The term 'Choco' is not
recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again. The PowerShell DSC resource
'[cChocoInstaller]InstallChoco' with SourceInfo 'C:\Packages\Plugins\Microsoft.Powershell.DSC\2.83.1.0\DSCWork\Pr
ovisionDcDsc.0\ProvisionDcDsc.ps1::217::3::cChocoInstaller' threw one or more non-terminating errors while running
the Set-TargetResource functionality. These errors are logged to the ETW channel called
Microsoft-Windows-DSC/Operational. Refer to this channel for more details. The SendConfigurationApply function did not
succeed. LCM failed to start desired state configuration manually."\r\n\r\nMore information on troubleshooting is
available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot "
}
]
}
}'
At line:1 char:2

  • New-AzResourceGroupDeployment -Verbose -ResourceGroupName rg-cg_dtf ...
  •  + CategoryInfo          : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
     + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
    loymentCmdlet
    
    

New-AzResourceGroupDeployment : 09:07:09 - VM has reported a failure when processing extension 'DcPromoDsc'. Error
message: "DSC Configuration 'CreateADForest' completed with error(s). Following are the first few: The term 'Choco' is
not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again. The PowerShell DSC resource
'[cChocoInstaller]InstallChoco' with SourceInfo 'C:\Packages\Plugins\Microsoft.Powershell.DSC\2.83.1.0\DSCWork\Provisio
nDcDsc.0\ProvisionDcDsc.ps1::217::3::cChocoInstaller' threw one or more non-terminating errors while running the
Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational.
Refer to this channel for more details. The SendConfigurationApply function did not succeed. LCM failed to start
desired state configuration manually."
More information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot
At line:1 char:2

  • New-AzResourceGroupDeployment -Verbose -ResourceGroupName rg-cg_dtf ...
  •  + CategoryInfo          : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
     + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
    loymentCmdlet
    
    

New-AzResourceGroupDeployment : 09:07:09 - Template output evaluation skipped: at least one resource deployment
operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage
details.
At line:1 char:2

  • New-AzResourceGroupDeployment -Verbose -ResourceGroupName rg-cg_dtf ...
  •  + CategoryInfo          : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
     + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
    loymentCmdlet
    
    

New-AzResourceGroupDeployment : 09:07:09 - Template output evaluation skipped: at least one resource deployment
operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage
details.
At line:1 char:2

  • New-AzResourceGroupDeployment -Verbose -ResourceGroupName rg-cg_dtf ...
  •  + CategoryInfo          : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
     + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
    loymentCmdlet
    
    
    
    

DeploymentName : azuredeploy
ResourceGroupName : rg-cg_dtf
ProvisioningState : Failed
Timestamp : 21.05.2021 07:07:00
Mode : Incremental
TemplateLink :
Parameters :
Name Type Value
============================== ========================= ==========
builtinAdministratorAccount String ContosoAdmin
builtinAdministratorPassword SecureString
userPrincipalName String seccxp.ninja
domainName String Contoso.Azure
netBiosName String CONTOSO
jeffLPassword SecureString
samiraAPassword SecureString
ronHdPassword SecureString
lisaVPassword SecureString
julianIPassword SecureString
meganBPassword SecureString
aatpServicePassword SecureString
linuxAdminAccount String Cookies
linuxAdminPassword SecureString

Outputs :
DeploymentDebugLogLevel :

To Reproduce
Steps to reproduce the behavior:

  1. Start Powershell, Do AZLogin, select wanted subscription
  2. AZLogin
  3. Switch to correct subscription
  4. run: New-AzResourceGroupDeployment -Verbose -ResourceGroupName rg-cg_dtf -TemplateFile .\azuredeploy.json
  5. Should produce error above in step ContosoDc/DcPromoDsc

Expected behavior
Whole deployment should run through

Screenshots
Shell output as ascii above

Desktop (please complete the following information):

  • OS: Win10
  • PowerShell 5.1.18362.1474
  • Version [e.g. 22]

Remove reliance on AATP Attack Simuation

Right now, DSC pulls down binaries from AATP Attack Simulation repository. This can be overly complex to maintain DSC scripts for no reason--in addition, if anything happens to that external repo, it adversely impacts this repo.

Move what we can to this formal MSFT repo, downloading binaries from the true source as much as possible. Remove binaries that we cannot stage or download from the direct location...

can't migrate Ubuntu-Katoolind.vhd to ESXi

Hi there,
I was able to convert the 4 .vhd windows images for use in ESXi.
But I couldn't convert Ubuntu-Katoolind.vhd - I only get up to a grub boot and it can't find anything to boot.
If you have any tips on getting your Ubuntu image converted to ESXi that would be greatly appreciated.
Or if you have instructions on how you're using the Ubuntu image perhaps I can replicate it on a fresh build?
Thanks.

UserInfoBug

xADUser LisaV
{
DomainName = $DomainName
UserName = 'LisaV'
GivenName = 'Lisa'
Surname = 'Valentine'
Password = $LisaVCreds
Ensure = 'Present'
PasswordNeverExpires = $true
DependsOn = @("[xADForestProperties]ForestProps", "[xWaitForADDomain]DscForestWait")
}

Deployment of "azuredeploy.json" always ends in an error

Describe the bug
When I run the command to deploy:

  • New-AzResourceGroupDeployment -ResourceGroupName <> -TemplateFile .\azuredeploy.json

It fails with different error messages, i tried twice in "west europe" and once in "north europe" and once in "southcentralus"
I dont think its linked to location, but maybe timeout/network

Fail no 1 (west europe)

New-AzResourceGroupDeployment : 13:30:09 - The deployment 'azuredeploy' failed with error(s). Showing 2 out of 2 error(
s).
Status Message: VM has reported a failure when processing extension 'VictimDsc'. Error message: "DSC Configuration 'Set
upVictimPc' completed with error(s). Following are the first few: PowerShell DSC resource MSFT_xRemoteFile failed to e
xecute Set-TargetResource functionality with error message: Invoking web request failed with error. The remote server r
eturned an error: (404) Not Found. The SendConfigurationApply function did not succeed. LCM failed to start desired st
ate configuration manually."
More information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot (Code:VMExtension
ProvisioningError)
Status Message: VM has reported a failure when processing extension 'AdminPcDsc'. Error message: "DSC Configuration 'Se
tupAdminPc' completed with error(s). Following are the first few: PowerShell DSC resource MSFT_ScriptResource failed t
o execute Set-TargetResource functionality with error message: The service cannot be started, either because it is disa
bled or because it has no enabled devices associated with it.
The SendConfigurationApply function did not succeed. LCM failed to start desired state configuration manually."
More information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot (Code:VMExtension
ProvisioningError)
CorrelationId: fe533e40-b629-49ce-afa9-70268aca13a1
At line:1 char:1

  • New-AzResourceGroupDeployment -ResourceGroupName Sentinel-1 -Template ...
  •   + CategoryInfo          : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
      + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
     loymentCmdlet
    
    

Fail no 2 (west europe)

New-AzResourceGroupDeployment : 14:31:06 - The deployment 'azuredeploy' failed with error(s). Showing 2 out of 2 error(
s).
Status Message: VM has reported a failure when processing extension 'AdminPcDsc'. Error message: "DSC Configuration 'Se
tupAdminPc' completed with error(s). Following are the first few: PowerShell DSC resource MSFT_ScriptResource failed t
o execute Set-TargetResource functionality with error message: The service cannot be started, either because it is disa
bled or because it has no enabled devices associated with it.
The SendConfigurationApply function did not succeed. LCM failed to start desired state configuration manually."
More information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot (Code:VMExtension
ProvisioningError)
Status Message: VM has reported a failure when processing extension 'VictimDsc'. Error message: "DSC Configuration 'Set
upVictimPc' completed with error(s). Following are the first few: PowerShell DSC resource MSFT_xRemoteFile failed to e
xecute Set-TargetResource functionality with error message: Invoking web request failed with error. The remote server r
eturned an error: (404) Not Found. The SendConfigurationApply function did not succeed. LCM failed to start desired st
ate configuration manually."
More information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot (Code:VMExtension
ProvisioningError)
CorrelationId: 22963a07-b1c1-4fdb-9673-b26ed09e0bae
At line:1 char:1

  • New-AzResourceGroupDeployment -ResourceGroupName Sentinel-1 -Template ...
  •   + CategoryInfo          : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
      + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
     loymentCmdlet
    
    

Fail no 3 (north europe)

New-AzResourceGroupDeployment : 16:11:49 - The deployment 'azuredeploy' failed with error(s). Showing 2 out of 2 error(
s).
Status Message: VM has reported a failure when processing extension 'VictimDsc'. Error message: "DSC Configuration 'Set
upVictimPc' completed with error(s). Following are the first few: PowerShell DSC resource MSFT_xRemoteFile failed to e
xecute Set-TargetResource functionality with error message: Invoking web request failed with error. The remote server r
eturned an error: (404) Not Found. The SendConfigurationApply function did not succeed. LCM failed to start desired st
ate configuration manually."
More information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot (Code:VMExtension
ProvisioningError)
Status Message: VM has reported a failure when processing extension 'AdminPcDsc'. Error message: "DSC Configuration 'Se
tupAdminPc' completed with error(s). Following are the first few: PowerShell DSC resource MSFT_ScriptResource failed t
o execute Set-TargetResource functionality with error message: The service cannot be started, either because it is disa
bled or because it has no enabled devices associated with it.
The SendConfigurationApply function did not succeed. LCM failed to start desired state configuration manually."
More information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot (Code:VMExtension
ProvisioningError)
CorrelationId: 5719a145-5ffa-45e6-aefe-9ee1529e33b7
At line:1 char:1

  • New-AzResourceGroupDeployment -ResourceGroupName Sentinel-rh -Templat ...
  •   + CategoryInfo          : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
      + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
     loymentCmdlet
    
    

Fail no 4 (southcentralus)

New-AzResourceGroupDeployment : 19:36:20 - The deployment 'azuredeploy' failed with error(s). Showing 2 out of 2 error(s).
Status Message: VM has reported a failure when processing extension 'AdminPcDsc'. Error message: "DSC Configuration 'SetupAdminPc' completed with error(s). Following are the first few: PowerShell DSC resource MSFT_ScriptResource failed to execute Set-TargetResource functionality with error message: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
The SendConfigurationApply function did not succeed. LCM failed to start desired state configuration manually."
More information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot (Code:VMExtensionProvisioningError)
Status Message: VM has reported a failure when processing extension 'VictimDsc'. Error message: "DSC Configuration 'SetupVictimPc' completed with error(s). Following are the first few: PowerShell DSC resource MSFT_xRemoteFile failed to execute Set-TargetResource functionality with error message: Invoking web request failed with error. The remote server returned an error: (404) Not Found. The SendConfigurationApply function did not succeed. LCM failed to start desired state configuration manually."
More information on troubleshooting is available at https://aka.ms/VMExtensionDSCWindowsTroubleshoot (Code:VMExtensionProvisioningError)
CorrelationId: 73513d95-1ec0-4ca7-86f1-94fad8e462f0
At line:1 char:1

  • New-AzResourceGroupDeployment -ResourceGroupName Sentinel-2 -Template ...
  • CategoryInfo : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
  • FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet

To Reproduce
Steps to reproduce the behavior:

  1. Download repo
  2. Start Powershell (version 5.1.18362.1110)
  3. Go to repo (.\DefendTheFlag)
  4. New-AzResourceGroupDeployment -ResourceGroupName <> -TemplateFile .\azuredeploy.json

Document the Azure Storage account region

I would like to test DTF using the images from the public storage account, but can't deploy them unless I'm in the same region. Can you document which region the images are in, so far I've tried without luck:

  • us east
  • us east2
  • us west
  • us west2
  • us central
  • us southcentral
New-AzResourceGroupDeployment : 2:34:06 pm - Resource Microsoft.Compute/disks 'edyt5uiulbzq4d3' failed with message '{
  "error": {
    "code": "BadRequest",
    "message": "The source blob https://publicdefendtheflag.blob.core.windows.net/public/Client01d.vhd does not belong to the same region as the disk."
  }
}'
At line:1 char:1
+ New-AzResourceGroupDeployment -ResourceGroupName dtf-centralus -Templ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet

New-AzResourceGroupDeployment : 2:34:06 pm - Resource Microsoft.Compute/disks 'edyt5uiulbzq4d1' failed with message '{
  "error": {
    "code": "BadRequest",
    "message": "The source blob https://publicdefendtheflag.blob.core.windows.net/public/AdminPcd.vhd does not belong to the same region as the disk."
  }
}'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.