Azure / Azure/azure-powershell
Cold Tier Configuration Not Applying in Lifecycle Policy
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 54
Description
### Description
I have added the following lifecycle policy configuration in my PowerShell Function App code, but it's not working. Could this be due to a required version of the az or az.storage module? If so, what version is needed?
```
Add-AzStorageAccountManagementPolicyAction -InputObject $action `
-BaseBlobAction TierToCold `
-daysAfterModificationGreaterThan 30
```
### Script or Debug output
```PowerShell
```
### Environment data
```PowerShell
```
### Module versions
```PowerShell
```
### Error output
```PowerShell
```
Contributor guide
Research direction
Start by reproducing the reported Add-AzStorageAccountManagementPolicyAction command in a PowerShell Function App and collect the missing module versions, environment data, and error output. Check the Azure Storage lifecycle-policy cmdlet behavior and documentation; done means identifying the required module version or confirming why the TierToCold action is not applied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100